UlionTse / translators

🌏🌍🌎Translators🌎🌍🌏 is a library that aims to bring free, multiple, enjoyable translations to individuals and students in Python. Translators是一个旨在用Python为个人和学生带来免费、多样、愉快翻译的库。
https://pypi.org/project/translators/
GNU General Public License v3.0
1.62k stars 189 forks source link

[Bug]: Failed to establish a new connection: [Errno 111] Connection refused',)) #123

Closed cm-xcju closed 1 year ago

cm-xcju commented 1 year ago

Debug Tips

What happened?

ping www.baidu.com是可以成功的,但是依旧 connection refused

Traceback (most recent call last): File "/home/xcju/anaconda3/envs/t17py36/lib/python3.6/site-packages/urllib3/connection.py", line 175, in _new_conn (self._dns_host, self.port), self.timeout, **extra_kw File "/home/xcju/anaconda3/envs/t17py36/lib/python3.6/site-packages/urllib3/util/connection.py", line 95, in create_connection raise err File "/home/xcju/anaconda3/envs/t17py36/lib/python3.6/site-packages/urllib3/util/connection.py", line 85, in create_connection sock.connect(sa) ConnectionRefusedError: [Errno 111] Connection refused

APP Version

i don't know

Python Version

=3.6, <=3.8

Runtime Environment

Linux Ubuntu

Country/Region

china

Relevant log output

No response

Screenshots

No response

Code of Conduct

UlionTse commented 1 year ago

You are right, Baidu doesn't work on Linux without desktop. You can read this Debug Tips in README_detail.md