Skip to content
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

undefined symbol: mkl_serv_getenv in numexpr #2031

Closed
joshowen opened this issue Feb 5, 2016 · 7 comments
Closed

undefined symbol: mkl_serv_getenv in numexpr #2031

joshowen opened this issue Feb 5, 2016 · 7 comments
Labels
locked [bot] locked due to inactivity

Comments

@joshowen
Copy link

joshowen commented Feb 5, 2016

We are not using any MKL optimized libraries, but are getting this, where we didn't previously

python: symbol lookup error: /app/.heroku/miniconda/envs/heroku-env/lib/python2.7/site-packages/numexpr/../../../libmkl_vml_avx.so: undefined symbol: mkl_serv_getenv 
@ilanschnell
Copy link
Contributor

This blog post: https://www.continuum.io/blog/developer-blog/anaconda-25-release-now-mkl-optimizations
Describes how to not use MKL linked versions of packages (on Unix). Nevertheless, the symbol error indicates that a MKL library is missing in the linkage. We have to look into that.

@ozancaglayan
Copy link

So somehow this morning conda brought to me the mkl package and I've hit the same problem. Now I did an update --all and it downgrades some numexpr, numpy, scipy and scikit-learn and installs mkl-rt package. And it's working correctly now.

@kmdouglass
Copy link

I have also received this error. One of my environments needed PyTables so I performed a conda install pytables, which also upgraded a package related to MKL (I can't remember what package specifically; if you could point me towards a relevant log file I can find it.)

After this, I would receive the following error message from a Jupyter Notebook session when performing matrix-heavy operations:

/home/douglass/anaconda3/envs/homogenizer/bin/python: symbol lookup error: /home/douglass/anaconda3/envs/homogenizer/lib/python3.5/site-packages/numexpr/../../../libmkl_vml_mc3.so: undefined symbol: mkl_serv_getenv

A conda update -all in both my root conda environment and my homogenizer environment fixed the problem like @ozancaglayan suggested above.

@endrebak
Copy link

The previous solution did not work for me. I had to

conda install mkl-rt

to avoid those errors.

@kapilsh
Copy link

kapilsh commented May 17, 2016

Same as @endrebak for me. I had to reinstall mkl-rt.

@endrebak
Copy link

I got an Intel MKL FATAL ERROR: Cannot load libmkl_avx.so or libmkl_def.so sometimes after this fix, but using

conda install --yes mkl mkl-service

got rid of those too. See ContinuumIO/anaconda-issues#698

oleksandr-pavlyk added a commit to oleksandr-pavlyk/anaconda-recipes that referenced this issue Oct 10, 2016
This fixes issues like

conda/conda#2031

Additionally, on Windows, library_dirs should be @Prefix@\Library\bin, rather than @Prefix@\Library\lib, since the MKL is being installed in the former.
@github-actions
Copy link

github-actions bot commented Nov 2, 2021

Hi there, thank you for your contribution to Conda!

This issue has been automatically locked since it has not had recent activity after it was closed.

Please open a new issue if needed.

@github-actions github-actions bot added the locked [bot] locked due to inactivity label Nov 2, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
locked [bot] locked due to inactivity
Projects
None yet
Development

No branches or pull requests

7 participants