Intel® Distribution for Python*
Engage in discussions with community peers related to Python* applications and core computational packages.
447 토론

Intel MKL FATAL ERROR: Cannot load <mkl-loader>.

mwlai
초급자
4,678 조회수

Hello

I upgraded Numpy (1.16.6) and Pandas(1.1.5).

When I run python with django + apache + mod_wsgi , it fails with error: Intel MKL FATAL ERROR: Cannot load <mkl-loader>.

I've installed MKL( l_onemkl_p_2021.1.1.52_offline.sh ).

OS: 

Red Hat Enterprise Linux Server release 7.4 (Maipo)

CPU:

Intel(R) Xeon(R) CPU E5-2660 v3 @ 2.60GHz

 

I did not find actual source line containing <mkl-loader>, and my python project log is empty.

It seems that python is loading some lib, but the error does not show which lib loaded fail, maybe it is numpy.

I rebuild numpy and scipy by intel document, as follow, but it not fix error.

https://software.intel.com/content/www/us/en/develop/articles/numpyscipy-with-intel-mkl.html

 

This is apache error log. 

mwlai_1-1610690553524.png

 

How can I fix this error? Thanks.

0 포인트
10 응답
mwlai
초급자
4,674 조회수

This is what .bashrc set.

image.png

0 포인트
AthiraM_Intel
중재자
4,618 조회수

Hi,

 

Thanks for reaching out to us.

 

Could you please install Intel Distribution for Python and use the MKL along with the python distribution for running the program.

You can follow the below link to install Intel Distribution for Python:

 

https://software.intel.com/content/www/us/en/develop/articles/using-intel-distribution-for-python-with-anaconda.html?language=fr

 

Please uninstall the MKL you used, before installing the Intel Distribution for Python.

 

If the issue still persists please let us know.

 

Thanks.

 

0 포인트
mwlai
초급자
4,596 조회수

Hi,

I have taken your advice, but it did not fix the error.

After I fixed another error, as follows,  the error "Cannot load <mkl-loader>"  occurred again.

Is that apache or mod_wsgi not supported mkl?

Or where should I post this question?

image.png

0 포인트
AthiraM_Intel
중재자
4,554 조회수

Hi,


Could you please confirm whether you used a fresh conda environment?

Please verify that the python path used is correct using the below commands:


import sys 

sys.executable


Make sure that all the installation steps are successfully completed.

Also please share the conda and pip list.


We will check with the Subject Matter Experts about your issue and will post the updates.


Thanks.


0 포인트
mwlai
초급자
4,529 조회수

Hi

I use Anaconda3 (Anaconda3-5.2.0-Linux-x86_64.sh ).

conda version is 4.5.4

mwlai_0-1611201072350.png

python 3.6.5 

And I create a virtul env by command : python -m venv xxx.

This is python path information :

image.png

The pip list in virtual env is as follows:

 
0 포인트
mwlai
초급자
4,523 조회수

The pip list in virtual env is as follows:image.png

0 포인트
mwlai
초급자
4,521 조회수
0 포인트
AthiraM_Intel
중재자
4,502 조회수

Hi,


From the screenshots we could see that you have mixed environment , multiple mkls in the python (3.6.5).

Also we can see that you are not using Intel Distribution for Python.


Could you please change your environment to intel python (3.7), then check if the issue is reproduced.


If the issue still persists, please share the reproducer instructions.



Thanks.


0 포인트
AthiraM_Intel
중재자
4,475 조회수

Hi,


Could you please give us an update?


Thanks


0 포인트
AthiraM_Intel
중재자
4,456 조회수

Hi,


We have not heard back from you, we would discontinue monitoring this thread. If you need further assistance, please post a new thread.


Thanks.


0 포인트
응답