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

cannot run oqmd (django ImportError) #121

Open
LuciusV opened this issue Apr 24, 2021 · 2 comments
Open

cannot run oqmd (django ImportError) #121

LuciusV opened this issue Apr 24, 2021 · 2 comments

Comments

@LuciusV
Copy link

LuciusV commented Apr 24, 2021

Hello!
I installed qmpy by pip install qmpy for python3.7 environment
oqmd command gives error:

Traceback (most recent call last): File "/home/youjin/virtualenvs/django/bin/oqmd", line 10, in <module> from django.db.models import get_app, get_models ImportError: cannot import name 'get_app' from 'django.db.models' (/home/youjin/virtualenvs/django/lib/python3.7/site-packages/django/db/models/__init__.py)

(also, oqmd still had some python2-stype print...)

@tachyontraveler
Copy link
Member

Thanks for reporting the issue. This happened because we released the pip package before the files in the bin directory were updated to Py3. It was a mistake. The update for the files was done soon after, but I'm yet to update the pip package. Will do it as soon as possible. Until then, you can use qmpy by cloning the github repo and installing it inside the virtual environment.

If curious, the commit that corrected these issues is accessible here.

Current version of the file bin/oqmd is provided here

@tachyontraveler
Copy link
Member

I'll keep this issue open until a new pip package is released with relevant fixes

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