-
Notifications
You must be signed in to change notification settings - Fork 657
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
MDAnalysisTests raises exception when imported #1301
Comments
More precisely, this appears to be an issue with import mock gives
|
FYI: I completely nuked the virtualenv and rebuild it from scratch. Still same error. This is annoying because it means than none of the tutorials work at the moment, they all rely on the user using the tests trajectories. |
Possibly relevant (pbr /sdist/git client issue): https://roaet.com/2017/02/10/uploading-my-fork-of-python-neutronclient/ (an update on https://roaet.com/2017/02/10/problem-with-pbr-and-sdist-tarball/ ) |
Possibly similar issue as testing-cabal/mock#402 |
Well... this seems to be an issue with me using Python 2.7.13 (default, Dec 23 2016, 05:05:16)
[GCC 4.2.1 Compatible Apple LLVM 7.3.0 (clang-703.0.31)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import MDAnalysisTests
>>> import MDAnalysisTests.datafiles
>>> print MDAnalysisTests.datafiles.PSF
/Users/oliver/.virtualenvs/mda_clean/lib/python2.7/site-packages/MDAnalysisTests/data/adk.psf When I install (mda_clean) yngvi:issue-1133 oliver$ /Users/oliver/.virtualenvs/mda_clean/bin/ipython2
[TerminalIPythonApp] WARNING | Config option `ignore_old_config` not recognized by `TerminalIPythonApp`.
Python 2.7.13 (default, Dec 23 2016, 05:05:16)
Type "copyright", "credits" or "license" for more information.
IPython 5.3.0 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.
In [1]: import MDAnalysisTests
In [2]: import MDAnalysisTests.datafiles
In [3]: print MDAnalysisTests.datafiles.PSF
/Users/oliver/.virtualenvs/mda_clean/lib/python2.7/site-packages/MDAnalysisTests/data/adk.psf |
Oh yeah ipython can be tricky with virtual envs. It will always pick your global Python installation unless it is installed in the virtual env. |
Expected behaviour
and
should import (and make eg files available in
datafiles
.Actual behaviour
Both imports fail with
Code to reproduce the behaviour
Currently version of MDAnalysis:
(run
python -c "import MDAnalysis as mda; print(mda.__version__)"
)0.16.0 (pip upgraded in a virtualenv)
The text was updated successfully, but these errors were encountered: