-
Notifications
You must be signed in to change notification settings - Fork 191
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
add instructions when verdi import fails #2420
add instructions when verdi import fails #2420
Conversation
ltalirz
commented
Jan 24, 2019
•
edited
Loading
edited
- when verdi import fails because of an old/new export file version, add a hint on what to do
- fix issue with pip 19.x
- fix issue with prospector failing to install
- fix nasty travis issue with build of pymatgen (built using incompatible numpy version provided by travis)
when verdi import fails because of an old/new export file version, add a hint on what to do
discussed in aiidateam#2362
trying cython>=0.29 from here: numpy/numpy#12785
@giovannipizzi I've already fixed two issues that prevented I'm a bit puzzled because, originally, both the numpy version and the pymatgen version were the same as in |
did you try |
Was worth a try, but the problem remains From looking at the code, it seems to me it should be either numpy, cython or libc Could probably be worked around by adding Btw, here are the dependencies for pymatgen 2018.12.12 |
I'm unable to reproduce the problem locally in a conda environment with python 2.7
Here are the relevant installed wheels on macOS:
Here the same info from the travis log:
Perhaps, it is building pymatgen from source using a different numpy version, and then it doesn't work together with the one we are installing. |
Try to delete the travis cache, it is possible that it's using a cached version? From the travis GUI you should have a button to clear the cache for this specific PR/branch |
Ok, just for the record: adding numpy==1.15.4 as build dependency did not solve the problem. |
Clearing the cache also didn't help - out of ideas for the moment. |
It says at some point:
and then in the same stage it compiles numpy 1.15 and pymatgen. So it is possible that it's using the old numpy to compile pymatgen? I would have thought, though, that the addition of the numpy version to the toml file as well would have fixed this... maybe the syntax is not correct and something is getting ignored? Or maybe you can try uninstalling numpy before doing the pip install of everything? (at least to see if this is the source of the problem). |
From the extremely verbose output of pip with
However, I tried clearing the cache before and it did not help |
Did you clear it for the correct branch/PR? Also, if the cache is missing, I don't know if it reuses the cache of the source branch (in your fork) and/or the destination branch, you might want to try cleaning up those as well and rebuilding with |
yeah, I was wondering that - looking back at the travis job I thought I restarted, it looks to me like it was still using the cache. Ok: clearing the cache worked now - it is now downloading from pypi:
However, all jobs fail because pip -vvv is too verbose for travis
So let's deactivate it again... |
It seems since the previous job was terminated too early, pymatgen was downloaded again now (this differs from the usual output before):
I uncommented the uninstallation of numpy, so the upgrade from numpy 1.13 to 1.15 happens only at the very end (the numpy 1.15.4 specified in the The problem persists - |
Looks like this indeed fixed the issue - yay! To summarize:
This remains a mystery to me:
|
Regarding the question why builds are working for |
Thanks @sphuber - that does indeed explain it.
Hm... I guess |
it seems that, for whatever reason, the issue described here has resurfaced: aiidateam#2420 (comment) It was thought that this could be prevented by adding the `--no-cache-dir` argument to pip here: aiidateam#2799 but apparently this fix was fortuituous?
* docs: add note on increasing work_mem + restructure troubleshooting section a bit + incorporate suggestions by @kjappelbaum + add a vacuum Note on failing travis build it seems that, for whatever reason, the issue described here has resurfaced: #2420 (comment) It was thought that this could be prevented by adding the `--no-cache-dir` argument to pip here: #2799 but apparently this fix was fortuitous...
Just to add another chapter to the story - I had a documentation build fail because pymatgen was installing a 1.17.0rc1 version of numpy (no idea how pip got the idea that it should be allowed to install release candidates): Apparently, this version of numpy requires python >= 3.5, so the build failed there. Note: I guess some of the issue comes from the fact that pymatgen specifies |
I have the same problem now on all my branches on my fork. All my py2.7 tests are failing. The weird thing is that we explicitly specify |
The problem seems to be that |