huggingface / transfer-learning-conv-ai

🦄 State-of-the-Art Conversational AI with Transfer Learning
MIT License
1.74k stars 430 forks source link

cannot import name 'cached_path' from 'transformers' #132

Open ncorbuk opened 1 year ago

ncorbuk commented 1 year ago

from transformers import cached_path ImportError: cannot import name 'cached_path' from 'transformers' (/root/anaconda3/envs/transformers/lib/python3.10/site-packages/transformers/init.py)

ncorbuk commented 1 year ago

how to fix this???? i try many things for hours and nothing :/

cgusti commented 1 year ago

I had to upgrade transformers version to 4.12.5. But be careful with the interact.py https://github.com/huggingface/transfer-learning-conv-ai/issues/98

Hope this helps thanks!

seyed-mohammadreza-mousavi commented 11 months ago

Hello. I have the same problem. when I want to install transformers==2.5.1 this error happens: Building wheels for collected packages: tokenizers error: subprocess-exited-with-error

× Building wheel for tokenizers (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip. Building wheel for tokenizers (pyproject.toml) ... error ERROR: Failed building wheel for tokenizers Failed to build tokenizers ERROR: Could not build wheels for tokenizers, which is required to install pyproject.toml-based projects