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

'Connection to translate.google.com timed out. #638

Closed
4 tasks done
highway008 opened this issue Feb 17, 2025 · 2 comments
Closed
4 tasks done

'Connection to translate.google.com timed out. #638

highway008 opened this issue Feb 17, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@highway008
Copy link

在提问之前...

  • 我已经搜索了现有的 issues
  • 我在提问题之前至少花费了 5 分钟来思考和准备
  • 我已经认真且完整的阅读了 wiki
  • 我已经认真检查了问题和网络环境无关

使用的环境

- OS:Ubuntu 18.04.5 LTS 
- Python:3.12
- pdf2zh:1.9.0

描述你的问题

无法使用google翻译,可以使用bing、Argos Translate卡在;

Image
服务器端报错:ERROR:pdf2zh.converter:HTTPConnectionPool(host='translate.google.com', port=80): Max retries exceeded with url: /m?tl=zh-CN&sl=en&q=Shanxi+Vocational (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7f47b43ac3e0>, 'Connection to translate.google.com timed out. (connect timeout=None)'))

如何复现

  1. 执行 '...'translate
  2. 选择 '....'google
  3. 出现问题:ERROR:pdf2zh.converter:HTTPConnectionPool(host='translate.google.com', port=80): Max retries exceeded with url: /m?tl=zh-CN&sl=en&q=Shanxi+Vocational (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7f47b43ac3e0>, 'Connection to translate.google.com timed out. (connect timeout=None)'))

预期行为

可以使用google翻译

相关 Logs

ERROR:pdf2zh.converter:HTTPConnectionPool(host='translate.google.com', port=80): Max retries exceeded with url: /m?tl=zh-CN&sl=en&q=Design+of+Smart+Home+Control+System+Based+on+Wireless+Voice+Sensor (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7f47b43ae3f0>, 'Connection to translate.google.com timed out. (connect timeout=None)'))
ERROR:pdf2zh.converter:HTTPConnectionPool(host='translate.google.com', port=80): Max retries exceeded with url: /m?tl=zh-CN&sl=en&q=Changchun+Yang (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7f47b43ae5a0>, 'Connection to translate.google.com timed out. (connect timeout=None)'))
ERROR:pdf2zh.converter:HTTPConnectionPool(host='translate.google.com', port=80): Max retries exceeded with url: /m?tl=zh-CN&sl=en&q=Shanxi+Vocational (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7f47b43ac3e0>, 'Connection to translate.google.com timed out. (connect timeout=None)'))
ERROR:pdf2zh.converter:HTTPConnectionPool(host='translate.google.com', port=80): Max retries exceeded with url: /m?tl=zh-CN&sl=en&q=Design+of+Smart+Home+Control+System+Based+on+Wireless+Voice+Sensor (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7f48dcb647a0>, 'Connection to translate.google.com timed out. (connect timeout=None)'))
ERROR:pdf2zh.converter:HTTPConnectionPool(host='translate.google.com', port=80): Max retries exceeded with url: /m?tl=zh-CN&sl=en&q=Shanxi+Vocational (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7f48dcb64e30>, 'Connection to translate.google.com timed out. (connect timeout=None)'))
ERROR:pdf2zh.converter:HTTPConnectionPool(host='translate.google.com', port=80): Max retries exceeded with url: /m?tl=zh-CN&sl=en&q=Changchun+Yang (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7f48dcb64f80>, 'Connection to translate.google.com timed out. (connect timeout=None)'))
ERROR:pdf2zh.converter:HTTPConnectionPool(host='translate.google.com', port=80): Max retries exceeded with url: /m?tl=zh-CN&sl=en&q=Research+Article (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7f48dc26c530>, 'Connection to translate.google.com timed out. (connect timeout=None)'))
ERROR:pdf2zh.converter:HTTPConnectionPool(host='translate.google.com', port=80): Max retries exceeded with url: /m?tl=zh-CN&sl=en&q=Shanxi+Vocational (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7f47b43ace00>, 'Connection to translate.google.com timed out. (connect timeout=None)'))
ERROR:pdf2zh.converter:HTTPConnectionPool(host='translate.google.com', port=80): Max retries exceeded with url: /m?tl=zh-CN&sl=en&q=Changchun+Yang (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7f47b43ac380>, 'Connection to translate.google.com timed out. (connect timeout=None)'))
ERROR:pdf2zh.converter:HTTPConnectionPool(host='translate.google.com', port=80): Max retries exceeded with url: /m?tl=zh-CN&sl=en&q=Design+of+Smart+Home+Control+System+Based+on+Wireless+Voice+Sensor (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7f47b43af170>, 'Connection to translate.google.com timed out. (connect timeout=None)'))
ERROR:pdf2zh.converter:HTTPConnectionPool(host='translate.google.com', port=80): Max retries exceeded with url: /m?tl=zh-CN&sl=en&q=Research+Article (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7f47b43ad3d0>, 'Connection to translate.google.com timed out. (connect timeout=None)'))

原始PDF文件

任意pdf

还有别的吗?

@highway008 highway008 added the bug Something isn't working label Feb 17, 2025
@hellofinch
Copy link
Contributor

@awwaawwa @Wybxc @Byaidu 关吧。

@highway008
Copy link
Author

怎么解决?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants