-
Notifications
You must be signed in to change notification settings - Fork 655
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
Errors on running tests after setting up development environment #1166
Comments
Update (macOS) I digged deeper on macOS and found that on macOS the number of files that a process can open simultaneously is quite low (256). So I increased the limit by running the following command -
So I ran the test suite again and this time I got only one error -
Maybe we could mention the file limit problem and its fix in the setup guide? |
Okay so there is a dependency version issue here. The setup guide doesn't specify the version of numpy required. It simply specifies the following command -
In the code, the setup.py present at On Switching to Which exact version of numpy is required? Maybe we should be adding this too to the setup guide. |
The latest TravisCI builds (https://travis-ci.org/MDAnalysis/mdanalysis/builds/192259974) also have failed due to the same reason. Conda installs I wonder why didn't Conda install |
@utkbansal For what its worth I was running into the same max open files issue until you gave that fix. |
@jdetle did you also face the |
I just updated numpy in my environment from 1.11.3 to 1.12.0. While I had all the tests passing, I now have the The value error seems unrelated to the numpy version, indeed. The file limit is due to something at least as annoying but completely different. See #875. |
@utkbansal thanks for the awesome issue report. The setup guide is a wiki, so if you want to edit it to include your fix for macOS that would be very handy. |
@utkbansal numpy 1.12 has been released very recently and not all packages we install that depend on numpy have been rebuild with that version of numpy. It is good to know that the new version broke some of our code. You can open a new issue with the exact error that you see using numpy version 1.12. Thanks. |
@richardjgowers I have added the instructions to the wiki. it would be great if you could have a look and tell if it looks fine. |
@utkbansal I get the same exact behavior. |
@utkbansal yep looks good, thanks |
@utkbansal do you still have problems with numpy 1.12 ? My conda packages have recently been updated and first test showed me that everything worked with the new version. |
I'm closing this. I now have numpy 1.12 builds of mdanalysis and everything still runs fine. |
@kain88-de Works on mine too. |
Expected behaviour
I followed the setting up the development guide present at - https://github.com/MDAnalysis/mdanalysis/wiki/Setup-Development-Environment
After cloning the repo and installing the dependencies, I ran the tests which failed.
Actual behaviour
I tried the setup on macOS and Ubuntu and got errors (different) on both.
On Ubuntu (Python 2.7.12)
I got the same error multiple times -
KeyError: 'dtype'
(Looks to me like something went wrong with numpy code)This was the final output-
FAILED (KNOWNFAIL=3, SKIP=132, errors=26)
On macOS (Python 2.7.12)
Got a lot of errors-
Most of them were
IOError
where the file couldn't be read.Error: [Errno 5] Cannot open file or stream in mode='rt'.: "'/Users/utkbansal/Code/mdanalysis/testsuite/MDAnalysisTests/data/adk_oplsaa.gro'"
FAILED (SKIP=101, errors=780, failures=4)
The stack trace was huge so I am not posting it, but if its needed I can share it.
Code to reproduce the behaviour
The text was updated successfully, but these errors were encountered: