py2app

py2app built app displays `ERROR: pygame.macosx import FAILED` on other machines

让人想犯罪 __ 提交于 2019-12-20 10:27:50
问题 Trying to build an app on the Mac using py2app. Got everything working fine on my machine, but when moving the app to another, it crashes and the console displays this error. ERROR: pygame.macosx import FAILED Anybody have a solution to this? 回答1: Found the problem and solution after many hours. Turns out other people have experienced similar problems and their articles were quite helpful: http://b.atcg.us/blog/2010/04/13/py2app-hell-the-first.html http://www.vijayp.ca/blog/?p=62 In case

How to create OS X app with Python on Windows

↘锁芯ラ 提交于 2019-12-18 16:47:09
问题 I need to automate a cross-platform application build. Entire build runs on Windows machine. Part of it is written in Python and compiles for OS X. Currently this part of build is done manually on OS X. I tried pyinstaller but it looks like it only building for the platform that it is running on. I also tried py2app but it did not install on Windows. Are there any tools to compile Python script to OS X app on Windows machine? 回答1: Short answer: Apparently, no simple way to do this with the

How to create OS X app with Python on Windows

ⅰ亾dé卋堺 提交于 2019-12-18 16:47:08
问题 I need to automate a cross-platform application build. Entire build runs on Windows machine. Part of it is written in Python and compiles for OS X. Currently this part of build is done manually on OS X. I tried pyinstaller but it looks like it only building for the platform that it is running on. I also tried py2app but it did not install on Windows. Are there any tools to compile Python script to OS X app on Windows machine? 回答1: Short answer: Apparently, no simple way to do this with the

How to specify py2app icon?

蹲街弑〆低调 提交于 2019-12-18 13:16:38
问题 How do I specify the icon file when using py2app? Just now I create the setup file: py2applet --make-setup MyApplication.py and then build the application bundle: python setup.py py2app -A where is it that I specify the icon file.. getting a little confused. Thanks for any help. according to this link- http://packages.python.org/py2app/options.html, I should add it as an option. Currently my setup.py file looks like this: """ This is a setup.py script generated by py2applet Usage: python

Is it possible to deploy a Python application on the Mac App Store?

*爱你&永不变心* 提交于 2019-12-18 10:04:14
问题 Does Apple accept Python applications for distribution on the new Mac App Store? If so, how should the application be packaged? Is py2app sufficient? Something else? 回答1: I packaged Pennywise, which is available on the Mac App Store. It's based on Virgil's moneyGuru, which uses Python, PyObjC, and py2app. You will have to follow Apple's process for preparing an application for submission to the Mac App Store. Most importantly, you will want to add the proper keys to your Info.plist, and

how to fix distutils.errors.DistutilsError on py2app? [closed]

自闭症网瘾萝莉.ら 提交于 2019-12-13 16:05:37
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . I recently tried to use py2app and I have a simple app named test.py. everything is fine, until I type 'python3 setup.py py2app'. here is the error message: Download error on https://pypi.python.org/simple/py2app/: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:748) -- Some packages may not

An import error when using Py2app

帅比萌擦擦* 提交于 2019-12-13 13:53:44
问题 I'm using py2app to pack up my python script as an .app document on mac but find an import error: Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/bin/py2applet", line 7, in <module> from py2app.script_py2applet import main File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/py2app/script_py2applet.py", line 13, in <module> from plistlib import Plist ImportError: cannot import name 'Plist' from 'plistlib' (/Library

Bundle Text file in py2app Application (python)

混江龙づ霸主 提交于 2019-12-13 05:18:37
问题 I recently learned Python (2.7) and have been making some simple board games with AIs and such as practice. I am currently making an intelligent hangman game which necessitates the inclusion of a dictionary file. (I have a text file which has a new word on each line). I used py2app successfully for other stuff such as this: connect-four.zzl.org but unfortunately, it doesn't seem to include my text file when I run py2app for my new hangman program. Can anyone help me figure out how to include

Cannot find PRAW config file when wrapping application with py2app

帅比萌擦擦* 提交于 2019-12-13 04:43:05
问题 I'm trying to wrap my Python script into an application using py2app, but when I try to run the app I'm getting this PRAW related error: Exception: Could not find config file in any of: ['/Users/username/CS/Applicationame/dist/applicationname.app/Contents/Resources/lib/python2.7/site-packages.zip/praw/praw.ini', '/Users/username/.config/praw.ini', 'praw.ini'] The strange thing is I navigated to the first path, unzipped site-packages.zip and found praw.ini inside /praw, so I'm not really sure

py2app error: “'module' object has no attribute 'symlink'”

最后都变了- 提交于 2019-12-13 03:34:45
问题 I'm trying to pack my Python app with py2app. I'm running the setup.py I created, and I get this error: Traceback (most recent call last): File "C:\Python26\lib\site-packages\py2app-0.3.6-py2.6.egg\py2app\build_app.py ", line 548, in _run self.run_normal() File "C:\Python26\lib\site-packages\py2app-0.3.6-py2.6.egg\py2app\build_app.py ", line 619, in run_normal self.create_binaries(py_files, pkgdirs, extensions, loader_files) File "C:\Python26\lib\site-packages\py2app-0.3.6-py2.6.egg\py2app