V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
RqPS6rhmP3Nyn3Tm
V2EX  ›  Python

py2app (使用了 PyQt5)打包出现问题,求各位帮助

  •  
  •   RqPS6rhmP3Nyn3Tm · 2016-03-08 17:51:39 +08:00 · 3932 次点击
    这是一个创建于 2974 天前的主题,其中的信息可能已经有所发展或是发生改变。

    事情是这样的, virtualenv 一切都配置妥当以后按国际惯例,打包:

    python setup.py py2app

    打出的包无法运行,直接崩溃,日志长这样:
    https://gist.github.com/anonymous/5e59755f661a8c21f2c7
    我猜可能是 PyQt5 的问题, any ideas?

    6 条回复    2016-03-10 10:26:30 +08:00
    RqPS6rhmP3Nyn3Tm
        1
    RqPS6rhmP3Nyn3Tm  
    OP
       2016-03-08 17:54:04 +08:00
    ming2281
        2
    ming2281  
       2016-03-08 21:40:15 +08:00
    先查查这个包是否支持 PyQt5,
    如果不,可能要降级 PyQt4
    RqPS6rhmP3Nyn3Tm
        3
    RqPS6rhmP3Nyn3Tm  
    OP
       2016-03-08 22:32:09 +08:00 via iPad
    @ming2281 Google 了一圈, py2app 是有人使用过 PyQt5 的先例的,我猜应该是支持的。
    实在是不想用 py2objc 这种不跨平台的东西……求支援
    andrewliu117
        4
    andrewliu117  
       2016-03-09 08:37:24 +08:00
    RqPS6rhmP3Nyn3Tm
        5
    RqPS6rhmP3Nyn3Tm  
    OP
       2016-03-09 08:58:17 +08:00 via Android
    @andrewliu117 这不就是我自己的…
    andrewliu117
        6
    andrewliu117  
       2016-03-10 10:26:30 +08:00
    @BXIA 不还意思,我只是好奇那个显示 gist 代码的按钮是你写的,还是自动生成了

    没想到发了贴以后不能删除。伤。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5002 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 09:28 · PVG 17:28 · LAX 02:28 · JFK 05:28
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.