py2app

Python raw_input causing EOFError after creating app with py2app

和自甴很熟 提交于 2019-12-29 08:52:16
问题 I have written a small script that helps me solve scrabble and word-warp problems. It works fine when I run it from Mac OS X terminal. I would like to share the script with my friends as a standalone Mac app. Hence I used py2app for this, but the App crashed when I double-click on it. The console shows the following error message: 1/17/11 2:13:51 PM [0x0-0x4a44a4].org.pythonmac.unspecified.warp[9875] Enter letters: Traceback (most recent call last): 1/17/11 2:13:51 PM [0x0-0x4a44a4].org

py2app TypeError: dyld_find() got an unexpected keyword argument 'loader'

若如初见. 提交于 2019-12-29 06:55:34
问题 I'm having difficulty building my app using py2app. I can build it in alias mode without issue using this command: python3.4 setup.py py2app -A However when I try and build it using: python3.4 setup.py py2app I get the error message as per title of this post. From the research I've done I believe it's an issue with Pillow; however I need Pillow for this app. (Unless there's another module I can use to import images??). I've also tried cx_freeze without success. Any help or direction much

py2app Mach-O header error

天大地大妈咪最大 提交于 2019-12-25 16:55:33
问题 I am trying to use py2app on the following code: print(1+1) I create my setup with: py2applet --make-setup test.py Development with alias mode works fine: python3 setup.py py2app -A But when I try the standalone mode: python3 setup.py py2app I get after a lot of lines: WARNING: Mach-O header in '/Users/quentinpeter/Documents/PHD/Python/People project/Michele_worms/dist/test.app/Contents/Resources/lib/python3.6/scipy/linalg/_interpolative.cpython-36m-darwin.so' may be too large to relocate

module not found (conditional imports) with py2app

别来无恙 提交于 2019-12-25 03:02:46
问题 I have a little problem with py2app when I build the app, I have this error Modules not found (conditional imports): * Image (/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/py2app-0.9-py3.4.egg/py2app/recipes/PIL/prescript.py) * java (platform) * java.lang (platform) I guess it is a path problem with my python 3, but I'm not sure TY for help 回答1: I guess you build your app like this: python3 setup.py myapp and are using py2app 0.9? If you are trying python3

py2app app works only if launched from terminal

孤街醉人 提交于 2019-12-24 11:24:17
问题 I have just packaged my app (OSX 10.12.15 - python3.6 - py2app 0.12) and my application works only if launched from the terminal with MyApp.app/Contents/MacOS/MyApp . If I click on the app in the GUI, it doesn't start. This is my setup.py: from setuptools import setup APP = ['mq.py'] DATA_FILES = [] OPTIONS = { 'iconfile':'icons/mq.icns', 'plist': {'CFBundleShortVersionString':'0.1.0',} } setup( app=APP, name='MyApp', data_files=DATA_FILES, options={'py2app': OPTIONS}, setup_requires=['py2app

OSX app built with python quits immediately if app bundle is executed from finder but runs fine from command line

試著忘記壹切 提交于 2019-12-22 07:08:11
问题 So I have this pyqt project and I want to build a osx.app dmg using pyinstaller pyinstaller created the output in dist/MyApplication.app I can run it directly from terminal cd dist ./MyApplication.app/Contents/MacOS/MyApplication However, if I try to run the app bundle directly either with open -a MyApplication.app or open . # double click on MyApplication.app folder (appears just as MyApplication from finder) It starts and then quits immediately Now if I navigate to $ cd ./Contents/MacOS/

py2app error: in find_needed_modules TypeError: 'NoneType' object has no attribute '__getitem__'

二次信任 提交于 2019-12-21 05:38:07
问题 I have some troubles with py2app; for some reason I have always the same error for all scripts that I developed. At the moment I am using last MacPorts version and after two days of testing I cannot figure out what is wrong. One of the setup.py file for py2app is: from setuptools import setup APP = ['main.py'] OPTIONS = {'argv_emulation': True, 'includes': ['sip', 'PyQt4._qt', 'PyQt4.QtCore', 'PyQt4.QtGui'], 'excludes': ['PyQt4.QtDesigner', 'PyQt4.QtNetwork', 'PyQt4.QtOpenGL', 'PyQt4.QtScript

tkinter/py2app created application doesn't show window on initial launch

与世无争的帅哥 提交于 2019-12-21 05:13:13
问题 I'm running into an issue where launching a python app created with Tkinter and packaged by py2app doesn't show the application window immediately. The only way I've gotten the window to show after launch is to click on the application icon in the dock. This guy is using an applescript to auto-click the app on launch but as he states, and I agree, it isn't ideal. 回答1: After doing some extensive research, it would appear that this is a result of setting the 'argv_emulation' option to True in

Py2app: Operation not permitted

心已入冬 提交于 2019-12-21 04:10:48
问题 I want to create an application called 'dodgeball' and I have my main script (which uses pygame), and my setup.py script. I need an image named ball.bmp that I need as well. Inside my setup.py script I have the following code: from setuptools import setup APP = ['dodgeball.py'] DATA_FILES = ["ball.bmp"] OPTIONS = {'argv_emulation': True} setup( app=APP, data_files=DATA_FILES, options={'py2app': OPTIONS}, setup_requires=['py2app'], ) Whenever I try to make the application using the following

How to create Mac application bundle for Python script via Python

旧时模样 提交于 2019-12-21 02:45:10
问题 I want to create a simple Mac application bundle which calls a simple Python script. I want to do that in Python. Is there an easy way? I tried to use py2app but that fails somehow, e.g.: from setuptools import setup setup(app=["foo.py"], setup_requires=["py2app"]) gives: --------------------------------------------------------------------------- SystemExit Traceback (most recent call last) /Users/az/<ipython console> in <module>() /System/Library/Frameworks/Python.framework/Versions/2.7/lib