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

ModuleNotFoundErrot: No module named 'numpy.testing.decorators' #26

Closed
prnvkhndlwl opened this issue Jan 27, 2020 · 7 comments
Closed

Comments

@prnvkhndlwl
Copy link

prnvkhndlwl commented Jan 27, 2020

Hey!

So I started on a fresh installation of ubuntu 18.04 and everything worked including building the docker image and entering the docker container. However, when inside the container -
export DLClight=True -> works
ipython -> works
import deeplabcut -> I get the following error

prnv@8f1fe0ba761e:/$ export DLClight=True
prnv@8f1fe0ba761e:/$ ipython
Python 3.6.3 (default, Oct 6 2017, 08:44:35)
Type 'copyright', 'credits' or 'license' for more information
IPython 6.2.1 -- An enhanced Interactive Python. Type '?' for help.

In [1]: import deeplabcut
DLC loaded in light mode; you cannot use any GUI (labeling, relabeling and standalone GUI)

ModuleNotFoundError Traceback (most recent call last)
in ()
----> 1 import deeplabcut

/usr/local/lib/python3.6/dist-packages/deeplabcut/init.py in ()
41 print("Project loaded in colab-mode. Apparently Colab has trouble loading statsmodels, so the smoothing & outlier frame extraction is disabled. Sorry!")
42 else:
---> 43 from deeplabcut.refine_training_dataset import extract_outlier_frames, merge_datasets
44 from deeplabcut.post_processing import filterpredictions, analyzeskeleton
45

/usr/local/lib/python3.6/dist-packages/deeplabcut/refine_training_dataset/init.py in ()
18 from deeplabcut.refine_training_dataset.auxfun_drag import *
19
---> 20 from deeplabcut.refine_training_dataset.outlier_frames import *

/usr/local/lib/python3.6/dist-packages/deeplabcut/refine_training_dataset/outlier_frames.py in ()
14 from pathlib import Path
15 import pandas as pd
---> 16 import statsmodels.api as sm
17 from deeplabcut.utils import auxiliaryfunctions, visualization
18 from deeplabcut.utils import frameselectiontools

/usr/local/lib/python3.6/dist-packages/statsmodels/api.py in ()
5 from . import tools
6 from .tools.tools import add_constant, categorical
----> 7 from . import regression
8 from .regression.linear_model import OLS, GLS, WLS, GLSAR
9 from .regression.recursive_ls import RecursiveLS

/usr/local/lib/python3.6/dist-packages/statsmodels/regression/init.py in ()
----> 1 from .linear_model import yule_walker
2
3 from statsmodels.tools._testing import PytestTester
4
5 all = ['yule_walker', 'test']

/usr/local/lib/python3.6/dist-packages/statsmodels/regression/linear_model.py in ()
38 import numpy as np
39 from scipy.linalg import toeplitz
---> 40 from scipy import stats
41 from scipy import optimize
42

/usr/local/lib/python3.6/dist-packages/scipy/stats/init.py in ()
343 from .stats import *
344 from .distributions import *
--> 345 from .morestats import *
346 from ._binned_statistic import *
347 from .kde import gaussian_kde

/usr/local/lib/python3.6/dist-packages/scipy/stats/morestats.py in ()
10 sqrt, ceil, floor, array, compress,
11 pi, exp, ravel, count_nonzero, sin, cos, arctan2, hypot)
---> 12 from numpy.testing.decorators import setastest
13
14 from scipy._lib.six import string_types

ModuleNotFoundError: No module named 'numpy.testing.decorators'

Any suggestions?

Also a sidenote -
on ubuntu 18.04
'sudo apt-get install nvidia-docker' seems to not work but 'sudo apt-get install nvidia-docker2' does the job!

Thank you so much! :)

@sbtnRey
Copy link

sbtnRey commented Jan 27, 2020

I had the same issue recently, "pip install numpy==1.16.4" in the container seemed to fix it.

@prnvkhndlwl
Copy link
Author

It worked! Thank you so much for the quick response!!!

@som21-star
Copy link

I had the same issue recently, "pip install numpy==1.16.4" in the container seemed to fix it.

Great!!...recently, I had the same issue. Now it's fixed. Thanks buddy.

@Krishna-Sarath-Maddula
Copy link

I had the same issue recently, "pip install numpy==1.16.4" in the container seemed to fix it.

Worked. Thanks a lot!

@scollay
Copy link

scollay commented Jun 4, 2020

Same here - pip'd something and it broke everything upgrading to 1.18.5
Back to 1.16.4 and all fine.
Thanks!

@pnidhi26
Copy link

Thanks, its work for me. New update over numpy 1.19 version have some issue but lower versions work perfectly.

@chetan11-stack
Copy link

I had the same issue recently, "pip install numpy==1.16.4" in the container seemed to fix it.

Thank you!!

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

7 participants