py2app

Problem using py2app with the lxml package

I am trying to use 'py2app' to generate a standalone application from some Python scripts. The Python uses the 'lxml' package, and I've found that I have to specify this explicitly in the setup.py file that 'py2app' uses. However, the resulting application program still won't run on machines that haven't had 'lxml' installed. My Setup.p...

py2app error: "can't copy '%s': doesn't exist or not a regular file"

I'm trying to pack my Python app with py2app. I'm running the setup.py I created, and I get this error: File "C:\Python26\lib\distutils\file_util.py", line 119, in copy_file "can't copy '%s': doesn't exist or not a regular file" % src DistutilsFileError: can't copy '--dist-dir': doesn't exist or not a regular file > c:\python26\l...

py2app error: "'module' object has no attribute 'symlink'"

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_a...

Has anyone successfully built a PyObjC app in Snow Leopard?

If you did, would you mind sharing how you did the pyobjc install? I was trying to do it by installing PythonMac 2.5 (for the standalone bundle thru py2app), and doing easy_install of PyObjC. I always get those deprecated errors, primarily those declared in dyld.h, and inside objc_inject.m. I tried compiling from source but still no luc...

Py2App Can't find standard modules

I've created an app using py2app, which works fine, but if I zip/unzip it, the newly unzipped version can't access standard python modules like traceback, or os. The manpage for zip claims that it preserves resource forks, and I've seen other applications packaged this way (I need to be able to put this in a .zip file). How do I fix this...

Compiling a py2app working build for both Leopard and Snow Leopard?

I currently am making my PyObjC application work for Snow Leopard and I successfully compiled a standalone app. My question would be, how do I make the build to be also Leopard-compatible, given these errors? dyld: lazy symbol binding failed: Symbol not found: _fopen$UNIX2003 Referenced from: /Applications/MyApp.app/Contents/MacOS/MyA...

How to trigger post-build using setuptools/distutils

I am building an application using py2app/setuptools, so once it creates application bundle I want to take some action on dist folder e.g. create a installer/upload it. Is there a way? I have found some post-install solution but no post-build Alternatively I can call 'python setup.py py2app' from my own script and do that, but it would...

py2app dropping wxpython (Snow Leopard)

After upgrading to Snow Leopard, I'm having trouble building my application. It looks like py2app is building and copying over wxPython, but when I run from the buld app, it can't find wx. ...

py2app file ownership and executables

How should I handle changing ownership of the files in the .app bundle? If I ship this file to a client, the internals will have my user id. Also related, I have some executables files that are used by my application. py2app removes the executable permission bit. Should I include these in DATA_FILES and change permissions in-place,...

Python app distribution cross-platform

I want to distribute my app on OSX (using py2app) and as a Debian package. The structure of my app is like: app/ debian/ <lots of debian related stuff> scripts/ app app/ __init__.py app.py mod1/ __init__.py a.py mod2/ _...

Mac OS X app/service and stdin?

I'm debugging a service I'm developing, which basically will open my .app and pass it some data to stdin. But it doesn't seem like it's possible to something like: open -a myapp.app < foo_in.txt Is it possible to pass stuff to an .app's stdin at all? Edit: Sorry, I should have posted this on SO and been more clear. What I'm trying to...

Creating an Python/py2app application that simply opens a terminal on launch?

I've written a nice Python application that is basically an HTTP proxy for SMS modems, and I'd like to make it a double-clickable application on Macs. So far I've been including a .commmand file which is double-clickable, which basically consists of cd `dirname $0` (sleep 8;open http://127.0.0.1:8080/)&amp; mac/slingshotsms.app/Contents...

When using py2app, is there a way to customize the traceback dialog that gets displayed? (Or show a different Cocoa dialog?)

Is there an easy way to get any more control over the py2app traceback dialogs, or just a nice way to display GUI messages? If I raise an exception in my py2app script, I get a dialog that says something like this: MyAppName Error MyAppName Error An unexpected error has occurred during execution of the main script MyR...

py2app and xml.etree.ElementTree

I'm trying to build an app that uses some xml data using Python's built-in xml.etree.ElementTree class. It works properly when I run from the command line, but when I build it, I get an error "ImportError: No module etree.ElementTree." I'm guessing this is because I'm not importing that module correctly, but I haven't been able to figure...

py2app Not Finding BeautifulSoup

I have a script that uses BeautifulSoup that I want to make into a standalone app using py2app. When I run the app made by py2app I get an error saying that the module BeautifulSoup could not be found. My sys.path has '/Library/Python/2.6/site-packages/BeautifulSoup-3.1.0.1-py2.6.egg' so it seems like it should be there, any advice? ...

Does py2app support python3 ??

Hello all, I've developed an application in windows using python 3.1.1 with pyqt 4.6.. Just want to know that can i make it as a stand alone application in Mac OS using py2app?? Does py2app support python 3.1.1. I'm posting the question here bcoz. it's not particularly mentioned in any of their documents.. Thanks in advance.. ...

py2app prescripts

The py2app documentation mentions prescripts, being run by __boot__.py prior to the main python script. I couldn't find a way to easily specify any prescript on the setup.py file or build process. I did however manage to 'hack' __boot__.py manually and add another _run(prescript) command before my main _run(main_script) and it seemed to...

Bundle a Python app as a single file to support add-ons or extensions?

There are several utilities — all with different procedures, limitations, and target operating systems — for getting a Python package and all of its dependencies and turning them into a single binary program that is easy to ship to customers: http://wiki.python.org/moin/Freeze http://www.pyinstaller.org/ http://www.py2exe.org/ http://s...

How to change the app name in OSX menubar in a pure-Python application bundle?

I am trying to create a pure-Python application bundle for a wxPython app. I created the .app directory with the files described in Apple docs, with an Info.plist file etc. The only difference between a "normal" app and this bundle is that the entry point (CFBundleExecutable) is a script which starts with the following line: #!/usr/bin/...

py2app, pyObjc & macports compilation errors

Hi, I'm currently writing a small python app that embeds cherrypy and django using py2app. It worked well until I tried to include pyobjc in my project, since my app needed a small GUI (which consists of a small icon in the top menu bar + a drop down menu). I can run my python script without any problem (I'm using python 2.6 with macpo...