Comments (10)
@xzjs 这是因为在nohup当中无法读取到系统命令行的默认字符集
把out.py的11-12行改为下面的内容就可以了:
sys.stdout.write(msg.encode(sys.stdin.encoding or 'utf8', 'replace'
).decode(sys.stdin.encoding or 'utf8', 'replace'))
我会在下一个版本中修复进去
from itchat.
@littlecodersh pull了最新的代码,现在二维码都没法生成了,只有我一个这样么
Getting QR Code
Failed to get QR Code, please restart the program
from itchat.
@xzjs 试试看把86-101行的异常输出出来,看下是什么问题:
def get_QR(self, uuid = None, enableCmdQR = False):
try:
if uuid == None: uuid = self.uuid
url = '%s/qrcode/%s'%(BASE_URL, uuid)
r = self.s.get(url, stream = True)
QR_DIR = 'QR.jpg'
with open(QR_DIR, 'wb') as f: f.write(r.content)
if enableCmdQR:
tools.print_cmd_qr(QR_DIR)
else:
tools.print_qr(QR_DIR)
return True
except:
import traceback
traceback.print_exc()
return False
from itchat.
我觉得是路径问题吧,可能当前路径没写权限
from itchat.
@littlecodersh 抛出的异常时这个
`Getting QR CodeTraceback (most recent call last):
File "/Users/xzjs/Desktop/CodeComplete/python/ItChat/itchat/client.py", line 96, in get_QR
tools.print_qr(QR_DIR)
File "/Users/xzjs/Desktop/CodeComplete/python/ItChat/itchat/tools.py", line 49, in print_qr
subprocess.call(['open', fileDir])
NameError: global name 'subprocess' is not defined`
from itchat.
忘了说了,我的开发环境是mac,部署环境是centos 7
from itchat.
@xzjs 临时解决方案:
在/Users/xzjs/Desktop/CodeComplete/python/ItChat/itchat/tools.py
最上面加一行:
import subprocess
from itchat.
@tempdban 解决了,太感谢了
from itchat.
坐等老大修复
from itchat.
@tempdban 都是码代码的兄弟 😁
from itchat.
Related Issues (20)
- Hi how i yours the App
- 现在微信网页版无法登录,还能用itchat吗 HOT 11
- iPhone手机上的8.0.43版本微信是不是改VOIP了?
- 视频号 HOT 1
- ???
- 错误
- 17年6月下旬前登陆过web网页版的微信可以使用此框架,验证微信是否支持web版本API,请点击https://wx.qq.com/ ,扫码验证即可,假如出现无法登陆,则不适用于此框架 HOT 3
- itchat.send_video 运行没有效果 HOT 2
- 如何获得微信群群人数
- 【无法登录】“为了保障你的账号安全,暂不支持使用网页版微信。你可以前往微信官网” HOT 3
- ?
- ?
- 可以与jenkins集成吗?将jenkins构建的结果推送到普通微信群中
- 关于thread过时
- 获取什么作为群聊用户的永久唯一标识? HOT 4
- set_alias修改好友备注接口怎么没有生效 HOT 3
- 我在登录后出现'xml.parsers.expat.ExpatError: mismatched tag: line 64, column 4' 怎么解决 HOT 9
- 国务院的人都是一群鲨跸 HOT 4
- 【!!!研发必看!!!】替代UOS WEB版,做机器人,小助手,营销系统,客服系统,监管系统的可以 看下这个API方案 HOT 5
- 能根据手机号获取微信头像昵称吗?个人签名。 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from itchat.