Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Traceback when loading pickled db #103

Closed
ralphbean opened this issue Oct 22, 2014 · 0 comments
Closed

Traceback when loading pickled db #103

ralphbean opened this issue Oct 22, 2014 · 0 comments
Labels
Critical We can't go on living in this sqalor, drop everything and fix it!

Comments

@ralphbean
Copy link
Contributor

I hit this error when trying to import the currently posted pickledb. This could pose a problem when we try to migrate staging and ultimately production, so marking as 'critical'.

$ PYTHONPATH=$(pwd) python tools/pickledb.py migrate bodhi-pickledb*

No handlers could be found for logger "bodhi.buildsys"

Loading pickled database bodhi-pickledb-130801.1918-F17-EOL
WARNING:fedmsg.crypto.x509:Crypto disabled ImportError('No module named M2Crypto',)
Traceback (most recent call last):
  File "tools/pickledb.py", line 446, in <module>
    main()
  File "tools/pickledb.py", line 441, in main
    load_sqlalchemy_db()
  File "tools/pickledb.py", line 214, in load_sqlalchemy_db
    r = Release(**release)
  File "<string>", line 4, in __init__
  File "/home/threebean/.virtualenvs/bodhi-python2.7/lib/python2.7/site-packages/SQLAlchemy-0.9.8-py2.7-linux-x86_64.egg/sqlalchemy/orm/state.py", line 260, in _initialize_instance
    return manager.original_init(*mixed[1:], **kwargs)
  File "/home/threebean/.virtualenvs/bodhi-python2.7/lib/python2.7/site-packages/SQLAlchemy-0.9.8-py2.7-linux-x86_64.egg/sqlalchemy/ext/declarative/base.py", line 525, in _declarative_constructor
    (k, cls_.__name__))
TypeError: 'locked' is an invalid keyword argument for Release
@ralphbean ralphbean added the Critical We can't go on living in this sqalor, drop everything and fix it! label Oct 22, 2014
ralphbean added a commit that referenced this issue Oct 22, 2014
One of our alembic upgrades changed the way that Releases store their
tags (dist_tag versus stable_tag, etc).  This change gets the pickle
importer working again and fixes #103.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Critical We can't go on living in this sqalor, drop everything and fix it!
Projects
None yet
Development

No branches or pull requests

1 participant