andialbrecht / crunchyfrog

Head over to RunSQLRun, the successor of CrunchyFrog
http://runsqlrun.org
GNU General Public License v3.0
4 stars 2 forks source link

hard dependency on sqlite? #59

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
After building and installing the deb for 0.3.90, when running CF I get the 
following error:

> Traceback (most recent call last):
>  File "/usr/local/bin/crunchyfrog", line 14, in <module>
>    cf.cmdline.run()
>  File "/usr/lib/python2.6/dist-packages/cf/cmdline.py", line 108, in run
>    app.init()
>  File "/usr/lib/python2.6/dist-packages/cf/app.py", line 77, in init
>    self._check_version()
>  File "/usr/lib/python2.6/dist-packages/cf/app.py", line 99, in _check_version
>    self._datasources_db2url(dir_version, release.version)
>  File "/usr/lib/python2.6/dist-packages/cf/app.py", line 144, in 
_datasources_db2url
>    except sqlite3.OperationalError:  # password column is already gone
> NameError: global name 'sqlite3' is not defined

I don't have any sqlite connections defined.

If there is supposed to be a hard dependency on python-sqlite (the problem was 
fixed in by 
installing that package) the deb should probably depend on it.

Original issue reported on code.google.com by michael....@gmail.com on 29 May 2009 at 6:09

GoogleCodeExporter commented 9 years ago
The problem is slightly different: It's a missing sqlite3 import in that file. 
It
worked for you after installing python-sqlite as you only run across this code 
line
on first start when the app tries to migrate your user directory to the new 
layout
introduced in 0.3.90.

Thanks for reporting, fixed in r8d91eab08929

Original comment by albrecht.andi on 29 May 2009 at 7:13