[Pythonmac-SIG] Problems with py2app
Gerhard Schmidt
estartu at augusta.de
Thu Feb 3 14:54:53 CET 2011
HI,
I try to generate an MacOSX app from one of my wxPython projects. but
I've run into some problems with py2app.
when I run python setup.py py2app i get the following error
running py2app
creating /home/users/estartu/projekte/acf/vereinsverwaltung/dist
*** filtering dependencies ***
242 total
238 filtered
0 orphaned
4 remaining
*** create binaries ***
*** byte compile python files ***
skipping byte-compilation of
/Library/Python/2.6/site-packages/py2app-0.5.2-py2.6.egg/py2app/bootstrap/boot_app.py
to boot_app.pyc
skipping byte-compilation of
/Library/Python/2.6/site-packages/py2app-0.5.2-py2.6.egg/py2app/bootstrap/chdir_resource.py
to chdir_resource.pyc
skipping byte-compilation of
/Library/Python/2.6/site-packages/py2app-0.5.2-py2.6.egg/py2app/bootstrap/disable_linecache.py
to disable_linecache.pyc
skipping byte-compilation of
/home/users/estartu/projekte/acf/vereinsverwaltung/verwaltung.py to
verwaltung.pyc
*** creating application bundle: ACFVereinsverwaltung ***
Traceback (most recent call last):
File
"/Library/Python/2.6/site-packages/py2app-0.5.2-py2.6.egg/py2app/build_app.py",
line 604, in _run
self.run_normal()
File
"/Library/Python/2.6/site-packages/py2app-0.5.2-py2.6.egg/py2app/build_app.py",
line 675, in run_normal
self.create_binaries(py_files, pkgdirs, extensions, loader_files)
File
"/Library/Python/2.6/site-packages/py2app-0.5.2-py2.6.egg/py2app/build_app.py",
line 772, in create_binaries
target, arcname, pkgexts, copyexts, target.script)
File
"/Library/Python/2.6/site-packages/py2app-0.5.2-py2.6.egg/py2app/build_app.py",
line 1207, in build_executable
appdir, resdir, plist = self.create_bundle(target, script)
File
"/Library/Python/2.6/site-packages/py2app-0.5.2-py2.6.egg/py2app/build_app.py",
line 1130, in create_bundle
use_runtime_preference=use_runtime_preference
File
"/Library/Python/2.6/site-packages/py2app-0.5.2-py2.6.egg/py2app/build_app.py",
line 1119, in create_appbundle
extension=self.extension,
File
"/Library/Python/2.6/site-packages/py2app-0.5.2-py2.6.egg/py2app/create_appbundle.py",
line 34, in create_appbundle
copy(srcmain, destmain)
File
"/Library/Python/2.6/site-packages/py2app-0.5.2-py2.6.egg/py2app/util.py",
line 233, in mergecopy
return macholib.util.mergecopy(src, dest)
File "build/bdist.macosx-10.3-fat/egg/macholib/util.py", line 111, in
mergecopy
copy2(src, dest)
File "build/bdist.macosx-10.3-fat/egg/macholib/util.py", line 43, in copy2
shutil.copy2(fsencoding(src), fsencoding(dst))
File
"/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/shutil.py",
line 100, in copy2
copystat(src, dst)
File
"/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/shutil.py",
line 77, in copystat
os.chflags(dst, st.st_flags)
OSError: [Errno 45] Operation not supported:
'/home/users/estartu/projekte/acf/vereinsverwaltung/dist/ACFVereinsverwaltung.app/Contents/MacOS/Vereinsverwaltung'
>
/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/shutil.py(77)copystat()
-> os.chflags(dst, st.st_flags)
(Pdb)
ctrl-d and python setup.py py2app producers another error message
running py2app
*** filtering dependencies ***
242 total
238 filtered
0 orphaned
4 remaining
*** create binaries ***
*** byte compile python files ***
skipping byte-compilation of
/Library/Python/2.6/site-packages/py2app-0.5.2-py2.6.egg/py2app/bootstrap/boot_app.py
to boot_app.pyc
skipping byte-compilation of
/Library/Python/2.6/site-packages/py2app-0.5.2-py2.6.egg/py2app/bootstrap/chdir_resource.py
to chdir_resource.pyc
skipping byte-compilation of
/Library/Python/2.6/site-packages/py2app-0.5.2-py2.6.egg/py2app/bootstrap/disable_linecache.py
to disable_linecache.pyc
skipping byte-compilation of
/home/users/estartu/projekte/acf/vereinsverwaltung/verwaltung.py to
verwaltung.pyc
*** creating application bundle: ACFVereinsverwaltung ***
Traceback (most recent call last):
File
"/Library/Python/2.6/site-packages/py2app-0.5.2-py2.6.egg/py2app/build_app.py",
line 604, in _run
self.run_normal()
File
"/Library/Python/2.6/site-packages/py2app-0.5.2-py2.6.egg/py2app/build_app.py",
line 675, in run_normal
self.create_binaries(py_files, pkgdirs, extensions, loader_files)
File
"/Library/Python/2.6/site-packages/py2app-0.5.2-py2.6.egg/py2app/build_app.py",
line 772, in create_binaries
target, arcname, pkgexts, copyexts, target.script)
File
"/Library/Python/2.6/site-packages/py2app-0.5.2-py2.6.egg/py2app/build_app.py",
line 1207, in build_executable
appdir, resdir, plist = self.create_bundle(target, script)
File
"/Library/Python/2.6/site-packages/py2app-0.5.2-py2.6.egg/py2app/build_app.py",
line 1130, in create_bundle
use_runtime_preference=use_runtime_preference
File
"/Library/Python/2.6/site-packages/py2app-0.5.2-py2.6.egg/py2app/build_app.py",
line 1119, in create_appbundle
extension=self.extension,
File
"/Library/Python/2.6/site-packages/py2app-0.5.2-py2.6.egg/py2app/create_appbundle.py",
line 40, in create_appbundle
copyfn=copy,
File
"/Library/Python/2.6/site-packages/py2app-0.5.2-py2.6.egg/py2app/util.py",
line 237, in mergetree
return macholib.util.mergetree(src, dst, condition=condition,
copyfn=copyfn)
File "build/bdist.macosx-10.3-fat/egg/macholib/util.py", line 145, in
mergetree
raise IOError(errors)
IOError:
[('/Library/Python/2.6/site-packages/py2app-0.5.2-py2.6.egg/py2app/apptemplate/lib/__error__.sh',
'/home/users/estartu/projekte/acf/vereinsverwaltung/dist/ACFVereinsverwaltung.app/Contents/Resources/__error__.sh',
OSError(45, 'Operation not supported')),
('/Library/Python/2.6/site-packages/py2app-0.5.2-py2.6.egg/py2app/apptemplate/lib/site.py',
'/home/users/estartu/projekte/acf/vereinsverwaltung/dist/ACFVereinsverwaltung.app/Contents/Resources/site.py',
OSError(45, 'Operation not supported')),
('/Library/Python/2.6/site-packages/py2app-0.5.2-py2.6.egg/py2app/apptemplate/lib/site.pyc',
'/home/users/estartu/projekte/acf/vereinsverwaltung/dist/ACFVereinsverwaltung.app/Contents/Resources/site.pyc',
OSError(45, 'Operation not supported'))]
>
/home/users/estartu/projekte/acf/vereinsverwaltung/build/bdist.macosx-10.3-fat/egg/macholib/util.py(145)mergetree()
(Pdb)
again ctrl-d an restart runs without error
running py2app
*** filtering dependencies ***
242 total
238 filtered
0 orphaned
4 remaining
*** create binaries ***
*** byte compile python files ***
skipping byte-compilation of
/Library/Python/2.6/site-packages/py2app-0.5.2-py2.6.egg/py2app/bootstrap/boot_app.py
to boot_app.pyc
skipping byte-compilation of
/Library/Python/2.6/site-packages/py2app-0.5.2-py2.6.egg/py2app/bootstrap/chdir_resource.py
to chdir_resource.pyc
skipping byte-compilation of
/Library/Python/2.6/site-packages/py2app-0.5.2-py2.6.egg/py2app/bootstrap/disable_linecache.py
to disable_linecache.pyc
skipping byte-compilation of
/home/users/estartu/projekte/acf/vereinsverwaltung/verwaltung.py to
verwaltung.pyc
*** creating application bundle: ACFVereinsverwaltung ***
copying verwaltung.py ->
/home/users/estartu/projekte/acf/vereinsverwaltung/dist/ACFVereinsverwaltung.app/Contents/Resources
creating
/home/users/estartu/projekte/acf/vereinsverwaltung/dist/ACFVereinsverwaltung.app/Contents/Resources/lib
creating
/home/users/estartu/projekte/acf/vereinsverwaltung/dist/ACFVereinsverwaltung.app/Contents/Resources/lib/python2.6
copying
build/bdist.macosx-10.6-universal/python2.6-semi_standalone/app/site-packages.zip
->
/home/users/estartu/projekte/acf/vereinsverwaltung/dist/ACFVereinsverwaltung.app/Contents/Resources/lib/python2.6
creating
/home/users/estartu/projekte/acf/vereinsverwaltung/dist/ACFVereinsverwaltung.app/Contents/Resources/lib/python2.6/lib-dynload
creating
/home/users/estartu/projekte/acf/vereinsverwaltung/dist/ACFVereinsverwaltung.app/Contents/Frameworks
stripping Vereinsverwaltung
stripping saved 33768 bytes (173528 / 207296)
i have stipped my .py file to do nothing at all, no imports just an
empty .py file still the app produces an abort trap error
Process: Vereinsverwaltung [1567]
Path:
/home/users/estartu/projekte/acf/vereinsverwaltung/dist/ACFVereinsverwaltung.app/Contents/MacOS/Vereinsverwaltung
Identifier: com.acf.vereinsverwaltung
Version: 0.0.1 (0.0.0)
Code Type: X86 (Native)
Parent Process: launchd [98]
Date/Time: 2011-02-03 14:51:30.293 +0100
OS Version: Mac OS X 10.6.6 (10J567)
Report Version: 6
Interval Since Last Report: 9498 sec
Crashes Since Last Report: 12
Per-App Crashes Since Last Report: 6
Anonymous UUID: 8877B2B8-9749-4AB2-B12A-4A6408A8D4E4
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Application Specific Information:
__abort() called
Thread 0 Crashed: Dispatch queue: com.apple.main-thread
0 libSystem.B.dylib 0x96a18176 __kill + 10
1 libSystem.B.dylib 0x96a18168 kill$UNIX2003 + 32
2 libSystem.B.dylib 0x96aaa89d raise + 26
3 libSystem.B.dylib 0x96ac0951 __abort + 124
4 libSystem.B.dylib 0x96aa362c
release_file_streams_for_task + 0
5 com.acf.vereinsverwaltung 0x00003f25 start + 10393
6 com.acf.vereinsverwaltung 0x0000699e start + 21266
7 com.acf.vereinsverwaltung 0x00006f8c main + 285
8 com.acf.vereinsverwaltung 0x000016c2 start + 54
Thread 1: Dispatch queue: com.apple.libdispatch-manager
0 libSystem.B.dylib 0x969dd982 kevent + 10
1 libSystem.B.dylib 0x969de09c _dispatch_mgr_invoke + 215
2 libSystem.B.dylib 0x969dd559 _dispatch_queue_invoke
+ 163
3 libSystem.B.dylib 0x969dd2fe
_dispatch_worker_thread2 + 240
4 libSystem.B.dylib 0x969dcd81 _pthread_wqthread + 390
5 libSystem.B.dylib 0x969dcbc6 start_wqthread + 30
Thread 2:
0 libSystem.B.dylib 0x969dca12 __workq_kernreturn + 10
1 libSystem.B.dylib 0x969dcfa8 _pthread_wqthread + 941
2 libSystem.B.dylib 0x969dcbc6 start_wqthread + 30
Thread 0 crashed with X86 Thread State (32-bit):
eax: 0x00000000 ebx: 0x96ac08e1 ecx: 0xbfffe86c edx: 0x96a18176
edi: 0x00000000 esi: 0x00000000 ebp: 0xbfffe888 esp: 0xbfffe86c
ss: 0x0000001f efl: 0x00000282 eip: 0x96a18176 cs: 0x00000007
ds: 0x0000001f es: 0x0000001f fs: 0x00000000 gs: 0x00000037
cr2: 0xffe178e8
Binary Images:
0x1000 - 0x7ff7 +com.acf.vereinsverwaltung 0.0.1 (0.0.0)
<6EA54C30-8072-41D2-C8FE-5938B665F31E>
/home/users/estartu/projekte/acf/vereinsverwaltung/dist/ACFVereinsverwaltung.app/Contents/MacOS/Vereinsverwaltung
0x8fe00000 - 0x8fe4162b dyld 132.1 (???)
<749D24EE-54BD-D74B-D305-C13F5E6C95D8> /usr/lib/dyld
0x9201f000 - 0x92022fe7 libmathCommon.A.dylib 315.0.0 (compatibility
1.0.0) <1622A54F-1A98-2CBE-B6A4-2122981A500E>
/usr/lib/system/libmathCommon.A.dylib
0x9218c000 - 0x92239fe7 libobjc.A.dylib 227.0.0 (compatibility 1.0.0)
<C8925910-B927-968B-4B71-D83A4CEF8646> /usr/lib/libobjc.A.dylib
0x925e3000 - 0x92629ff7 libauto.dylib ??? (???)
<29422A70-87CF-10E2-CE59-FEE1234CFAAE> /usr/lib/libauto.dylib
0x93a31000 - 0x93a3ffe7 libz.1.dylib 1.2.3 (compatibility 1.0.0)
<33C1B260-ED05-945D-FC33-EF56EC791E2E> /usr/lib/libz.1.dylib
0x969b6000 - 0x96b5dff7 libSystem.B.dylib 125.2.1 (compatibility 1.0.0)
<4FFBF71A-D603-3C64-2BC6-BFBFFFD562F0> /usr/lib/libSystem.B.dylib
0x97b47000 - 0x97bb1fe7 libstdc++.6.dylib 7.9.0 (compatibility 7.0.0)
<411D87F4-B7E1-44EB-F201-F8B4F9227213> /usr/lib/libstdc++.6.dylib
0x982e4000 - 0x9845ffe7 com.apple.CoreFoundation 6.6.4 (550.42)
<C78D5079-663E-9734-7AFA-6CE79A0539F1>
/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x98dfe000 - 0x98f80fe7 libicucore.A.dylib 40.0.0 (compatibility 1.0.0)
<35DB7644-0780-D2AB-F6A9-45F28D2D434A> /usr/lib/libicucore.A.dylib
0xffff0000 - 0xffff1fff libSystem.B.dylib ??? (???)
<4FFBF71A-D603-3C64-2BC6-BFBFFFD562F0> /usr/lib/libSystem.B.dylib
Model: iMac4,1, BootROM IM41.0055.B08, 2 processors, Intel Core Duo, 2
GHz, 1,5 GB, SMC 1.1f5
Graphics: ATI Radeon X1600, ATY,RadeonX1600, PCIe, 128 MB
Memory Module: global_name
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x89),
Broadcom BCM43xx 1.0 (5.10.131.36.1)
Bluetooth: Version 2.3.8f7, 2 service, 12 devices, 1 incoming serial ports
Network Service: Ethernet, Ethernet, en0
Serial ATA Device: WDC WD2500JS-40NGB2, 232,89 GB
Parallel ATA Device: MATSHITADVD-R UJ-846
USB Device: Built-in iSight, 0x05ac (Apple Inc.), 0x8501, 0xfd400000
USB Device: iPhone, 0x05ac (Apple Inc.), 0x1294, 0xfd300000
USB Device: Hub in Apple Pro Keyboard, 0x05ac (Apple Inc.), 0x1003,
0x1d100000
USB Device: Apple Optical USB Mouse, 0x05ac (Apple Inc.), 0x0304,
0x1d110000
USB Device: Apple Pro Keyboard, 0x05ac (Apple Inc.), 0x020c, 0x1d130000
USB Device: Bluetooth USB Host Controller, 0x05ac (Apple Inc.), 0x8206,
0x7d100000
USB Device: IR Receiver, 0x05ac (Apple Inc.), 0x8240, 0x7d200000
the setup.py locks like this
"""
This is a setup.py script generated by py2applet
Usage:
python setup.py py2app
"""
import os, sys
from setuptools import setup
APP = ['verwaltung.py']
DATA_FILES = []
OPTIONS = {'plist': dict(CFBundleName =
"ACFVereinsverwaltung",
CFBundleShortVersionString = "0.0.1", #
must be in X.X.X format
CFBundleGetInfoString =
"ACFVereinsverwaltung 0.0.1",
CFBundleExecutable = "Vereinsverwaltung",
CFBundleIdentifier =
"com.acf.vereinsverwaltung",
)
# ,'packages': 'wx'
# ,'site_packages': True
}
setup(app=APP
,data_files=DATA_FILES
,options={'py2app': OPTIONS}
,setup_requires=['py2app']
)
I don't understand whats going wrong with py2app.
Regards
Gerhard
More information about the Pythonmac-SIG
mailing list