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

[b2] stacktrace when loading bodhi1 database #82

Closed
pypingou opened this issue Aug 8, 2014 · 2 comments
Closed

[b2] stacktrace when loading bodhi1 database #82

pypingou opened this issue Aug 8, 2014 · 2 comments

Comments

@pypingou
Copy link
Member

pypingou commented Aug 8, 2014

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

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/pingou/.virtualenvs/bodhi-python2.7/lib/python2.7/site-packages/SQLAlchemy-0.9.7-py2.7-linux-x86_64.egg/sqlalchemy/orm/state.py", line 260, in _initialize_instance
    return manager.original_init(*mixed[1:], **kwargs)
  File "/home/pingou/.virtualenvs/bodhi-python2.7/lib/python2.7/site-packages/SQLAlchemy-0.9.7-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
@pypingou
Copy link
Member Author

pypingou commented Aug 8, 2014

If I remove the locked key from the dictionary, then it fails with NOT NULL constraint failed: releases.stable_tag

@ralphbean
Copy link
Contributor

This was fixed in 7308515

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants