468,301 Members | 1,436 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,301 developers. It's quick & easy.

py2app on Mac OS X 10.3

"""
Minimal setup.py example, run with:
% python setup.py py2app
"""

from distutils.core import setup
import py2app
setup(
app = ['main.py'],
)

That is a sample code of wiki.
I have a file 'main.py' and several sub-folders.
After I execute 'pythonw setup.py py2exe', I see 2 folders, 'dist' & 'build'
which is the same as py2exe.
I open the 'dist' folder and see a file 'main'. Then I double-click the
'main' and appeared the error message.
'IOError:[Errno 2] No such file or directory:
'/user/austin/Desktop/disk/main.app/Contents/Resources/log/eventlog.xml
I feel so wildered because 'main.app' should be a file not a folder.

I was wondering if some extra codes needed by setup.py
Could anyone give me an advice?
Thanks a lot.
Jul 18 '05 #1
1 1799

On 31-dec-04, at 11:12, Austin wrote:
"""
Minimal setup.py example, run with:
% python setup.py py2app
"""

from distutils.core import setup
import py2app
setup(
app = ['main.py'],
)

That is a sample code of wiki.
I have a file 'main.py' and several sub-folders.
After I execute 'pythonw setup.py py2exe', I see 2 folders, 'dist' &
'build'
which is the same as py2exe.
I open the 'dist' folder and see a file 'main'. Then I double-click the
'main' and appeared the error message.
'IOError:[Errno 2] No such file or directory:
'/user/austin/Desktop/disk/main.app/Contents/Resources/log/eventlog.xml
I feel so wildered because 'main.app' should be a file not a folder.
It's an application bundle, which is a folder. All '.app'-s on OS X are
folders, it is a neat way of bundling the application program and all
data files it needs.

I was wondering if some extra codes needed by setup.py
Could anyone give me an advice?


What is 'eventlog.xml' supposed to be? If you're going to write to it,
it is in the wrong location. If it is a datafile that is used by your
application you should mention it in the setup.py script (the
data_files argument).

Ronald

Jul 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Bob Swerdlow | last post: by
1 post views Thread by bex | last post: by
3 posts views Thread by bsharitt | last post: by
reply views Thread by Richard Taylor | last post: by
3 posts views Thread by SPE - Stani's Python Editor | last post: by
2 posts views Thread by loren.davie | last post: by
2 posts views Thread by James Stroud | last post: by
reply views Thread by Ian A. York | last post: by
3 posts views Thread by AdamGr | last post: by
1 post views Thread by Joe Strout | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.