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

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

Open
Smoodie7 opened this issue Oct 15, 2023 · 3 comments

Comments

@Smoodie7
Copy link

Python 3.11
Issue:
`Traceback (most recent call last):
File "/Users/Rayane/Documents/Projects/PyCharm/pythonProject/startupExplorer.py", line 5, in
from mega import Mega
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/mega/init.py", line 1, in
from .mega import Mega # noqa
^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/mega/mega.py", line 18, in
from tenacity import retry, wait_exponential, retry_if_exception_type
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/tenacity/init.py", line 451, in
from tenacity._asyncio import AsyncRetrying
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/tenacity/_asyncio.py", line 33, in
class AsyncRetrying(BaseRetrying):
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/tenacity/_asyncio.py", line 41, in AsyncRetrying
@asyncio.coroutine
^^^^^^^^^^^^^^^^^
AttributeError: module 'asyncio' has no attribute 'coroutine'. Did you mean: 'coroutines'?

Process finished with exit code 1`

I think mega.py may need an general support update

@Lednik7
Copy link

Lednik7 commented Oct 23, 2023

run with python 3.10 for fix

@Beefybananas
Copy link

Beefybananas commented Nov 13, 2023

run with python 3.10 for fix

If the package is not compatible with Python3.11, there should be an entry in the setup.py file setting the python_requires option specifying the supported version(s).

@nemesis668
Copy link

Any fix for this yet? Instead of using older versions of python?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants
@nemesis668 @Lednik7 @Beefybananas @Smoodie7 and others