On 3 Feb, 2011, at 14:54, Gerhard Schmidt wrote: > 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)
This is very odd, it seems that the object copied into the application bundle is not a regular file. The other issues you're haveing are likely related to this. > > I don't understand whats going wrong with py2app. I don't understand as well. I'll try to reproduce your problem, hopefully I'll be able to do so and find a fix. Ronald _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG