Closed falconair closed 1 year ago
This is not a library used by Transformers per se but Python. There is something wrong with your Python install via Conda, Python installed like this does not find the libssl.so.10 library.
I meet the exact same issue here while pip
install cannot solve the problem.
tl;dr; conda update tokenizers
solved the problem for me.
I think I had the same problem and this is how I solved it.
I noticed that the error was related to the Tokenizers
package:
from .tokenizers import (
ImportError: /lib/x86_64-linux-gnu/libssl.so.10: version `libssl.so.10' not found (required by /home/silas/miniconda3/envs/llama/lib/python3.8/site-packages/tokenizers/tokenizers.cpython-38-x86_64-linux-gnu.so)
So I decided to check who was providing this library and if I was using the latest version. PyPi shows that the latest version is 0.13.02 and the library is by Hugging Face (so we are in the right place LOL).
After running conda list
, I saw that I was using version 0.13.0.dev0. So I checked Conda-Forge and found that they had the new version. Then I ran conda update tokenizers
and that solved the problem for me.
I hope that solves the problem for you. =)
I have the exact same issues after I used conda to install transformers. Pip is working fine, however.
My tokenizer version is 0.13.0.dev0, but conda update tokenizers doesn't work for me. I also tried conda install -c conda-forge tokenizers on Conda-Forge, it doesn't work either. How can I update the tokenizers version?
@lilyq I had the same issue. I uninstalled transformers/tokenizers first and then pip reinstalled from source using pip install git+https://github.com/huggingface/transformers
(all within my conda env). This installed the right version of tokenizers as a dependency and now it works.
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.
Please note that issues that do not follow the contributing guidelines are likely to be ignored.
conda update tokenizers worked great for me, thank you
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.
Please note that issues that do not follow the contributing guidelines are likely to be ignored.
System Info
I am setting up a brand new machine with Ubuntu 22.04, pytorch 1.13.1/pytorch-cuda 11.7 and transformers 4.24.0
Who can help?
No response
Information
Tasks
examples
folder (such as GLUE/SQuAD, ...)Reproduction
I installed transformers using the following command, as suggested by huggingface docs:
conda install -c huggingface transformers --y
I'm running the following command:
from transformers import pipeline
I'm getting the following exception:
Expected behavior
Please note that I'm running the official install instructions on a brand new machine!
There are two other tickets with the same issue: https://github.com/huggingface/transformers/issues/18549 https://github.com/huggingface/transformers/issues/19844
Both are closed because the user simply switched to using pip. But the problem remains with conda installs.
This error also resolves for me if I use
pip install transformers --force-reinstall
.