sqlalchemy-migrate ImportError

Bug #719834 reported by Jay Pipes
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Fix Released
High
Jay Pipes

Bug Description

sqlalchemy-migrate project changed where the versioning/exceptions modules are located, and therefore, when running tests with a newer version of the library, you get:

ERROR: Failure: ImportError (cannot import name exceptions)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jpipes/repos/glance/bug704854/.glance-venv/lib/python2.6/site-packages/nose/loader.py", line 390, in loadTestsFromName
    addr.filename, addr.module)
  File "/home/jpipes/repos/glance/bug704854/.glance-venv/lib/python2.6/site-packages/nose/importer.py", line 39, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/home/jpipes/repos/glance/bug704854/.glance-venv/lib/python2.6/site-packages/nose/importer.py", line 86, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/home/jpipes/repos/glance/bug704854/tests/unit/test_migrations.py", line 21, in <module>
    import glance.registry.db.migration as migration_api
  File "/home/jpipes/repos/glance/bug704854/glance/registry/db/migration.py", line 22, in <module>
    from migrate.versioning import exceptions as versioning_exceptions
ImportError: cannot import name exceptions

----------------------------------------------------------------------
Ran 59 tests in 2.528s

FAILED (errors=1)

Tags: migrate

Related branches

Revision history for this message
Jay Pipes (jaypipes) wrote :
Changed in glance:
status: Confirmed → In Progress
Changed in glance:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in glance:
milestone: cactus-2011-02-21 → 2011.2
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.