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

Could not load library libcudnn_ops_infer.so.8. Error: libcudnn_ops_infer.so.8: cannot open shared object file: No such file or directory #114

Closed
xxetest opened this issue Mar 17, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@xxetest
Copy link

xxetest commented Mar 17, 2024

Which OS are you using?

  • OS: Kali Linux
  • NVIDIA P40 GPU with drivers installed

图片

Could not load library libcudnn_ops_infer.so.8. Error: libcudnn_ops_infer.so.8: cannot open shared object file: No such file or directory. But it is at home/a/Downloads/Whisper-WebUI/venv/lib/python3.11/site-packages/torch/lib/libcudnn_ops_infer.so.8
The model is loaded, but then the error occurs and the model unloads:
图片

I've tried export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/a/Downloads/Whisper-WebUI/venv/lib/python3.11/site-packages/torch/lib with no luck.

@xxetest
Copy link
Author

xxetest commented Mar 17, 2024

First get into venv then add the .so to path worked.
图片

@xxetest xxetest closed this as completed Mar 17, 2024
@jhj0517 jhj0517 added the bug Something isn't working label Mar 17, 2024
@fernvenue
Copy link

Hi, as export is not permanent, so I wanna share my setup. First, find libcudnn_ops_infer.so.8:

find / -name libcudnn_ops_infer.so.8

For example, my libcudnn_ops_infer.so.8 is in /etc/whisper/venv/lib/python3.11/site-packages/nvidia/cudnn/lib, so I added this environment value to the systemd service file:

[Unit]
Description=Whisper
Documentation=https://github.com/jhj0517/Whisper-WebUI
After=network.target

[Service]
Type=simple
ExecStart=/etc/whisper/venv/bin/python3 /etc/whisper/app.py --server_name 0.0.0.0
Environment="LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/etc/whisper/venv/lib/python3.11/site-packages/nvidia/cudnn/lib"
WorkingDirectory=/etc/whisper
Restart=on-failure

[Install]
WantedBy=multi-user.target

Now it works perfectly fine :)

@jhj0517
Copy link
Owner

jhj0517 commented Sep 28, 2024

duplicate with #271, if anyone faced the same error refer to #271 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants