sqledit crashes at startup

119 views
Skip to first unread message

Chris Green

unread,
Mar 25, 2013, 8:50:51 AM3/25/13
to sql...@googlegroups.com
I am having trouble with sqledit, when I run it from the command line I
see:-

chris$ sqledit
Traceback (most recent call last):
File "/usr/bin/sqledit", line 9, in <module> load_entry_point('sqlkit==0.9.5', 'gui_scripts', 'sqledit')()
File "/usr/lib/python2.7/dist-packages/sqlkit/scripts/sqledit.py", line 404, in main program()
File "/usr/lib/python2.7/dist-packages/sqlkit/scripts/sqledit.py", line 321, in program from sqlkit.misc import table_browser
File "/usr/lib/python2.7/dist-packages/sqlkit/misc/table_browser.py", line 23, in <module> from sqlkit.widgets import SqlTable, SqlMask
File "/usr/lib/python2.7/dist-packages/sqlkit/widgets/__init__.py", line 2, in <module> from mask import SqlMask
File "/usr/lib/python2.7/dist-packages/sqlkit/widgets/mask/__init__.py", line 2, in <module> from mask import SqlMask
File "/usr/lib/python2.7/dist-packages/sqlkit/widgets/mask/mask.py", line 28, in <module> from sqlkit.widgets.common import completion, sqlwidget
File "/usr/lib/python2.7/dist-packages/sqlkit/widgets/common/completion.py", line 36, in <module> from sqlalchemy import text, select, Table, exceptions
ImportError: cannot import name exceptions
chris$


This is installing sqledit/sqlkit from the Ubuntu 12.10 repository, the
sqlkit version is 0.9.5-1 and the sqlalchemy version is 0.7.8-1.

--
Chris Green

Alessandro Dentella

unread,
Mar 25, 2013, 11:44:04 AM3/25/13
to sql...@googlegroups.com
line 36 is importing exceptions from sqlalchemy. I verified that that line
imports it correctly both in 0.7.8 and in 0.7.10. you state you're using
0.7.8-1, I guess you should be ok...

Please veryfy with ipython:

In [1]: import sqlalchemy

In [2]: sqlalchemy.__version__
Out[2]: '0.7.8'

In [3]: from sqlalchemy import exceptions

In [4]:


sandro
*:-)


--
Sandro Dentella *:-)
http://www.reteisi.org Soluzioni libere per le scuole
http://sqlkit.argolinux.org SQLkit home page - PyGTK/python/sqlalchemy



Chris Green

unread,
Mar 25, 2013, 11:53:51 AM3/25/13
to sql...@googlegroups.com
Although my installation says it has sqlalchemy version 0.7.8 it seems I
have a newer version installed over it:-

chris$ python
Python 2.7.3 (default, Sep 26 2012, 21:51:14)
[GCC 4.7.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sqlalchemy
>>> sqlalchemy.__version__
'0.8.0'


I think something else may have pulled in this newer version. I'll try
and get rid of it and re-install sqledit.

--
Chris Green

Alessandro Dentella

unread,
Mar 25, 2013, 12:38:28 PM3/25/13
to sql...@googlegroups.com
you don't need to reinstall sqlkit, as far as you can install sqlalchemy
0.7+ instead of 0.8.0.

0.8.0 is very new (released 9/3/2013). I certainly mean to support it as far
as I have some spare time.

Valery Mochichuk

unread,
Dec 24, 2013, 3:11:00 PM12/24/13
to sql...@googlegroups.com
in all files where "from sqlalchemy import exceptions" must be "exc" instead of "exceptions"

sandro dentella

unread,
Dec 27, 2013, 12:44:55 PM12/27/13
to sql...@googlegroups.com


Il giorno martedì 24 dicembre 2013 21:11:00 UTC+1, Valery Mochichuk ha scritto:
in all files where "from sqlalchemy import exceptions" must be "exc" instead of "exceptions"


Thanks, in fact this is not the only patch to apply to make it work with sqlalchemy 0.8, 
I have already commited a version that was ported to sqla 0.8 even if I don't have 
released a new version. 


sandro
*:-)
Reply all
Reply to author
Forward
0 new messages