473,465 Members | 1,960 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

help using py2app

I'm trying to use py2app to convert the pySketch wxPython example into
a stand-alone OS X app. I've found the documentation at <http://undefined.org/python/py2app.html
>, but it wasn't terribly enlightening for me. My setup.py looks
like this:

#!/usr/bin/env python
"""
setup.py - script for building a bundled OS X application

Usage:
% python setup.py py2app
"""
from distutils.core import setup
import py2app

setup(
app=['pySketch.py'],
)
When I run this, it chugs along for a while and spews out lots of
output, and finally leaves me a bundle in the "dist" folder as it
should... but that app exits immediately. The only thing the console
log shows is:

Oct 2 16:59:21 IA-J1 kernel[0]: CODE SIGNING: cs_invalid_page:
p=12336[pySketch] clearing CS_VALID

A similar setup.py worked fine on on the "simple.py" example, but
clearly something more is needed here. Any clues? Or, is there a
better list/forum for asking about Mac-specific Python development?
(I've subscribed to the PyObjC mailing list, and sent a message to the
list, but it hasn't shown up yet... perhaps the SourceForge lists are
running slow today.)

Thanks,
- Joe

Oct 2 '08 #1
1 1887
Joe Strout wrote:
I'm trying to use py2app to convert the pySketch wxPython example into a
stand-alone OS X app. I've found the documentation at
<http://undefined.org/python/py2app.html>, but it wasn't terribly
enlightening for me. My setup.py looks like this:

#!/usr/bin/env python
"""
setup.py - script for building a bundled OS X application

Usage:
% python setup.py py2app
"""
from distutils.core import setup
import py2app

setup(
app=['pySketch.py'],
)
When I run this, it chugs along for a while and spews out lots of
output, and finally leaves me a bundle in the "dist" folder as it
should... but that app exits immediately. The only thing the console
log shows is:

Oct 2 16:59:21 IA-J1 kernel[0]: CODE SIGNING: cs_invalid_page:
p=12336[pySketch] clearing CS_VALID

A similar setup.py worked fine on on the "simple.py" example, but
clearly something more is needed here. Any clues? Or, is there a
better list/forum for asking about Mac-specific Python development?
(I've subscribed to the PyObjC mailing list, and sent a message to the
list, but it hasn't shown up yet... perhaps the SourceForge lists are
running slow today.)

Thanks,
- Joe
If py2app is anything like py2exe, there is always a lot more to do. if
you are importing modules, you need to explicitly include them into your
build folder.
Oct 2 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Austin | last post by:
""" Minimal setup.py example, run with: % python setup.py py2app """ from distutils.core import setup import py2app setup( app = , )
0
by: Bob Swerdlow | last post by:
I'm trying to move my application from bundlebuilder to py2app. I upgraded to PyObjC 1.2, which include py2app 1.7, but I got the following error. I saw a note on the py2app site that earlier...
1
by: bex | last post by:
Im baffled about this one... Im running OS 10.3, and Python 2.3. I installed py2app 0.17 and never used it, then installed py2app 0.2. It refuses to work. None of the samples will build....
0
by: Richard Taylor | last post by:
User-Agent: OSXnews 2.07 Xref: number1.nntp.dca.giganews.com comp.lang.python:437315 Hi I am trying to use py2app (http://undefined.org/python/) to package a gnome-python application...
3
by: SPE - Stani's Python Editor | last post by:
Hi, I'm creating a GUI program with wxPython which will be distributed for Mac and Windows. The audience of the program is not technical at all (eg they've never heard about Python yet ;-), so...
0
by: Pierre Thibault | last post by:
Hello, I am unable to use py2app. I have an error when I try to import it: ImportError: No module named py2app I have installed pyobjc-1.3.7. I am on Mac OS 10.4.6. It does not work. It...
0
by: sapsi | last post by:
Hi, I am writing a SIMBL plugin for Mail.app, so far it loads and the correct method has been swizzled. However, i would like to call the original method and that is where the problem lies. If...
0
by: Massimo Di Pierro | last post by:
Hello, Two users have reported this error when used the OSX version of Gluon (http://mdp.cti.depaul.edu/examples) Traceback (most recent call last): File...
3
by: AdamGr | last post by:
I am currently trying to convert a program I just wrote to application form, on the Mac. I'm using py2app to accomplish this, and everything works fine up until the last stage; when I try to complete...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.