Home My Page Projects Code Snippets Project Openings devtools
Summary Activity Tracker SCM

[#2273] mingw msvc+mkl: numpy multiarray ImportError: DLL load failed

Date:
2020-06-23 08:49
Priority:
3
State:
Open
Submitted by:
Charles Ballard (ccb63)
Assigned to:
Nobody (None)
branch:
py3
type:
none
Summary:
mingw msvc+mkl: numpy multiarray ImportError: DLL load failed

Detailed description
$ install/bin/ccp4-python.bat -i
Python 3.7.1 (v3.7.1:260ec2c36a, Oct 20 2018, 14:57:15) [MSC v.1915 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
Traceback (most recent call last):
File "C:\msys64\je\workspace\CCP4\win10-trunk\devtools\install\lib\site-packages\numpy\core\__init__.py", line 40, in <module>
from . import multiarray
File "C:\msys64\je\workspace\CCP4\win10-trunk\devtools\install\lib\site-packages\numpy\core\multiarray.py", line 13, in <module>
from . import overrides
File "C:\msys64\je\workspace\CCP4\win10-trunk\devtools\install\lib\site-packages\numpy\core\overrides.py", line 6, in <module>
from numpy.core._multiarray_umath import (
ImportError: DLL load failed: The specified module could not be found.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\msys64\je\workspace\CCP4\win10-trunk\devtools\install\lib\site-packages\numpy\__init__.py", line 142, in <module>
from . import core
File "C:\msys64\je\workspace\CCP4\win10-trunk\devtools\install\lib\site-packages\numpy\core\__init__.py", line 71, in <module>
raise ImportError(msg)
ImportError:

IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!

Importing the multiarray numpy extension module failed. Most
likely you are trying to import a failed build of numpy.
Here is how to proceed:
- If you're working with a numpy git repository, try `git clean -xdf`
(removes all files not under version control) and rebuild numpy.
- If you are simply trying to use the numpy version that you have installed:
your installation is broken - please reinstall numpy.
- If you have already reinstalled and that did not fix the problem, then:
1. Check that you are using the Python you expect (you're using C:\msys64\je\workspace\CCP4\win10-trunk\devtools\install\libexec\python.exe),
and that you have no directories in your PATH or PYTHONPATH that can
interfere with the Python and numpy versions you're trying to use.
2. If (1) looks fine, you can open a new issue at
https://github.com/numpy/numpy/issues. Please include details on:
- how you installed Python
- how you installed numpy
- your operating system
- whether or not you have multiple versions of Python installed
- if you built from source, your compiler versions and ideally a build log

Note: this error has many possible causes, so please don't comment on
an existing issue about this - open a new one instead.

Original error was: DLL load failed: The specified module could not be found.

>>>
Message  ↓
Date: 2020-06-23 09:30
Sender: Charles Ballard

cp /c/Program\ Files\ \(x86\)/IntelSWTools/compilers_and_libraries_2020.1.216/windows/redist/intel64_win/mkl/mkl_* install/lib/site-packages/numpy/core/.

Date: 2020-06-23 09:21
Sender: Charles Ballard

$ cp /c/Program\ Files\ \(x86\)/IntelSWTools/compilers_and_libraries_2020.1.216/windows/redist/intel64_win/mkl/mkl_rt.dll install/lib/site-packages/numpy/core/.

CLRC+ccb63@DESKTOP-M9T1C6S MINGW64 /je/workspace/CCP4/win10-trunk/devtools
$ install/bin/ccp4-python.bat -i Python 3.7.1 (v3.7.1:260ec2c36a, Oct 20 2018, 14:57:15) [MSC v.1915 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
INTEL MKL ERROR: The specified module could not be found. mkl_intel_thread.dll.
Intel MKL FATAL ERROR: Cannot load mkl_intel_thread.dll.

Field Old Value Date By
status_idClosed2020-06-26 12:44ccb63
close_date2020-06-26 12:432020-06-26 12:44ccb63
status_idOpen2020-06-26 12:43ccb63
close_dateNone2020-06-26 12:43ccb63