google-translate-for-goldendict icon indicating copy to clipboard operation
google-translate-for-goldendict copied to clipboard

在python中可以用,但是在goldendict中报错

Open hccz95 opened this issue 2 years ago • 1 comments

报错信息: Errrrrrrrrror: HTTPSConnectionPool(host='translate.googleapis.com', port=443): Max retries exceeded with url: /translate_a/single?client=gtx&sl=auto&tl=zh-CN&hl=en&dt=at&dt=bd&dt=ex&dt=ld&dt=md&dt=qca&dt=rw&dt=rm&dt=sos&dt=ss&dt=t&ssel=0&tsel=0&kc=1&tk=772786.881152&q=volumes%29 (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available."))

hccz95 avatar Jun 30 '22 08:06 hccz95

此问题已解决,原因是需要设置环境变量,在Path中加入以下路径: D:\Anaconda3; D:\Anaconda3\Scripts; D:\Anaconda3\Library\bin;

但此时的翻译结果中,中文全都是乱码,如果把-r属性设置为text则正常显示

hccz95 avatar Jun 30 '22 14:06 hccz95