py2app

Include openssl in app

大城市里の小女人 提交于 2020-01-15 17:20:35
问题 I am trying to build a standalone version of Bitmessage for OS X. So far, I have managed to include PyQt4 in the build by having the following setup.py: from setuptools import setup APP = ['bitmessagemain.py'] DATA_FILES = [] OPTIONS = {'argv_emulation': True, 'iconfile': '/Users/jackson/Desktop/Bitmessagelogo-reduced.icns', 'includes': ['PyQt4']} setup( app=APP, data_files=DATA_FILES, options={'py2app': OPTIONS}, setup_requires=['py2app'], ) I can't seem to figure out how to bundle openssl

Error in py2app

a 夏天 提交于 2020-01-15 12:38:05
问题 I am testing py2app on a simple test.py application, doing nothing special. python == 3.6 py2app == 0.14 It builds fine with no errors when I give this command: python3.6 setup.py py2app -A but when I launch it, this is the result: ./dist/test.app/Contents/MacOS/test Traceback (most recent call last): File "/Users/fabio/projvenv/dist/test.app/Contents/Resources/__boot__.py", line 132, in <module> _run() File "/Users/fabio/projvenv/dist/test.app/Contents/Resources/__boot__.py", line 126, in

py2applet: command not found

若如初见. 提交于 2020-01-15 06:01:49
问题 I'm trying to create a GUI Python app using Py2App, but am having trouble running the setup script py2applet. I've installed py2app via pip $ sudo pip install py2app #this works ok Then, I try to build the setup script: $ py2applet --make-setup gui.py #this fails w/ no command found What am I doing wrong? 回答1: Try refreshing your shells' memory or try to call the app with full path just to see if that works. E.g. /usr/bin/py2applet You can use sudo find / -name "py2applet" -type f To find the

py2applet: command not found

淺唱寂寞╮ 提交于 2020-01-15 06:01:27
问题 I'm trying to create a GUI Python app using Py2App, but am having trouble running the setup script py2applet. I've installed py2app via pip $ sudo pip install py2app #this works ok Then, I try to build the setup script: $ py2applet --make-setup gui.py #this fails w/ no command found What am I doing wrong? 回答1: Try refreshing your shells' memory or try to call the app with full path just to see if that works. E.g. /usr/bin/py2applet You can use sudo find / -name "py2applet" -type f To find the

Error in py2app application

℡╲_俬逩灬. 提交于 2020-01-07 07:55:48
问题 (OSX = Mountain lion) My app in /dist throws the error: Last login: Wed Aug 28 11:21:29 on ttys001 -MacBook-Pro:~ $ /Users/Desktop/dist/abc.app/Contents/MacOS/abc ; exit; Traceback (most recent call last): File "/usr/local/lib/python2.7/site-packages/py2app/apptemplate/lib/site.py", line 20, in <module> import os File "os.pyc", line 398, in <module> File "UserDict.pyc", line 83, in <module> File "_abcoll.pyc", line 11, in <module> File "/Users/Virendra/Desktop/dist/abc.app/Contents/Resources

Error in py2app application

假装没事ソ 提交于 2020-01-07 07:54:05
问题 (OSX = Mountain lion) My app in /dist throws the error: Last login: Wed Aug 28 11:21:29 on ttys001 -MacBook-Pro:~ $ /Users/Desktop/dist/abc.app/Contents/MacOS/abc ; exit; Traceback (most recent call last): File "/usr/local/lib/python2.7/site-packages/py2app/apptemplate/lib/site.py", line 20, in <module> import os File "os.pyc", line 398, in <module> File "UserDict.pyc", line 83, in <module> File "_abcoll.pyc", line 11, in <module> File "/Users/Virendra/Desktop/dist/abc.app/Contents/Resources

How do I use py2app with a virtual environment?

佐手、 提交于 2020-01-07 03:54:04
问题 I'm trying to create an app with py2app and a simple Tkinter Python 3 program. My setup.py file is the default one created when running the py2applet --make-setup command. When I try to build the app, numerous files are copied to the app bundle but I get the this error: error: can't copy '/Users/bill/.virtualenvs/tk3/Resources/Python.app/Contents/MacOS/Python': doesn't exist or not a regular file . And when I try to open the built app, I get a dialog window with A Python runtime could not be

py2exe/py2app and docx don't work together

偶尔善良 提交于 2020-01-02 10:25:12
问题 Installed docx on Windows 7 here: D:\Program Files (x86)\Python27\Lib\site-packages as shown below: Installed docx on OS X at /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/docx-0.0.2-py2.7.egg-info as shown below: Following is the sample script (named as docx_example.py), which runs absolutely fine on the python interpreter: #!/usr/bin/env python ''' This file makes an docx (Office 2007) file from scratch, showing off most of python-docx's features. If you need

PIL ImageTK not loading image in py2app application bundle

隐身守侯 提交于 2020-01-02 03:50:28
问题 I'm testing out an app that I've made which, amongst other things, loads a couple of .png images when opened. The images are displayed correctly on my Mac (10.7.5) and my mother's (10.8.5); however when my sister opens it on hers (10.9.5) the images don't load. All other functionality is otherwise intact. I should note that on my Mac and my mother's, I installed Python 3.4 and many of the packages that the app uses, including the PIL package, whereas my sister has none of these. The app was

App built with non-system Python using py2app in pyenv not runnable on other machines

最后都变了- 提交于 2019-12-29 09:30:16
问题 My understanding was that as long as a non-Apple-default Python is employed to build, that the end-user need not install Python him/herself to execute a py2app-built app. In developing and testing the app in my own environment, I obviously have Python installed. Specifically, I built in a pyenv with with a python.org install, not Apple's own. Yet when I give the app to an end-user who doesn't have Python installed, she gets: A Python runtime could not be located. You may need to install a