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' #867

Closed
rob-safi opened this issue Jun 17, 2024 · 3 comments
Closed

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

rob-safi opened this issue Jun 17, 2024 · 3 comments

Comments

@rob-safi
Copy link

After updating to darwin-py==0.8.62 I get the following error:

  File "/home/robin/safi/remote-inspection/.venv/lib/python3.10/site-packages/darwin/__init__.py", line 4, in <module>
    from .client import Client  # noqa
  File "/home/robin/safi/remote-inspection/.venv/lib/python3.10/site-packages/darwin/client.py", line 14, in <module>
    from darwin.backend_v2 import BackendV2
  File "/home/robin/safi/remote-inspection/.venv/lib/python3.10/site-packages/darwin/backend_v2.py", line 6, in <module>
    from tenacity import RetryCallState, retry, stop_after_attempt, wait_exponential_jitter
  File "/home/robin/safi/remote-inspection/.venv/lib/python3.10/site-packages/tenacity/__init__.py", line 653, in <module>
    from tenacity.asyncio import AsyncRetrying  # noqa:E402,I100
ModuleNotFoundError: No module named 'tenacity.asyncio'

with tenacity==8.4.0

Copy link

linear bot commented Jun 17, 2024

@rob-safi
Copy link
Author

Usinge tenacity==8.3.0 works

@JBWilkie
Copy link
Collaborator

Hi @rob-safi! Thanks for raising this. This was due to an issue with the latest version of the tenacity library (8.4.0) which was released this morning and added as a dependency to darwin-py in 0.8.62: jd/tenacity#471

The issue has since been patched in 8.4.1, which if you attempt to re-install darwin-py==0.8.62, will now be installed, avoiding the issue

To prevent this from happening again, in the DAR-2640 branch we've locked tenacity to 8.3.0. This will be included in the next release of darwin-py

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