PyDSM icon indicating copy to clipboard operation
PyDSM copied to clipboard

numpy decorator import error

Open gretzteam opened this issue 4 years ago • 2 comments

Using Python 3.8 on Ubuntu 20.04, getting the following import error:

File "/PyDSM/pydsm/NTFdesign/tests/test_NTFdesign_hybrid.py", line 27, in from numpy.testing import decorators as dec ImportError: cannot import name 'decorators' from 'numpy.testing' (/home/python3.8/site-packages/numpy/testing/init.py)

I fixed it by adding ._private to the numpy.testing module: from numpy.testing._private import decorators as dec

gretzteam avatar Sep 08 '20 11:09 gretzteam