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

(Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x00000200612F9510>, 'Connection to translate.google.com timed out. (connect timeout=None)') #265

Closed
lizhichao999 opened this issue Dec 18, 2024 · 5 comments

Comments

@lizhichao999
Copy link

问题描述

请对问题进行描述,并提供日志或截图
C:\Users\Administrator>d:

D:\lizc\pdf>set USE_MODELSCOPE=1 pdf2zh

D:\lizc\pdf>pdf2zh test.pdf
0%| | 0/1 [00:00<?, ?it/s]ERROR:pdf2zh.converter:HTTPConnectionPool(host='translate.google.com', port=80): Max retries exceeded with url: /m?tl=zh-CN&sl=en&q=The+Cranford+ladies+have+only+an+occasional+little+quarrel%2C+spirited+out+in+a+few+peppery++words+and+angry+jerks+of+the+head%3B+just+enough+to+prevent+the+even+tenor+of+their+lives+from++becoming+too+flat.+Their+dress+is+very+independent+of+fashion%3B+as+they+observe%2C+%E2%80%9CWhat+does++it+signify+how+we+dress+here+at+Cranford%2C+where+everybody+knows+us%3F%E2%80%9D+And+if+they+go+from++home%2C+their+reason+is+equally+cogent%2C+%E2%80%9CWhat+does+it+signify+how+we+dress+here%2C+where+nobody++knows+us%3F%E2%80%9D+The+materials+of+their+clothes+are%2C+in+general%2C+good+and+plain%2C+and+most+of+them++are+nearly+as+scrupulous+as+Miss+Tyler%2C+of+cleanly+memory%3B+but+I+will+answer+for+it%2C+the+last++gigot%2C+the+last+tight+and+scanty+petticoat+in+wear+in+England%2C+was+seen+in+Cranford%E2%80%94and++seen+without+a+smile. (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x00000200612E3310>, 'Connection to translate.google.com timed out. (connect timeout=None)'))已经下载到本地的模型,还是要请求远程吗

@hellofinch
Copy link
Contributor

pypi包还没更新应该,请稍等下一个版本。
: )

@hellofinch
Copy link
Contributor

而且这个问题是google连接不到,不是模型的问题。

@Byaidu Byaidu closed this as completed Dec 18, 2024
@Byaidu
Copy link
Owner

Byaidu commented Dec 18, 2024

#134

@iBQ-github
Copy link

我的问题跟你一样,不太明白#134的解决办法,我的chrome能正常访问google所有网站(GHpler ON),1.8.8版本使用正常,升级到1.9.0就报错了

@hellofinch
Copy link
Contributor

可是是最近政策影响到了谷歌的翻译服务?境内不能直连了?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants