关于 pyqt 程序的打包

2017-04-01 17:20:38 +08:00
 leetao94

我在 pyqt4 的项目中使用了 itchat 这个库,程序完成后使用 py2exe 进行打包,然而打包的成 exe 程序运行的时候出现下列错误:

Traceback (most recent call last):
  File "itchat\utils.pyo", line 123, in test_connect
  File "requests\api.pyo", line 71, in get
  File "requests\api.pyo", line 57, in request
  File "requests\sessions.pyo", line 475, in request
  File "requests\sessions.pyo", line 585, in send
  File "requests\adapters.pyo", line 477, in send
SSLError: [Errno 2] No such file or directory

You can't get access to internet or wechat domain, so exit.

有人遇到过同样的错误吗~~或者有什么好的解决思路,感激不尽

1670 次点击
所在节点    问与答
2 条回复
billlee
2017-04-01 19:51:32 +08:00
别打包,把解释器和依赖库带上,入口程序设置好环境变量可以运行得很好
izoabr
2017-04-01 20:30:30 +08:00
requests 以来 SSL 吧,看看是不是少证书

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/352023

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX