-
Notifications
You must be signed in to change notification settings - Fork 32
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
Incompatible versions of numpy
in Quantum Mobile
#175
Comments
Firstly, can you clarify what version of QM you used?
So I assume, you must have installed aiida-fleur etc, independently at which point this issue has been introduced? Indeed if I activate the aiida environment then run
As mentioned in the original discussion, the problem is that numpy is first installed by pymatgen, which it requires for its compilation procedure, and by default just installs the latest numpy version (currently This issue then may not necessarily occur when building the full QM, which installs all dependencies at once and so is less prone to overriding of previous installs. But obviously I will check this when I build a "full" release and have a think if there is other ways to test this (more so than just Indeed though, it would be good if Also of note, recent updates to pymatgen may or may not have fixed this in some way. cc also @aiidateam/dependency-manager |
Both
This indeed only occurred when installing |
Just to verify, are you using a recent version of pip (>=42)? Because I was able to show that this problem was likely resolved in version 42, see this comment. |
That is somewhat of a problem, that with
You mean |
😛
I can't find an obvious reason for why it would downgrade setuptools, but this could be related to the issue. |
For this issue, and for #162, does it not make more sense to create a new virtualenv within which to install/run common workflows, rather taking the working Also I think your aiida-common-workflows/setup.json Line 17 in a3aa64b
I would suggest it should include a pinning for aiida-core (probably to 1.5.2 for now) and also ensure all the plugins have some form of upper pinning, so the package won't break later on if plugin make any breaking changes. |
I think that creating an entire new virtual environment because it breaks another might be the wrong way to go about it. Isn't |
Thanks a lot @chrisjsewell . I have good news and bad news: the good news is that with the new QM release I can run the abinit example for Si fast without issues 👍 ! However, there was an unrelated problem that had to be fixed first. When trying to submit I was faced with the following exception:
We have seen this before but I never figured out an actual fix that is reproducible. It seems that there is an incompatibility between the
numpy
that was installed and the one that was used during the build process ofpymatgen
😞 I tried removing and reinstalling thenumpy==1.19.5
which was installed, but to no avail. I then tried to installnumpy==1.20.1
which solved the problem, however, for this I had to removeaiida-fleur
as dependency fromaiida-common-workflows
and reinstall, asaiida-fleur
explicitly specifiesnumpy<1.20
and so it would fail with a dependency conflict. I think they may have added this becausenumpy==1.20
removed Python 3.6 support and they wanted to still support it. @Tseplyaev @broeder-j can you confirm this? If that is the case, I don't think this is the way to do this. Simply addingpython_requires>=3.6
in your setup will informpip
that you support Python 3.6 and so it shouldn't install incompatible numpy versions. It would be good if you could remove this explicit limitation.Then @chrisjsewell , do you have any idea how we can prevent this
numpy
problem in QM?Originally posted by @sphuber in #159 (comment)
The text was updated successfully, but these errors were encountered: