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

ModuleNotFoundError: No module named 'tenacity.asyncio' #1688

Closed
machinelearning2014 opened this issue Jun 17, 2024 · 5 comments
Closed

ModuleNotFoundError: No module named 'tenacity.asyncio' #1688

machinelearning2014 opened this issue Jun 17, 2024 · 5 comments

Comments

@machinelearning2014
Copy link

I followed all of the installation and running below

HF_DATASETS_OFFLINE=1 TRANSFORMERS_OFFLINE=1 python generate.py --base_model=mistral-7b-instruct-v0.2.Q2_K.gguf --prompt_type=mistral --max_seq_len=512 --cli=True

get an error:

File "/home/letro/.conda/envs/h2ogpt_env/lib/python3.10/site-packages/tenacity/init.py", line 653, in
from tenacity.asyncio import AsyncRetrying # noqa:E402,I100
ModuleNotFoundError: No module named 'tenacity.asyncio'

@pseudotensor
Copy link
Collaborator

pseudotensor commented Jun 17, 2024

What does:

(h2ogpt) jon@pseudotensor:~/h2ogpt$ pip freeze | grep tenacity
tenacity==8.3.0

show for you?

Also what is the more complete traceback?

I presume you have an incomplete installation.

@pseudotensor
Copy link
Collaborator

Seeing same thing in docker image:

h2ogpt-1  | ModuleNotFoundError: No module named 'tenacity.asyncio'

@pseudotensor
Copy link
Collaborator

@pseudotensor
Copy link
Collaborator

pip install tenacity==8.3.0 --upgrade

@machinelearning2014
Copy link
Author

Thanks for looking into, seems the workaround is to install tenacity==8.3.0 , the bug is in tenacity>=8.4.0
langchain-ai/langchain#22972 (comment)

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

2 participants