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

Bug introduced in tenacity 8.4.0: ModuleNotFoundError: No module named 'tenacity.asyncio' #472

Closed
MalteEbner opened this issue Jun 17, 2024 · 1 comment

Comments

@MalteEbner
Copy link

MalteEbner commented Jun 17, 2024

Description:

Install tenacity 8.4.0 and try to import from it:

(.venv) user@device repo % pip install tenacity==8.4                            
Collecting tenacity==8.4
  Using cached tenacity-8.4.0-py3-none-any.whl.metadata (1.2 kB)
Using cached tenacity-8.4.0-py3-none-any.whl (24 kB)
Installing collected packages: tenacity
  Attempting uninstall: tenacity
    Found existing installation: tenacity 8.3.0
    Uninstalling tenacity-8.3.0:
      Successfully uninstalled tenacity-8.3.0
Successfully installed tenacity-8.4.0
(.venv) user@device repo % python -c "import tenacity; print(tenacity.__file__)"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/Users/malteebnerlightly/Documents/GitHub/lightspeed/.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'

I tried the same on tenacity 8.3.0, it does not have that import error.

Note: This is on python 3.10.8 on macOS Sonoma 14.5 using an M1 Pro. However, it should not matter.

Reason for error.

The line raising the error was changed in the latest release:

from tenacity.asyncio import AsyncRetrying # noqa:E402,I100

@MalteEbner MalteEbner changed the title Tenactiy 8.4.0 is broken: ModuleNotFoundError: No module named 'tenacity.asyncio' Bug introduced in tenacity 8.4.0: ModuleNotFoundError: No module named 'tenacity.asyncio' Jun 17, 2024
@Tenzer
Copy link

Tenzer commented Jun 17, 2024

#471 already covers the same.

@MalteEbner MalteEbner closed this as not planned Won't fix, can't repro, duplicate, stale Jun 17, 2024
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