-
Notifications
You must be signed in to change notification settings - Fork 89
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
Cannot load libmkl_intel_thread.dylib #315
Comments
@willtebbutt is also experiencing this, with Python 2.7 installed with Conda.jl, and El Capitan. |
Possibly a conflict between the BLAS libraries linked to Julia and those linked to NumPy (which is used by Matplotlib). Are you using the standard Julia binary, built with OpenBLAS, or a Julia binary linked with MKL? |
Will was using the binaries (OpenBLAS). We're currently building Julia from source on his machine to see if we get the same problem. |
I'm having the same issue on OSX Sierra. julia> using PyPlot
julia> plot(rand(10))
Intel MKL FATAL ERROR: Cannot load libmkl_intel_thread.dylib. For what its worth: My julia version is julia> Pkg.build("PyPlot")
INFO: Building Conda
INFO: Building PyCall
INFO: PyCall is using /Users/jon.alm.eriksen/.julia/v0.6/Conda/deps/usr/bin/python (Python 2.7.13) at /Users/jon.alm.eriksen/.julia/v0.6/Conda/deps/usr/bin/python, libpython = /Users/jon.alm.eriksen/.julia/v0.6/Conda/deps/usr/lib/libpython2.7
INFO: /Users/jon.alm.eriksen/.julia/v0.6/PyCall/deps/deps.jl has not changed
INFO: /Users/jon.alm.eriksen/.julia/v0.6/PyCall/deps/PYTHON has not changed |
Is there a |
@stevengj I don't know if this is expected? It looks like there are three of them.
I don't know how this linking work, but is there someway to manually point to the Curiously, this seems to work:
|
Setting This seems like a problem with Anaconda. The library paths are set up correctly if you launch the |
This solution also works for me. Thanks! |
Works for me too. Greatly appreciated suggestion @stevengj Thanks. |
It also works for me. Thank you very much! |
Thank you very much @stevengj Works for me as well. I have struggled for two days! |
@stevengj do you know how to set that forever? Cause every time I run Julia I have to type that command which is troublesome. Thanks a lot! |
@flamesofmoon , you can put it in your Hopefully, we'll soon have better fix. If nothing else, as I mentioned in ContinuumIO/anaconda-issues#6423, I can add manual |
@stevengj Thank you! I still have the following questions: But I don't know what it means by putting it in some designated directory. Also, I don't have the directory |
echo "export LD_LIBRARY_PATH=$HOME/.julia/v0.6/Conda/deps/usr/lib" >> ~/.profile then the next time you re-launch the terminal it will be set. |
@stevengj Thank you for the reply! I don't know why, but this time your command doesn't work on my laptop. With or without resetting the terminal, I get |
A better workaround, which hopefully will get incorporated into Anaconda, is to run: run(`install_name_tool -change @rpath/libiomp5.dylib @loader_path/libiomp5.dylib $(Pkg.dir("Conda", "deps/usr/lib/libmkl_intel_thread.dylib"))`) You only need to do this once (until Conda upgrades MKL). |
…n lib/libmkl_intel_thread.dylib Fixes: ContinuumIO/anaconda-issues#6423 and: JuliaPy/PyPlot.jl#315
@flamesofmoon : do you per chance have a MAC? Since El Capitan LD_LIBRARY_PATH cannot be set. |
@anitescu, conda does not require |
No, Julia does not require In any case, I would recommend using the |
@mingwandroid : thanks; did not mention that I hoped to not need to disable SIP. I am a bit unclear about how it deals with certain packages, such as CPLEX which itself does require it; but do not understand it enough. @stevengj : there was this issue I ended up defining the Libdl PATH and process.env.LD_ for atom by hand for the previous issue. |
@stevengj Well, I still can't work around that. Got the same intel MKL Fatal ERROR. Anyway, your original idea is good enough. At least I can plot now! |
Hi @stevengj Thanks for figuring this out. Running
Do you know what I am doing wrong? Thanks. |
@zashwood, |
Should be fixed with the latest Anaconda release. |
I don't seem to have installed anaconda on my computer. The workaround works in the REPL but does not work in jupyter notebook for me. |
Hi, I am seeing the same problem on osx. Is it fixed? |
The original problem was fixed more than a year ago. I just tried updating to the latest Conda on my Mac laptop and it continues to work fine. So maybe you are using an ancient Anaconda installation, @rveltz, and need to update. |
OK, I am seeing another error. I'll open an issue. Thank you. |
This issue came up today despite a fresh Julia and following the julia> ENV["PYTHON"] = ""
julia> Pkg.build("PyCall") guidline. However, adding this
to |
I still have the same problem with:
what I get is:
|
To be precise, I added export LD_LIBRARY_PATH=/Users/milan/.julia/conda/3/lib:$LD_LIBRARY_PATH to my .zshrc. Then in Atom you can change in settings the julia-client "Julia Options" from "Basic" to "External Terminal" for example. |
I am having this same issue but with just about any Python package. Following the works in the terminal directly but not in the IDEs Atom nor VSCode. |
I stumbled upon this issue today on OSX with Julia 1.7, the LD_LIBRARY_PATH trick didn't work but the following did:
I'm not sure whether both are needed but it fixed the issue for me. |
I’m still facing this issue. Julia 1.6.0 The LD_LIBRARY_PATH trick works for me. But I’m curious to understand why this happens in the first place. Am I using Julia incorrectly? |
On Julia 1.6.1, macOS 10.15.7 Solution offered by tlienart worked. Thanks! |
Solution provided by @tlienart also worked for me with |
How peculiar. I can also confirm that @tlienart's solution worked on Julia 1.6 with my mac OSX Catalina 10.15.7. Not sure why. |
Thanks very much to @tlienart, his solution helps me a lot for my Julia 1.6.1. Still, it confuses me why it happens. |
@tlienart is going to become famous for this one, thanks for the help! This fixed my issue on my M1 MacBook Pro with Julia 1.6 |
For custom conda env settings ENV["CONDA_JL_HOME"] = "/Users/jc/opt/miniconda3/envs/conda_jl"
ENV["PYTHON"] = "" Appending |
For anyone else stuck with this error, I ended up having to manually copy the file In my case, this issue started happening after I started using a custom Python installation (the default one I usually use on my machine, not the hidden one inside ~/.julia/). MacOS Monterey 12.3.1, Julia 1.7.2 |
Hi, I'm new to Julia and I am still learning. I am on MacOS 10.13 (High Sierra) and using Julia 0.6, and installed anaconda3 with python 3.6.2. Every time I run PyPlot like this:
using PyPlot
plot(rand(10))
I got the following error:
Intel MKL FATAL ERROR: Cannot load libmkl_intel_thread.dylib
Julia has stopped: 2
I have tried everything. I uninstalled Julia and Python, I switched back and forth between the private Conda version from PyCall and Python 3.6. Moreover, I plot directly from Python using matlibplot it works fine. The problem seems to be Julia. I ran out of ideas.
Any help is appreciated.
Carlos
The text was updated successfully, but these errors were encountered: