GithubHelp home page GithubHelp logo

lkjie / paper-translator Goto Github PK

View Code? Open in Web Editor NEW
25.0 25.0 7.0 1.64 MB

Chinese and English essay translator, paper translator, clipboard listener

License: MIT License

Python 97.51% JavaScript 2.49%

paper-translator's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

paper-translator's Issues

秒退

复制网页中pdf的文字时,老版本只是给出错误但不秒退,新版本秒退,然后查看错误为:

'gbk' codec can't encode character '\u2212' in position 148: illegal multibyte sequence

segmentation fault (core dumped) when call requests.post

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.