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

Can't import accelerometer No module named 'numpy.testing.decorators' #20

Closed
muschellij2 opened this issue Mar 20, 2020 · 7 comments
Closed

Comments

@muschellij2
Copy link

Installed via the REAMDE:

MacBook-Pro-9:biobankAccelerometerAnalysis johnmuschelli$ python3
Python 3.5.1 (v3.5.1:37a07cee5969, Dec  5 2015, 21:12:44) 
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import accelerometer
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/johnmuschelli/Dropbox/Packages/biobankAccelerometerAnalysis/accelerometer/__init__.py", line 1, in <module>
    import accelerometer.accClassification
  File "/Users/johnmuschelli/Dropbox/Packages/biobankAccelerometerAnalysis/accelerometer/accClassification.py", line 6, in <module>
    import pandas as pd
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/pandas/__init__.py", line 56, in <module>
    import pandas.util.testing
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/pandas/util/testing.py", line 22, in <module>
    from numpy.testing.decorators import slow     # noqa
ImportError: No module named 'numpy.testing.decorators'

May be related to: apache/mxnet#17154

@chanshing
Copy link
Member

It seems to be related to this:
https://stackoverflow.com/questions/59474533/modulenotfounderror-no-module-named-numpy-testing-nosetester
Please can you show your scipy and numpy versions? Try upgrading scipy.

@muschellij2
Copy link
Author

Still failing after updating scipy:

MacBook-Pro-9:biobankAccelerometerAnalysis johnmuschelli$ pip freeze | grep numpy
numpy==1.18.1
MacBook-Pro-9:biobankAccelerometerAnalysis johnmuschelli$ pip freeze | grep scipy
scipy==1.1.0

@chanshing
Copy link
Member

chanshing commented Mar 21, 2020

Can you try downgrading to numpy==1.18?

@muschellij2
Copy link
Author

Downgraded, same thing.

@chanshing
Copy link
Member

chanshing commented Mar 23, 2020

Can you try upgrading pandas? Or create a fresh python environment and install pandas first.
https://stackoverflow.com/questions/60071815/import-pandas-modulenotfounderror-no-module-named-numpy-testing-decorators

@angerhang
Copy link
Member

angerhang commented Apr 20, 2020

BTW @muschellij2 you should also use Python 3.7 instead of Python 3.5.1.

@aidendoherty
Copy link
Member

I think this issue is now solved following suggestion of @angerhang . @muschellij2 please reopen this if you still have problems.

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

No branches or pull requests

4 participants