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. #140

Closed
AitNev opened this issue Apr 27, 2024 · 3 comments
Closed

Could not load library libcudnn_ops_infer.so.8. #140

AitNev opened this issue Apr 27, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@AitNev
Copy link

AitNev commented Apr 27, 2024

Which OS are you using?

  • OS: Linux

With the default installation bash Install.sh and Only when using the Faster Whisper implementation i get this error message when trying to transcribe with whisper:

venv ./venv/bin/python

Use Faster Whisper implementation
Device "cuda" is detected
Running on local URL:  http://0.0.0.0:8860

To create a public link, set `share=True` in `launch()`.
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
start-webui.sh: line 7: 141135 Aborted                 $PYTHON ./app.py --server_name 0.0.0.0 --server_port 8860
launching the app
DeprecationWarning: 'source deactivate' is deprecated. Use 'conda deactivate'.
  • One way to avoid this issue was adding in start-webui.sh the flag --disable_faster_whisper runs slower but it doesn't throw an error

The way it was fixed from this comment where by only doing the second step, adding to requirements.txt

nvidia-cublas-cu11
nvidia-cudnn-cu11

And then exporting their path by adding this line inside start-webui.sh before executing app.py

export LD_LIBRARY_PATH=`$PYTHON -c 'import os; import nvidia.cublas.lib; import nvidia.cudnn.lib; print(os.path.dirname(nvidia.cublas.lib.__file__) + ":" + os.path.dirname(nvidia.cudnn.lib.__file__))'`

With that I was able to get faster-whisper working but just the nvidia libraries weight 1GB, I'm not sure if someone is able to get it running without those libraries.
At least this might help someone who stumbles on this issue.

@AitNev AitNev added the bug Something isn't working label Apr 27, 2024
@AitNev
Copy link
Author

AitNev commented Apr 27, 2024

Already was this issue 114

@AitNev AitNev closed this as completed Apr 27, 2024
@AitNev AitNev closed this as not planned Won't fix, can't repro, duplicate, stale Apr 27, 2024
@jhj0517
Copy link
Owner

jhj0517 commented Apr 28, 2024

Hi, Thanks for reporting. It seems this happens on Linux & ubuntu.
Just noting some related issues here:

@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

2 participants