-
Notifications
You must be signed in to change notification settings - Fork 175
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
Comments
@nemesis668, I dont think so, I was trying to run the code with
But after switching to |
This package is not working for python3.11+ because of one of the required package TENACITY. Explanation of the errorAs much I know Python3.11 have remove the decorator SolutionAs I am writing the current version of tenacity is To fix this issue manually update tenacity package
|
I am using tenacity verison 9.0.0 while python version is 3.12.3 and my os
is ubuntu 24.04.
[image: Screenshot from 2024-09-09 20-35-03.png]
In a fresh new virtual environment I have install the package using pip so
I am getting the error about coroutines. And I know code is wrong I did not
notice that i copied the code wrongly from docs.
[image: Screenshot from 2024-09-09 20-35-36.png]
then I update tenacity using `pip3 install tenacity -U`. Ignoring the error
I fixes the code then run it.
[image: Screenshot from 2024-09-09 21-08-20.png]
here is the result.
…On Mon, 9 Sept 2024 at 01:18, Munteanu Gabriel ***@***.***> wrote:
For refferance with tenacity > 6 raises
Traceback (most recent call last): File
"/home/s3ll_svfiles/baks/backup_fs.py", line 200, in <module>
selected_action() File "/home/s3ll_svfiles/baks/backup_fs.py", line 131, in
dump m = init_mega() ^^^^^^^^^^^ File
"/home/s3ll_svfiles/baks/backup_fs.py", line 100, in init_mega m =
mega.login(MEGA_EMAIL, MEGA_PASSWORD) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/mega/mega.py", line 46, in
login self._login_user(email, password) File
"/usr/local/lib/python3.11/site-packages/mega/mega.py", line 73, in
_login_user resp = self._api_request({'a': 'us', 'user': email, 'uh':
user_hash}) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/tenacity/__init__.py", line
339, in wrapped_f return self(f, *args, **kw) ^^^^^^^^^^^^^^^^^^^^ File
"/usr/local/lib/python3.11/site-packages/tenacity/__init__.py", line 430,
in __call__ do = self.iter(retry_state=retry_state)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File
"/usr/local/lib/python3.11/site-packages/tenacity/__init__.py", line 367,
in iter return fut.result() ^^^^^^^^^^^^ File
"/usr/local/lib/python3.11/concurrent/futures/_base.py", line 449, in
result return self.__get_result() ^^^^^^^^^^^^^^^^^^^ File
"/usr/local/lib/python3.11/concurrent/futures/_base.py", line 401, in
__get_result raise self._exception File
"/usr/local/lib/python3.11/site-packages/tenacity/__init__.py", line 433,
in __call__ result = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File
"/usr/local/lib/python3.11/site-packages/mega/mega.py", line 188, in
_api_request raise RequestError(int_resp) mega.errors.RequestError: ENOENT,
Object (typically, node or user) not found
What version exactly works for you?
—
Reply to this email directly, view it on GitHub
<#110 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A3FZJOX54YZMD5FNBRV7BYTZVSSXVAVCNFSM6AAAAABKBOSTGWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMZWHAYDGMBSGA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
While testing I got this error too. After debugging it turns out that my
password was not right. Since I am getting the password from another file,
it contains a newline character ('\n') at the end which was causing the
error.
…On Mon, 9 Sept 2024 at 01:18, Munteanu Gabriel ***@***.***> wrote:
For refferance with tenacity > 6 raises
Traceback (most recent call last): File
"/home/s3ll_svfiles/baks/backup_fs.py", line 200, in <module>
selected_action() File "/home/s3ll_svfiles/baks/backup_fs.py", line 131, in
dump m = init_mega() ^^^^^^^^^^^ File
"/home/s3ll_svfiles/baks/backup_fs.py", line 100, in init_mega m =
mega.login(MEGA_EMAIL, MEGA_PASSWORD) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/mega/mega.py", line 46, in
login self._login_user(email, password) File
"/usr/local/lib/python3.11/site-packages/mega/mega.py", line 73, in
_login_user resp = self._api_request({'a': 'us', 'user': email, 'uh':
user_hash}) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/tenacity/__init__.py", line
339, in wrapped_f return self(f, *args, **kw) ^^^^^^^^^^^^^^^^^^^^ File
"/usr/local/lib/python3.11/site-packages/tenacity/__init__.py", line 430,
in __call__ do = self.iter(retry_state=retry_state)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File
"/usr/local/lib/python3.11/site-packages/tenacity/__init__.py", line 367,
in iter return fut.result() ^^^^^^^^^^^^ File
"/usr/local/lib/python3.11/concurrent/futures/_base.py", line 449, in
result return self.__get_result() ^^^^^^^^^^^^^^^^^^^ File
"/usr/local/lib/python3.11/concurrent/futures/_base.py", line 401, in
__get_result raise self._exception File
"/usr/local/lib/python3.11/site-packages/tenacity/__init__.py", line 433,
in __call__ result = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File
"/usr/local/lib/python3.11/site-packages/mega/mega.py", line 188, in
_api_request raise RequestError(int_resp) mega.errors.RequestError: ENOENT,
Object (typically, node or user) not found
What version exactly works for you?
—
Reply to this email directly, view it on GitHub
<#110 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A3FZJOX54YZMD5FNBRV7BYTZVSSXVAVCNFSM6AAAAABKBOSTGWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMZWHAYDGMBSGA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Is there a working version for Python 3.11 and above yet?
TIA
The text was updated successfully, but these errors were encountered: