-
Notifications
You must be signed in to change notification settings - Fork 21
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
TypeError: Retry.__init__() got an unexpected keyword argument 'allowed_methods' #80
Comments
You need to update your requests library. The version in dev-requirements.txt should work, although I suppose I should add a requirements.txt that includes the correct requests version. |
Actually i have updated the requests library to the latest version and still getting this error |
Technically it's the urllib3 version that requests depends on. The If you install the "latest" requests version it will install a version of urllib3 that uses |
Its working, thanks. |
Describe the bug
Pydactyl / Requests don't work on ubuntu 22.04 using python 3.11
To Reproduce
Code: client = PterodactylClient(API_Link, API_Code)
Error:
Traceback (most recent call last):
File "/var/www/discordbot/app.py", line 37, in
client = PterodactylClient(API_Link, API_Code)
File "/usr/local/lib/python3.11/dist-packages/pydactyl/api_client.py", line 69, in init
adapter = http_adapter(backoff_factor=backoff_factor,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/pydactyl/api_client.py", line 16, in http_adapter
retries = requests.adapters.Retry(
^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: Retry.init() got an unexpected keyword argument 'allowed_methods'
Expected behavior
When i tried to run the code on my linux vps i expected to work perfectly because it worked on my windows pc normally.
Environment
The text was updated successfully, but these errors were encountered: