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

Python 3.11+ Version #110

Open
nemesis668 opened this issue Jun 28, 2024 · 4 comments
Open

Python 3.11+ Version #110

nemesis668 opened this issue Jun 28, 2024 · 4 comments

Comments

@nemesis668
Copy link

Is there a working version for Python 3.11 and above yet?

TIA

@nnilayy
Copy link

nnilayy commented Jun 29, 2024

@nemesis668, I dont think so, I was trying to run the code with Python 3.11.4 but encountered the following coroutine error:

AttributeError: module 'asyncio' has no attribute 'coroutine'. Did you mean: 'coroutines'?

But after switching to Python 3.10 version (mine was Python 3.10.11), the issue was resolved and the code was running just fine.

@dshaw0004
Copy link

This package is not working for python3.11+ because of one of the required package TENACITY.
If you properly read the error for the source of it, you will find that the error is occuring at the line number 42 of _asyncio.py file in the Tenacity package.

Explanation of the error

As much I know Python3.11 have remove the decorator @asyncio.coroutine and the package tenacity is using this decorator. But tenacity is not the real problem maker. The real problem is this package's requirements.txt. This package require tenacity version 5.1.5 which is compatible with Python 3.10 but will not work with higher versions. requirements.txt have not been updated in past 4 years.

Solution

As I am writing the current version of tenacity is 9.0.0. I have manually reinstalled the latest version of tenacity and this package is working. And for your knowledge I am using Python 3.12.3.

To fix this issue manually update tenacity package

Finally, if you are using python3.11 and get any other kind of error while using tenacity==9.0.0, try previous version of it. And let me know what happens.

@dshaw0004
Copy link

dshaw0004 commented Sep 9, 2024 via email

@dshaw0004
Copy link

dshaw0004 commented Sep 9, 2024 via email

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