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

MDAnalysisTests conda package does not install hypothesis #2091

Closed
orbeckst opened this issue Oct 7, 2018 · 2 comments
Closed

MDAnalysisTests conda package does not install hypothesis #2091

orbeckst opened this issue Oct 7, 2018 · 2 comments

Comments

@orbeckst
Copy link
Member

orbeckst commented Oct 7, 2018

Expected behavior

conda install MDAnalysisTests

allows me to run

pytest --disable-pytest-warnings --pyargs MDAnalysisTests

as documented in UnitTests: Users.

Actual behavior

Test collection fails and no tests are run:

(mda3) yngvi:tmp oliver$ pytest --disable-pytest-warnings --pyargs MDAnalysisTests
============================= test session starts ==============================
platform darwin -- Python 3.6.6, pytest-3.8.2, py-1.6.0, pluggy-0.7.1
rootdir: /Users/oliver/tmp, inifile:
plugins: xdist-1.23.2, pep8-1.0.6, forked-0.2, cov-2.6.0
collected 6423 items / 1 errors

==================================== ERRORS ====================================
___________ ERROR collecting MDAnalysisTests/formats/test_libdcd.py ____________
ImportError while importing test module '/Users/oliver/anaconda3/envs/mda3/lib/python3.6/site-packages/MDAnalysisTests/formats/test_libdcd.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
../anaconda3/envs/mda3/lib/python3.6/site-packages/duecredit/injections/injector.py:285: in __import
    mod = self._orig_import(name, *args, **kwargs)
../anaconda3/envs/mda3/lib/python3.6/site-packages/MDAnalysisTests/formats/test_libdcd.py:25: in <module>
    import hypothesis.strategies as strategies
../anaconda3/envs/mda3/lib/python3.6/site-packages/duecredit/injections/injector.py:285: in __import
    mod = self._orig_import(name, *args, **kwargs)
E   ModuleNotFoundError: No module named 'hypothesis'
!!!!!!!!!!!!!!!!!!! Interrupted: 1 errors during collection !!!!!!!!!!!!!!!!!!!!
===================== 3 warnings, 1 error in 11.49 seconds =====================

Code to reproduce the behavior

See above.

Currently version of MDAnalysis

  • Which version are you using? 0.18.0 from conda-forge
  • Which version of Python (python -V)? 3.6
  • Which operating system? macOS Sierra
@orbeckst orbeckst added this to the 0.19.0 milestone Oct 7, 2018
@orbeckst
Copy link
Member Author

orbeckst commented Oct 7, 2018

Current workaround:

conda install hypothesis

@kain88-de
Copy link
Member

Fixed and updated packages should be available in conda within the next hour.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants