lkjie / paper-translator Goto Github PK
View Code? Open in Web Editor NEWChinese and English essay translator, paper translator, clipboard listener
License: MIT License
Chinese and English essay translator, paper translator, clipboard listener
License: MIT License
复制网页中pdf的文字时,老版本只是给出错误但不秒退,新版本秒退,然后查看错误为:
'gbk' codec can't encode character '\u2212' in position 148: illegal multibyte sequence
Just an advice
when i call the script, the program was abort suddenly. i debug in pycharm then i found the script crashed at line 134:
return requests.post('http://fy.iciba.com/ajax.php?a=fy', data={'w': results}, timeout=timeout).json()
but when i call this code in python console, it run perfectly.
i step into this code finally i found it crashed at socket.py, line 745:
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
my platform:
ubuntu 16.04, python 3.6.5 with anaconda
unfortunately i cannot find a way to solve it.
UPDATE:
i upgrade my ubuntu from 16.04 to 18.04 then i found the problem has been solved. i think some dependencies missed lead to this bug, but i don't know the details.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.