Some Errors

#4
by tomaseo2022 - opened

Hi, I am a self-taught student of Artificial Intelligence. And I am trying to create applications with gradio and hugginface to learn. I have tried to make one similar to this, with your code, but when I implement it I get the following errors:

Traceback (most recent call last):
File "app.py", line 13, in
from googletrans import Translator, constants
File "/home/user/.local/lib/python3.8/site-packages/googletrans/init.py", line 6, in
from googletrans.client import Translator
File "/home/user/.local/lib/python3.8/site-packages/googletrans/client.py", line 30, in
class Translator:
File "/home/user/.local/lib/python3.8/site-packages/googletrans/client.py", line 62, in Translator
proxies: typing.Dict[str, httpcore.SyncHTTPTransport] = None,
AttributeError: module 'httpcore' has no attribute 'SyncHTTPTransport'

Could you help me with this?
Thank you.

Sign up or log in to comment