miloradkrstevski commented on issue #5013: Connecting MySQL and PostgreSQL into 
SQLAlchemy URI 
URL: 
https://github.com/apache/incubator-superset/issues/5013#issuecomment-389522281
 
 
   @TianyangLi I have tried with sudo apt-get install python-mysqldb, but still 
no success. It gives me error:
   
   > ERROR: {"error": "Connection failed!\n\nThe error message returned 
was:\nNo module named MySQLdb"}
   
   And in the terminal it is the following info:
   
   > Traceback (most recent call last):
     File 
"/home/miki/venv/local/lib/python2.7/site-packages/superset/views/core.py", 
line 1691, in testconn
       engine = create_engine(uri, connect_args=connect_args)
     File 
"/home/miki/venv/local/lib/python2.7/site-packages/sqlalchemy/engine/__init__.py",
 line 419, in create_engine
       return strategy.create(*args, **kwargs)
     File 
"/home/miki/venv/local/lib/python2.7/site-packages/sqlalchemy/engine/strategies.py",
 line 80, in create
       dbapi = dialect_cls.dbapi(**dbapi_args)
     File 
"/home/miki/venv/local/lib/python2.7/site-packages/sqlalchemy/dialects/mysql/mysqldb.py",
 line 102, in dbapi
       return __import__('MySQLdb')
   ImportError: No module named MySQLdb
   
   I am using Superset==0.24, because 0.25 (or latest) gives me problem with 
flask.
   
   Anyone any idea? Thanks.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org
For additional commands, e-mail: notifications-h...@superset.apache.org

Reply via email to