deepl-python icon indicating copy to clipboard operation
deepl-python copied to clipboard

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

Open zoobereq opened this issue 1 year ago • 3 comments

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.

zoobereq avatar May 11 '23 18:05 zoobereq

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

JanEbbing avatar May 12 '23 07:05 JanEbbing

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.

zoobereq avatar May 16 '23 19:05 zoobereq

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.

velochy avatar Feb 23 '24 19:02 velochy