Skip to content

Import error when using numpy 1.15 #369

@kandersolar

Description

@kandersolar

Importing numexpr 2.7.2 fails with ImportError: numpy.core.multiarray failed to import when using numpy 1.15 (but works with 1.16):

(py36_test) C:\Users\KANDERSO\projects\rdtools>pip show numexpr
Name: numexpr
Version: 2.7.2
...

(py36_test) C:\Users\KANDERSO\projects\rdtools>pip install numpy==1.16
Collecting numpy==1.16
  Using cached numpy-1.16.0-cp36-cp36m-win_amd64.whl (11.9 MB)
Installing collected packages: numpy
  Attempting uninstall: numpy
    Found existing installation: numpy 1.15.0
    Uninstalling numpy-1.15.0:
      Successfully uninstalled numpy-1.15.0
Successfully installed numpy-1.16.0

(py36_test) C:\Users\KANDERSO\projects\rdtools>python -c "import numexpr"

(py36_test) C:\Users\KANDERSO\projects\rdtools>pip install numpy==1.15
Collecting numpy==1.15
  Using cached numpy-1.15.0-cp36-none-win_amd64.whl (13.5 MB)
Installing collected packages: numpy
  Attempting uninstall: numpy
    Found existing installation: numpy 1.16.0
    Uninstalling numpy-1.16.0:
      Successfully uninstalled numpy-1.16.0
Successfully installed numpy-1.15.0

(py36_test) C:\Users\KANDERSO\projects\rdtools>python -c "import numexpr"
ModuleNotFoundError: No module named 'numpy.core._multiarray_umath'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Users\KANDERSO\Software\Anaconda3\envs\py36_test\lib\site-packages\numexpr\__init__.py", line 26, in <module>
    from numexpr.interpreter import MAX_THREADS, use_vml, __BLOCK_SIZE1__
ImportError: numpy.core.multiarray failed to import

I know numpy 1.15 isn't very recent anymore, but based on requirements.txt I think numpy>=1.7 is supposed to be supported right? Version info:

>>> sys.version
'3.6.12 |Anaconda, Inc.| (default, Sep  9 2020, 00:29:25) [MSC v.1916 64 bit (AMD64)]'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions