Byaidu / PDFMathTranslate

PDF scientific paper translation and bilingual comparison - 完整保留排版的 PDF 文档全文双语翻译,支持 Google/DeepL/Ollama/OpenAI 翻译
GNU Affero General Public License v3.0
1.21k stars 104 forks source link

在翻译时出现了网络问题怎么解决呢 #54

Open peterjane6 opened 2 hours ago

peterjane6 commented 2 hours ago

进度一直为0,下面重复出现这个 RROR:pdf2zh.converter:HTTPSConnectionPool(host='translate.google.com', port=443): Max retries exceeded with url: /m?tl=zh-CN&sl=en&q=T$v0$+$v1$+$v2$+$v3$+$v4$+$v5$+$v6$+$v7$+$v8$+$v9$ (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:997)')))

peterjane6 commented 2 hours ago

ERROR:pdf2zh.converter:HTTPConnectionPool(host='translate.google.com', port=80): Max retries exceeded with url: /m?tl=zh-CN&sl=en&q=Dr.+Aden+Mienel+was+director+of+the+OSC+at+that+time.+He+came+up+with+the+idea+of+enhancing+images+of++satellites++by++measuring++the++Optical++Transfer+Function+%28OTF%29+of+the+atmosphere+and+dividing+the+OTF++of++the++image++by++the++OTF++of++the++atmosphere.+The++trick++was++to++measure++the++OTF++of++the++atmos-+phere+at+the+same+time+the+image+was+taken+and+to+control++the++exposure++time++so++as++to++capture++a++snap-+shot+of+the+atmospheric+aberrations+rather+than+to+average+over+time.+The+measured+wavefront+error+in+the++atmosphere++should++not++change++more++than++%24v10%24%2F10+over+the+exposure+time.+The+exposure+time+for+a+low+earth+orbit+satellite+imaged+from+a+mountaintop+was+determined+to+be+about+1%2F60+second. (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x000001533CFAF730>, 'Connection to translate.google.com timed out. (connect timeout=None)'))

还有这种

peterjane6 commented 2 hours ago

FutureWarning: You are using torch.load with weights_only=False (the current default value), which uses the default pickle module implicitly. It is possible to construct malicious pickle data which will execute arbitrary code during unpickling (See https://github.com/pytorch/pytorch/blob/main/SECURITY.md#untrusted-models for more details). In a future release, the default value for weights_only will be flipped to True. This limits the functions that could be executed during unpickling. Arbitrary objects will no longer be allowed to be loaded via this mode unless they are explicitly allowlisted by the user via torch.serialization.add_safe_globals. We recommend you start setting weights_only=True for any use case where you don't have full control of the loaded file. Please open an issue on GitHub for any issues related to this experimental feature.

最开始是出现了这个,然后出现了上面

Byaidu commented 1 minute ago

搞个好点梯子,或者换个服务比如 deepl