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

FastDeploy initalized failed! Error: libiomp5.so: cannot open shared object file: No such file or directory #2256

Open
xiaomujiang opened this issue Oct 20, 2023 · 2 comments

Comments

@xiaomujiang
Copy link

环境

Download the latest source code

git clone https://github.com/PaddlePaddle/FastDeploy.git
cd FastDeploy/python
export WITH_ASCEND=ON
export ENABLE_VISION=ON

python setup.py build
python setup.py bdist_wheel

问题日志及出现问题的操作流程, fastdeploy导入失败

root@192:/Work/FastDeploy/python/dist# python -c "import fastdeploy"
Traceback (most recent call last):
File "/usr/local/python3.7.5/lib/python3.7/site-packages/fastdeploy_python-0.0.0-py3.7-linux-x86_64.egg/fastdeploy/c_lib_wrap.py", line 164, in
from .libs.fastdeploy_main import *
ImportError: libiomp5.so: cannot open shared object file: No such file or directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "", line 1, in
File "/usr/local/python3.7.5/lib/python3.7/site-packages/fastdeploy_python-0.0.0-py3.7-linux-x86_64.egg/fastdeploy/init.py", line 122, in
from .c_lib_wrap import (
File "/usr/local/python3.7.5/lib/python3.7/site-packages/fastdeploy_python-0.0.0-py3.7-linux-x86_64.egg/fastdeploy/c_lib_wrap.py", line 166, in
raise RuntimeError(f"FastDeploy initalized failed! Error: {e}")
RuntimeError: FastDeploy initalized failed! Error: libiomp5.so: cannot open shared object file: No such file or directory

搜索libiomp5.so
/usr/local/python3.7.5/lib/python3.7/site-packages/fastdeploy_python-0.0.0-py3.7-linux-x86_64.egg/fastdeploy/libs/third_libs/paddlelite/lib/lib/libiomp5.so
/Work/python/fastdeploy/libs/third_libs/paddlelite/lib/libbak/libiomp5.so
/Work/python/fastdeploy/libs/third_libs/paddlelite/lib/lib/libiomp5.so
/Work/python/.setuptools-cmake-build/third_libs/install/paddlelite/lib/lib/libiomp5.so
/Work/FastDeploy/python/fastdeploy/libs/third_libs/paddlelite/lib/lib/libiomp5.so
/Work/FastDeploy/python/build/lib.linux-x86_64-cpython-37/fastdeploy/libs/third_libs/paddlelite/lib/lib/libiomp5.so
/Work/FastDeploy/python/build/lib.linux-x86_64-3.7/fastdeploy/libs/third_libs/paddlelite/lib/lib/libiomp5.so
/Work/FastDeploy/python/.setuptools-cmake-build/third_libs/install/paddlelite/lib/lib/libiomp5.so

@jiangjiajun
Copy link
Collaborator

export LD_LIBRARY_PATH试下解决

@Hakstar
Copy link

Hakstar commented Oct 24, 2024

请问这个问题解决了吗?我也同样是310p的设备,无法import fastdeploy

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

3 participants