qizhiyi / sqlalchemy-migrate

Automatically exported from code.google.com/p/sqlalchemy-migrate
MIT License
0 stars 0 forks source link

AttributeError: 'module' object has no attribute 'MigrateDeprecationWarning' #109

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Missprint in migrate/versioning/script/py.py, line 143

There is no MigrateDeprecationWarning in migrate.versioning.exceptions
MigrateDeprecationWarning located in migrate.changeset.exceptions

Traceback (most recent call last):
  File "/opt2/naumen/nauphone/spool/naufbstat/dbrepository/manage.py", line 3, in <module>
    main(debug='False')
  File "/opt/naumen/nauphone/lib/python2.6/site-packages/sqlalchemy_migrate-0.6-py2.6.egg/migrate/versioning/shell.py", line 203, in main
    ret = command_func(**kwargs)
  File "/opt/naumen/nauphone/lib/python2.6/site-packages/sqlalchemy_migrate-0.6-py2.6.egg/migrate/versioning/api.py", line 185, in upgrade
    return _migrate(url, repository, version, upgrade=True, err=err, **opts)
  File "<string>", line 2, in _migrate
  File "/opt/naumen/nauphone/lib/python2.6/site-packages/sqlalchemy_migrate-0.6-py2.6.egg/migrate/versioning/util/__init__.py", line 160, in with_engine
    return f(*a, **kw)
  File "/opt/naumen/nauphone/lib/python2.6/site-packages/sqlalchemy_migrate-0.6-py2.6.egg/migrate/versioning/api.py", line 364, in _migrate
    schema.runchange(ver, change, changeset.step)
  File "/opt/naumen/nauphone/lib/python2.6/site-packages/sqlalchemy_migrate-0.6-py2.6.egg/migrate/versioning/schema.py", line 83, in runchange
    change.run(self.engine, step)
  File "/opt/naumen/nauphone/lib/python2.6/site-packages/sqlalchemy_migrate-0.6-py2.6.egg/migrate/versioning/script/py.py", line 143, in run
    " parameter (since version > 0.5.4)", exceptions.MigrateDeprecationWarning)
AttributeError: 'module' object has no attribute 'MigrateDeprecationWarning'

Original issue reported on code.google.com by RTrack...@gmail.com on 1 Feb 2011 at 1:45

GoogleCodeExporter commented 8 years ago
Can you reproduce this with a current hg clone?

Can you tell us the command line you used to produce this behavior?

Original comment by jan.ditt...@gmail.com on 1 Feb 2011 at 6:46

GoogleCodeExporter commented 8 years ago

Original comment by iElect...@gmail.com on 5 Feb 2011 at 1:41