ipython-sql icon indicating copy to clipboard operation
ipython-sql copied to clipboard

Python 3 support

Open dmvianna opened this issue 9 years ago • 3 comments

Is there support for Python 3? It seems mysqlpy is not available for Python 3. By the way, I don't understand the hard dependency on mysqlpy. I don't use MySQL.

ImportError                               Traceback (most recent call last)
<ipython-input-1-141f9bbaf117> in <module>()
----> 1 import sqlpython
      2 get_ipython().magic('load_ext sql')
      3 get_ipython().magic('config SqlMagic.displaylimit = 1')
      4 get_ipython().magic('config SqlMagic.autopandas = True')

/R/.virtualenv/py3/lib/python3.4/site-packages/sqlpython/__init__.py in <module>()
----> 1 import mysqlpy
      2 __all__ = ["sqlpython", "sqlpyPlus", "pexpecter", "mysqlpy", \
      3            "output_templates", "plothandler", "metadata",]
      4 __version__ = '1.7.0'

ImportError: No module named 'mysqlpy'

dmvianna avatar Nov 09 '15 06:11 dmvianna

It does seem to work in python3 for me?

yuvipanda avatar Mar 10 '16 19:03 yuvipanda

Same here.

jackbrucesimpson avatar Nov 10 '16 13:11 jackbrucesimpson

It works for me once I installed mysqlclient:

pip install mysqlclient

Melvin-Var avatar Nov 18 '16 14:11 Melvin-Var