You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
>>> import googletrans
>>> tr = googletrans.Translator()
>>> tr.translate('test', dest='en')
<googletrans.models.Translated object at 0x101c9c5d0>
>>> tr.translate(['test'], dest='en')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/Viktor/PycharmProjects/people-benchmark/.venv/lib/python3.11/site-packages/googletrans/client.py", line 219, in translate
parsed = json.loads(data[0][2])
^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/[email protected]/3.11.9_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/json/__init__.py", line 339, in loads
raise TypeError(f'the JSON object must be str, bytes or bytearray, '
TypeError: the JSON object must be str, bytes or bytearray, not NoneType
Googletrans version:
I'm submitting a ...
Current behavior:
Batch translation does not work.
Other information:
The text was updated successfully, but these errors were encountered: