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-Report: Tenacity 8.4.0 #3292

Closed
AlexanderHeidelbach opened this issue Jun 17, 2024 · 4 comments
Closed

Bug-Report: Tenacity 8.4.0 #3292

AlexanderHeidelbach opened this issue Jun 17, 2024 · 4 comments

Comments

@AlexanderHeidelbach
Copy link

Dear Devs,

The tenacity package just released the version 8.4.0. Unfortunately, this update brakes the luigi import most likely due to an API change of tenacity. More specifically, the error occurs when importing the rpc module. Please find below the traceback. Judging by the description this only happens for python>3.8. python==3.6 still installs tenacity==8.2.2

>>> import luigi
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "<path_python>/lib64/python3.9/site-packages/luigi/__init__.py", line 34, in <module>
    from luigi import rpc
  File "<path_python>/lib64/python3.9/site-packages/luigi/rpc.py", line 33, in <module>
    from tenacity import Retrying, wait_fixed, stop_after_attempt
  File "<path_python>/lib64/python3.9/site-packages/tenacity/__init__.py", line 653, in <module>
    from tenacity.asyncio import AsyncRetrying  # noqa:E402,I100
ModuleNotFoundError: No module named 'tenacity.asyncio'
@JosephP91
Copy link

JosephP91 commented Jun 17, 2024

Same error here. Manually forcing tenacity==8.2.2 (using luigi==3.5.0) in requirements file for my project, temporary solves the issue

@ztime
Copy link

ztime commented Jun 17, 2024

Same error, setting tenacity<8.4.0 was a temporary solve

@AlexanderHeidelbach
Copy link
Author

The issue is also now reported in tenacity itself. jd/tenacity#471

@AlexanderHeidelbach
Copy link
Author

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

3 participants