Coder Social home page Coder Social logo

python test.py 问题 about wxbot HOT 4 OPEN

guoxinrun avatar guoxinrun commented on July 16, 2024
python test.py 问题

from wxbot.

Comments (4)

zhaopengvicki avatar zhaopengvicki commented on July 16, 2024 5

这是什么问题?
[INFO]请使用微信扫描二维码。
[INFO]请确认登录。
[错误] Web WeChat运行失败 - >'ascii'编解码器无法编码位置31-57中的字符:序号不在范围内(128)

字符编码问题,可以在/usr/lib/python2.7/site-packages文件夹下新建一个sitecustomize.py,内容为

# encoding=utf8  
import sys  
  
reload(sys)  
sys.setdefaultencoding('utf8')

然后再次运行python test.py就可以解决此问题

from wxbot.

suyu2015 avatar suyu2015 commented on July 16, 2024

这是什么问题?
[INFO] Please use WeChat to scan the QR code .
[INFO] Please confirm to login .
[ERROR] Web WeChat run failed --> 'ascii' codec can't encode characters in position 31-57: ordinal not in range(128)

from wxbot.

suyu2015 avatar suyu2015 commented on July 16, 2024

from wxbot.

sggmico avatar sggmico commented on July 16, 2024

这是什么问题?
[INFO]请使用微信扫描二维码。
[INFO]请确认登录。
[错误] Web WeChat运行失败 - >'ascii'编解码器无法编码位置31-57中的字符:序号不在范围内(128)

字符编码问题,可以在/usr/lib/python2.7/site-packages文件夹下新建一个sitecustomize.py,内容为

# encoding=utf8  
import sys  
  
reload(sys)  
sys.setdefaultencoding('utf8')

然后再次运行python test.py就可以解决此问题

到 /usr/lib/python2.7 目录下,新建 sitecustomize.py 失败, 权限问题
image
这个请问需要怎么处理?

from wxbot.

Related Issues (20)

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.