Hi Andreas, 2011/8/28 Andreas Mair <amair....@googlemail.com>: > 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.
Maybe it is distribution related issue, but on Fedora 15 I do have requested class: $ rpm -ql python-migrate-0.6-4.fc15.noarch | grep exception /usr/lib/python2.7/site-packages/migrate/changeset/exceptions.py /usr/lib/python2.7/site-packages/migrate/changeset/exceptions.pyc /usr/lib/python2.7/site-packages/migrate/changeset/exceptions.pyo /usr/lib/python2.7/site-packages/migrate/versioning/exceptions.py /usr/lib/python2.7/site-packages/migrate/versioning/exceptions.pyc /usr/lib/python2.7/site-packages/migrate/versioning/exceptions.pyo $ Packages I have installed regarding sqlalchemy and migration: python-migrate-0.6-4.fc15.noarch python-sqlalchemy-0.6.8-1.fc15.x86_64 I will double check INSTALL file as I upgraded to Fedora 15 few days ago. HTH, David ------------------------------------------------------------------------------ EMC VNX: the world's simplest storage, starting under $10K The only unified storage solution that offers unified management Up to 160% more powerful than alternatives and 25% more efficient. Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev _______________________________________________ Pytrainer-devel mailing list Pytrainer-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pytrainer-devel