spyder: Clean conda Windows install, followed by 'conda update --all' results in wrong mkl dlls being used for Spyder
Problem Description
A clean conda install from https://www.anaconda.com/download/#windows (version 5.2.0) works for Spyder, but if I then do a ‘conda update --all’, the resulting configuration is broken. When you run Spyder, launching from Anaconda navigator, you get a message about a missing ordinal 242 in Anaconda3\Library\bin\mkl_intel_thread.dll
This turns out to be because the dlls from mkl-2018.0.3-1 are installed in Anaconda3\Library\bin, but something in Spyder needs the dlls from mkl-2018.0.2-1 instead. If you copy the dlls from Anaconda3\pkgs\mkl-2018.0.2-1\Library\bin into Anaconda3\Library\bin, Spyder then launches normally. (This probably breaks something else, but if so, it’s something I haven’t yet tried to use 😉
What steps reproduce the problem?
- Install Anaconda for Windows
- run conda update --all
- Launch Spyder
What is the expected output? What do you see instead?
Paste Traceback/Error Below (if applicable)
PASTE TRACEBACK HERE
Versions
- Spyder version: 3.2.8
- Python version: 3.6.5
- Qt version: 5.9.4
- PyQt5 version: 5.9.2
- Operating system: Windows 10
Dependencies
pyflakes >=0.6.0 : 2.0.0 (OK)
pycodestyle >=2.3: 2.4.0 (OK)
pygments >=2.0 : 2.2.0 (OK)
pandas >=0.13.1 : 0.23.1 (OK)
numpy >=1.7 : 1.14.5 (OK)
sphinx >=0.6.6 : 1.7.5 (OK)
rope >=0.9.4 : 0.10.7 (OK)
jedi >=0.9.0 : 0.12.0 (OK)
nbconvert >=4.0 : 5.3.1 (OK)
sympy >=0.7.3 : 1.1.1 (OK)
cython >=0.21 : 0.28.3 (OK)
qtconsole >=4.2.0: 4.3.1 (OK)
IPython >=4.0 : 6.4.0 (OK)
pylint >=0.25 : 1.9.2 (OK)
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 2
- Comments: 105 (47 by maintainers)
We have spoken with Intel about this issue. They said that there are some backwards incompatible changes in mkl 2019. We had been operating under the assumption that software built against 2018 would work with 2019, but that is not necessarily true. We will be rebuilding packages so that constraints are more accurate, and so thata complete set of software built with mkl 2019 is available.
@ccordoba12 @mingwandroid @msarahan This appears to be potentially more serious than previously stated, to the point of essentially making a Anaconda environment with mkl 2018.0.3 completely unusable. I installed Spyder 3.3.0 (conda-forge) and its optional dependencies (
numpy,pandas,matplotlib,scipy,sympyandcython) into a fresh conda environment on my on my Win 8.1 x64 system, and whileimport pandasdoesn’t trigger the error message in that environment, anything withmatplotlibwill, among other things, e.g.This not only happens in Spyder, but also QtConsole, ipython, and even a bare python interpreter; each crashes with the above two lines. I also tested in another new, clean environment with just Python 3.6.6 and matplotlib installed, and got the bug immediately on
import matplotlib.pyplot as pltin the basic Python interpreter, crashing it. I then installedpandas, and got the same bug immediately upon importing it, again crashing the interpreter. I then downgraded to mkl 2018.0.2-1 from 2018.0.3-1 with conda, and everything worked fine.So, users can fix it relatively painlessly (for now) by just running
conda install mkl=2018.0.2under Anaconda Prompt in any affected environment. However, this would appear to be very serious for those creating a new environment that usesnumpyor other packages that depend on it, anyone runningconda update --all, or anyone installing or updating a package that triggers an install of that new version, since it will cause their environment to be essentially broken and unusable unless and until they are aware of and implement the above fix.@janm97 Did you try
conda install mkl=2018.0.2?@dolson14 is likely not activating the environment. PATH works in a line. Activating lets us come first without raising hell with other software. Not activating means you’re at the mercy of order, where generally only appending is safe, and you’re thus in a situation where the earliest installed software has higher priority than newer stuff.
[‘System32\libiomp5md.dll’, ‘System32\mkl_core.dll’, ‘System32\mkl_def.dll’,‘System32\mkl_intel_thread.dll’, ‘SysWOW64\libiomp5md.dll’,‘SysWOW64\mkl_core.dll’,‘SysWOW64\mkl_intel_thread.dll’, ‘SysWOW64\mkl_p4.dll’, ‘SysWOW64\mkl_p4m.dll’,‘SysWOW64\mkl_p4m3.dll’, ‘SysWOW64\mkl_p4p.dll’]
Remove all these ddl files from C:\Windows\SysWOW64 and C:\Windows\System32
Just do this and restart the spyder once again and hurrrahhhh!!! ur problem will be solved and spyder will open without showing any ordinal 242 error…just do it it is the only solution…
I have a fresh Anaconda (2018.12) install on Windows 10 with this issue, and I do not have Amplitube installed (never heard of it). The fix for me was finding
libiomp5md.dllin my system32 folder and renaming it. No idea which program uses it, but hopefully I don’t have to find out. Otherwise, simply reverting to mkl 2018.0.2 and python 3.6 didn’t completely help (I could at least import numpy, but certain functions still caused errors on loading).Thanks!