2011/8/28 Andreas Mair <amair.sob@...>:
> Hello!
>
> I've been using pytrainer from SVN now for quite a long time but since
> DB refactoring it doesn't work for me. I had to stay at rev809. Today
> I tried again but it still fails with the same error:
>
> === SNIP ===
> running pytrainer from egg installation
> data_path: /home/testen/opt/pytrainer/share/pytrainer/
> gettext_path: /home/testen/opt/pytrainer/share/locale
> site_path: /home/testen/opt/pytrainer/lib/python2.7/site-packages
> Traceback (most recent call last):
>  File "/home/testen/opt/pytrainer/bin/pytrainer", line 96, in <module>
>    from pytrainer.main import pyTrainer
>  File 
> "/home/testen/opt/pytrainer/lib/python2.7/site-packages/pytrainer/main.py",
> line 36, in <module>
>    from upgrade.data import initialize_data
>  File 
> "/home/testen/opt/pytrainer/lib/python2.7/site-packages/pytrainer/upgrade/data.py",
> line 23, in <module>
>    from pytrainer.upgrade.migratedb import MigratableDb
>  File 
> "/home/testen/opt/pytrainer/lib/python2.7/site-packages/pytrainer/upgrade/migratedb.py",
> line 20, in <module>
>    from migrate.versioning.exceptions import DatabaseNotControlledError
> ImportError: No module named exceptions
> === SNAP ===
>
> I've read migratedb.py and tried to find the
> migrate.versioning.exceptions Python module. Well I couldn't. But I've
> found it as migrate.exceptions. After changing that in migratedb.py
> pytrainer starts and no error occurs.
>
> I'm using Gentoo and dev-python/sqlalchemy-migrate 0.6.1 and I wonder
> why you can load the module as migrate.versioning.exceptions but here
> it is located as migrate.exceptions.

>>David :
>>Maybe it is distribution related issue, but on Fedora 15 I do have


I just try with the newest mandriva 2011, same error as gentoo : 
exceptions.py  is in migrate directory (not versioning).
After changing the same line in migradedb.py, pytrainer svn#884 starts !
python 2.7.2 sqlalchemy-migrate 0.6.1


------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
Pytrainer-devel mailing list
Pytrainer-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pytrainer-devel

Reply via email to