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

Exception ignored in: <function Translator.__del__ at 0x7fb336445b80> #73

Open
zoobereq opened this issue May 11, 2023 · 3 comments
Open

Comments

@zoobereq
Copy link

Hello,

The API works great but after the translation is generated, I'm getting the following:

Exception ignored in: <function Translator.del at 0x7fb336445b80>
Traceback (most recent call last):
File "/Users/littlezub/opt/anaconda3/lib/python3.9/site-packages/deepl/translator.py", line 506, in del
File "/Users/littlezub/opt/anaconda3/lib/python3.9/site-packages/deepl/translator.py", line 713, in close
File "/Users/littlezub/opt/anaconda3/lib/python3.9/site-packages/deepl/http_client.py", line 91, in close
File "/Users/littlezub/opt/anaconda3/lib/python3.9/site-packages/requests/sessions.py", line 747, in close
File "/Users/littlezub/opt/anaconda3/lib/python3.9/site-packages/requests/adapters.py", line 325, in close
File "/Users/littlezub/opt/anaconda3/lib/python3.9/site-packages/urllib3/poolmanager.py", line 222, in clear
File "/Users/littlezub/opt/anaconda3/lib/python3.9/site-packages/urllib3/_collections.py", line 95, in clear
TypeError: 'NoneType' object is not callable

Any advice would be appreciated.

@JanEbbing
Copy link
Member

Hi, which version of the DeepL library, requests and urllib3 do you have installed in that environment?

@zoobereq
Copy link
Author

zoobereq commented May 16, 2023

Hi, and sorry of the delayed reply. Here's the requested info:

  • DeepL v. 1.14.0
  • requests v. 2.26.0
  • urllib3 v. 1.26.7

Hope this helps.

@velochy
Copy link

velochy commented Feb 23, 2024

Ran into the same issue. Problem is the urllib v. 1.26.7, as deepl expects v2.
In my case, the old urllib is due to s3fs, which does not work with the new urllib, so it's a sticky situation, but not one of deepl.

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