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
Numpy WIN 64-bit v1.13.1 |Python 3.6.1 |Anaconda 4.4.0 suddenly broken #3463
Comments
Some further investigation (only based on numpy and python 3.6.2 leads to now the problem is, that there are multiple versions for each of the DLLs (DLL hell) mkl_intel_thread.dll mkl_core.dll libiomp5md.dll each of them different versions, file sizes and versions. Basically the libraries that are loaded refer |
This is an issue with your system. You should never have any DLLs in C:\Windows\System32 that are not provided as part of Windows by Microsoft. Non-system DLLs in the system DLL folder is the worst form of DLL hell. Do you know what software you installed that put those DLLs in that location? Anaconda does not do that. |
@mingwandroid But reality is that Microsoft and many other vendors ship these DLLs as part of different packages and they are sometimes installed in System32 and sometimes not. These libraries are around since many years dating back to 1994. Out of the 70,000 DLLs on my small test system around 4000 DLLs are in System32. Who installed what, probably can only be found by a dependency walker. Is it good practice to have all DLLs in local directories, sure it is. It is commonly done, probably not. Example for MS DLLs shipped (libiomp5md.dll) As I said, this is (probably) an issue with numpy, not only observed by me and I just report it here, 2017 numpy error under windows: The numpy package owners recommended to post that error here, I will see if this can get resolved. |
Its a numpy/conda/python issue under windows. Both examples are executed at the same time using the same Anaconda Navigator (conda) version. Installing different python versions and then testing all different dependencies and version numbers can help find the issue. After that code changes have to be investigated. Working
Broken
|
I am afraid you are mistaken here with regards to Microsoft. I have seen other software vendors doing it, but as a tip, anyone who does this cares not a jot for whether their software breaks the rest of the software on your system and that software should not be used. Please read https://docs.microsoft.com/en-gb/cpp/build/search-path-used-by-windows-to-locate-a-dll The tl;dr is: Any DLLs in
'Shipped' does not mean 'installed into |
For your reference, here are the instructions for installing CNTK: https://docs.microsoft.com/en-us/cognitive-toolkit/Setup-Windows-Binary-Manual |
The solution is indeed related to some DLL depencency issues under WIN with Intel MKL libraries
The quick and dirty solution is to copy all Intel mkl*.dll libraries from the specific environments (env) subfolder (seen at stackoverflow) <\Library\bin> to
now numpy can be imported and runs fine. |
The reason they're not being read from your PATH is probably because either you have them in System32 or you are not seeing your PATH, best done by using activate.bat. While I'm glad you are up and running again your fix is not the correct solution and you haven't got to the root of the problem (ie it is likely you'll need to do something similar next time you have an import failure). |
Same problem on Windows64, Miniconda 3 with these versions:
Downgrading |
@j08lue, this is probably a |
Right, thanks. conda-forge/numpy-feedstock#78 |
Numpy WIN 64-bit v1.13.1 just worked fine in Anaconda navigator and Spyder, but since July 2017
and some weird updates, NUMPY under Windows and Python 3.6.1 does not work anymore. (worked for couple of month before, really liked it).
Spyder with numpy v1.13.1
Python 3.6.1 |Anaconda 4.4.0 (64-bit)| (default, May 11 2017, 13:25:24) [MSC v.1900 64 bit (AMD64)]
import numpy
ImportError:
Importing the multiarray numpy extension module failed. Most
likely you are trying to import a failed build of numpy.
If you're working with a numpy git repo, try
git clean -xdf
(removes allfiles not under version control). Otherwise reinstall numpy.
Another error just for conda Numpy WIN 64-bit v1.13.1.
Python 3.6.2 |Continuum Analytics, Inc.| (default, Jul 20 2017, 12:30:02) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "", line 1, in
File "C:\Anaconda3\envs\tensorflow-cpu\lib\site-packages\numpy_init_.py", line 142, in
from . import add_newdocs
File "C:\Anaconda3\envs\tensorflow-cpu\lib\site-packages\numpy\add_newdocs.py", line 13, in
from numpy.lib import add_newdoc
File "C:\Anaconda3\envs\tensorflow-cpu\lib\site-packages\numpy\lib_init_.py", line 8, in
from .type_check import *
File "C:\Anaconda3\envs\tensorflow-cpu\lib\site-packages\numpy\lib\type_check.py", line 11, in
import numpy.core.numeric as nx
File "C:\Anaconda3\envs\tensorflow-cpu\lib\site-packages\numpy\core_init.py", line 26, in
raise ImportError(msg)
ImportError:
Importing the multiarray numpy extension module failed. Most
likely you are trying to import a failed build of numpy.
If you're working with a numpy git repo, try
git clean -xdf
(removes allfiles not under version control). Otherwise reinstall numpy.
Original error was: DLL load failed: The specified procedure could not be found.
This worked fine with an old install of Anaconda3-4.3.1-Windows-x86_64.exe for a couple of weeks,
a new install after everything was broken based on update/upgrade procedures gives the same errors.
The text was updated successfully, but these errors were encountered: