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

Centos: ImportError: libmkl_intel_ilp64.so.2: cannot open shared object file: No such file or directory #46

Closed
OswaldoBornemann opened this issue Aug 1, 2022 · 16 comments

Comments

@OswaldoBornemann
Copy link

I installed kaldifeat by using python setup.py install. But it came out the follow errors:

ImportError: libmkl_intel_ilp64.so.2: cannot open shared object file: No such file or directory

But i do found libmkl_intel_ilp64.so in the environment lib directory.

@csukuangfj
Copy link
Owner

But i do found libmkl_intel_ilp64.so in the environment lib directory.

Could you use

export LD_LIBRARY_PATH=/path/to/the/dir/that/contains/libmkl_intel_ilp64.so:$LD_LIBRARY_PATH

and then run again python3 -c "import kaldifeat"

@OswaldoBornemann
Copy link
Author

export LD_LIBRARY_PATH=/home/Dell/anaconda3/envs/streaming_asr/lib/libmkl_intel_ilp64.so:$LD_LIBRARY_PATH

Then i run python -c "import kaldifeat", still get the error.

python3 -c "import kaldifeat"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/Dell/anaconda3/envs/streaming_asr/lib/python3.8/site-packages/kaldifeat-1.17-py3.8-linux-x86_64.egg/kaldifeat/__init__.py", line 11, in <module>
    from _kaldifeat import (
ImportError: libmkl_intel_ilp64.so.2: cannot open shared object file: No such file or directory

@csukuangfj
Copy link
Owner

export LD_LIBRARY_PATH=/home/Dell/anaconda3/envs/streaming_asr/lib/libmkl_intel_ilp64.so:$LD_LIBRARY_PATH

Please use

export LD_LIBRARY_PATH=/home/Dell/anaconda3/envs/streaming_asr/lib:$LD_LIBRARY_PATH

@OswaldoBornemann
Copy link
Author

export LD_LIBRARY_PATH=/home/Dell/anaconda3/envs/streaming_asr/lib/libmkl_intel_ilp64.so:$LD_LIBRARY_PATH

Please use

export LD_LIBRARY_PATH=/home/Dell/anaconda3/envs/streaming_asr/lib:$LD_LIBRARY_PATH

Still get the error. Should i reinstall kaldifeat ?

@csukuangfj
Copy link
Owner

Could you find the file libmkl_intel_ilp64.so.2?

How did you install kaldifeat? Did you install it with conda install?

If yes, I suggest you installing kaldifeat from source, i.e., use

conda remove kaldifeat
pip install kaldifeat

@csukuangfj
Copy link
Owner

@PPGGG

please have a look at #10 (comment)
and check that you have set LD_LIBRARY_PATH correctly.

@OswaldoBornemann
Copy link
Author

OswaldoBornemann commented Aug 1, 2022

conda remove kaldifeat

I tried to install kaldifeat from pip, but it came out the following errors:

ImportError: kaldifeat was built using PyTorch 1.11.0
But you are using PyTorch 1.10.1 to run it

Then i install kaldifeat from source python setup.py install, then it came out the following errors:

ImportError: libmkl_intel_ilp64.so.2: cannot open shared object file: No such file or directory

@OswaldoBornemann
Copy link
Author

libmkl_intel_ilp64.so.2

I could not find this file.

@csukuangfj
Copy link
Owner

I could not find this file.

What is the command you are using to find that file?

@OswaldoBornemann
Copy link
Author

I just enter /home/Dell/anaconda3/envs/streaming_asr/lib and lookup for it.

@csukuangfj
Copy link
Owner

I tried to install kaldifeat from pip, but it came out the following errors:

ImportError: kaldifeat was built using PyTorch 1.11.0
But you are using PyTorch 1.10.1 to run it

That should not happen if you don't change the version of PyTorch after installing kaldifeat.


Could you use

find /home/Dell/anaconda3/envs -name "libmkl_intel*"

@OswaldoBornemann
Copy link
Author

I tried to install kaldifeat from pip, but it came out the following errors:
ImportError: kaldifeat was built using PyTorch 1.11.0
But you are using PyTorch 1.10.1 to run it

That should not happen if you don't change the version of PyTorch after installing kaldifeat.

Could you use

find /home/Dell/anaconda3/envs -name "libmkl_intel*"
/home/Dell/anaconda3/envs/streaming_asr/lib/libmkl_intel_ilp64.so
/home/Dell/anaconda3/envs/streaming_asr/lib/libmkl_intel_ilp64.so.1
/home/Dell/anaconda3/envs/streaming_asr/lib/libmkl_intel_lp64.so
/home/Dell/anaconda3/envs/streaming_asr/lib/libmkl_intel_lp64.so.1
/home/Dell/anaconda3/envs/streaming_asr/lib/libmkl_intel_thread.so
/home/Dell/anaconda3/envs/streaming_asr/lib/libmkl_intel_thread.so.1

@csukuangfj
Copy link
Owner

I think the dependency is from PyTorch.

You said that you first tried to install kaldifeat with pip install and then you try to install it with python3 setup.py install.

Have you uninstalled kaldifeat before you try to use python3 setup.py install?

What is the output of

ls -lh /home/Dell/anaconda3/envs/streaming_asr/lib/python3.8/site-packages/*kaldifeat*

ls -lh /home/Dell/anaconda3/envs/streaming_asr/lib/python3.8/site-packages/*kaldifeat*/*

@OswaldoBornemann
Copy link
Author

I think the dependency is from PyTorch.

You said that you first tried to install kaldifeat with pip install and then you try to install it with python3 setup.py install.

Have you uninstalled kaldifeat before you try to use python3 setup.py install?

What is the output of

ls -lh /home/Dell/anaconda3/envs/streaming_asr/lib/python3.8/site-packages/*kaldifeat*

ls -lh /home/Dell/anaconda3/envs/streaming_asr/lib/python3.8/site-packages/*kaldifeat*/*

Yes, i uninstalled kaldifeat before i try to use python3 setup.py install

ls -lh /home/Dell/anaconda3/envs/streaming_asr/lib/python3.8/site-packages/*kaldifeat*
-rwxrwxrwx 1 Dell Dell 327K Aug  1 14:16 /home/Dell/anaconda3/envs/streaming_asr/lib/python3.8/site-packages/_kaldifeat.cpython-38-x86_64-linux-gnu.so
-rwxrwxrwx 1 Dell Dell 233K Aug  1 14:16 /home/Dell/anaconda3/envs/streaming_asr/lib/python3.8/site-packages/libkaldifeat_core.so

/home/Dell/anaconda3/envs/streaming_asr/lib/python3.8/site-packages/kaldifeat-1.17-py3.8-linux-x86_64.egg:
total 588K
drwxrwxr-x 2 Dell Dell  161 Aug  1 14:32 EGG-INFO
drwxrwxr-x 2 Dell Dell   47 Aug  1 14:32 __pycache__
-rwxr-xr-x 1 Dell Dell 357K Aug  1 14:32 _kaldifeat.cpython-38-x86_64-linux-gnu.so
-rw-rw-r-- 1 Dell Dell  435 Aug  1 14:32 _kaldifeat.py
drwxrwxr-x 3 Dell Dell  226 Aug  1 14:32 kaldifeat
-rwxr-xr-x 1 Dell Dell 223K Aug  1 14:32 libkaldifeat_core.so
ls -lh /home/Dell/anaconda3/envs/streaming_asr/lib/python3.8/site-packages/kaldifeat/*
-rwxr-xr-x 1 Dell Dell 357K Aug  1 14:32 /home/Dell/anaconda3/envs/streaming_asr/lib/python3.8/site-packages/kaldifeat-1.17-py3.8-linux-x86_64.egg/kaldifeat.cpython-38-x86_64-linux-gnu.so
-rw-rw-r-- 1 Dell Dell  435 Aug  1 14:32 /home/Dell/anaconda3/envs/streaming_asr/lib/python3.8/site-packages/kaldifeat-1.17-py3.8-linux-x86_64.egg/kaldifeat.py
-rwxr-xr-x 1 Dell Dell 223K Aug  1 14:32 /home/Dell/anaconda3/envs/streaming_asr/lib/python3.8/site-packages/kaldifeat-1.17-py3.8-linux-x86_64.egg/libkaldifeat_core.so

/home/Dell/anaconda3/envs/streaming_asr/lib/python3.8/site-packages/kaldifeat-1.17-py3.8-linux-x86_64.egg/EGG-INFO:
total 32K
-rw-rw-r-- 1 Dell Dell 8.7K Aug  1 14:32 PKG-INFO
-rw-rw-r-- 1 Dell Dell 3.9K Aug  1 14:32 SOURCES.txt
-rw-rw-r-- 1 Dell Dell    1 Aug  1 14:32 dependency_links.txt
-rw-rw-r-- 1 Dell Dell   63 Aug  1 14:32 native_libs.txt
-rw-rw-r-- 1 Dell Dell    1 Aug  1 14:32 not-zip-safe
-rw-rw-r-- 1 Dell Dell   21 Aug  1 14:32 top_level.txt

/home/Dell/anaconda3/envs/streaming_asr/lib/python3.8/site-packages/kaldifeat-1.17-py3.8-linux-x86_64.egg/pycache:
total 4.0K
-rw-rw-r-- 1 Dell Dell 658 Aug  1 14:32 _kaldifeat.cpython-38.pyc

/home/Dell/anaconda3/envs/streaming_asr/lib/python3.8/site-packages/kaldifeat-1.17-py3.8-linux-x86_64.egg/kaldifeat:
total 36K
-rw-rw-r-- 1 Dell Dell  714 Aug  1 14:32 init.py
drwxrwxr-x 2 Dell Dell  299 Aug  1 14:32 pycache
-rw-rw-r-- 1 Dell Dell  668 Aug  1 14:32 fbank.py
-rw-rw-r-- 1 Dell Dell  660 Aug  1 14:32 mfcc.py
-rw-rw-r-- 1 Dell Dell 5.7K Aug  1 14:32 offline_feature.py
-rw-rw-r-- 1 Dell Dell 3.4K Aug  1 14:32 online_feature.py
-rw-rw-r-- 1 Dell Dell  652 Aug  1 14:32 plp.py
-rw-rw-r-- 1 Dell Dell  314 Aug  1 14:32 spectrogram.py
-rw-rw-r-- 1 Dell Dell  342 Aug  1 14:32 torch_version.py

@csukuangfj
Copy link
Owner

Yes, i uninstalled kaldifeat before i try to use python3 setup.py install

You did not uninstall it correctly.

Please remove the following files:

-rwxrwxrwx 1 Dell Dell 327K Aug  1 14:16 /home/Dell/anaconda3/envs/streaming_asr/lib/python3.8/site-packages/_kaldifeat.cpython-38-x86_64-linux-gnu.so
-rwxrwxrwx 1 Dell Dell 233K Aug  1 14:16 /home/Dell/anaconda3/envs/streaming_asr/lib/python3.8/site-packages/libkaldifeat_core.so

When you uninstall kaldifeat next time, please use

pip uninstall kaldifeat # if you installed kaldifeat with `pip install` or `python3 setup.py install`.
# or
conda remove kaldifeat # if you installed kaldifeat with "conda install"

@OswaldoBornemann
Copy link
Author

You are so awesome. It works perfect now. @csukuangfj

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants