[Pythonmac-SIG] py2app error

Ronald Oussoren ronaldoussoren at mac.com
Thu Jul 29 08:34:17 CEST 2010


On 29 Jul, 2010, at 8:09, Ronald Oussoren wrote:

> 
> On 28 Jul, 2010, at 18:38, Nathan Lemoine wrote:
> 
>> 
>> Traceback (most recent call last):
>> File "/Library/Python/2.5/site-packages/py2app-0.5-py2.5.egg/py2app/build_app.py", line 602, in _run
>>   self.run_alias()
>> File "/Library/Python/2.5/site-packages/py2app-0.5-py2.5.egg/py2app/build_app.py", line 548, in run_alias
>>   dst = self.build_alias_executable(target, target.script)
>> File "/Library/Python/2.5/site-packages/py2app-0.5-py2.5.egg/py2app/build_app.py", line 1145, in build_alias_executable
>>   appdir, resdir, plist = self.create_bundle(target, script)
>> File "/Library/Python/2.5/site-packages/py2app-0.5-py2.5.egg/py2app/build_app.py", line 1131, in create_bundle
>>   use_runtime_preference=use_runtime_preference
>> File "/Library/Python/2.5/site-packages/py2app-0.5-py2.5.egg/py2app/build_app.py", line 1120, in create_appbundle
>>   extension=self.extension,
>> File "/Library/Python/2.5/site-packages/py2app-0.5-py2.5.egg/py2app/create_appbundle.py", line 34, in create_appbundle
>>   copy(srcmain, destmain)
>> File "/Library/Python/2.5/site-packages/py2app-0.5-py2.5.egg/py2app/util.py", line 233, in mergecopy
>>   return macholib.util.mergecopy(src, dest)
>> File "build/bdist.macosx-10.5-i386/egg/macholib/util.py", line 111, in mergecopy
>>   copy2(src, dest)
>> File "build/bdist.macosx-10.5-i386/egg/macholib/util.py", line 43, in copy2
>>   shutil.copy2(fsencoding(src), fsencoding(dst))
>> File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/shutil.py", line 91, in copy2
>>   copyfile(src, dst)
>> File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/shutil.py", line 46, in copyfile
>>   fsrc = open(src, 'rb')
>> IOError: [Errno 2] No such file or directory: '/Library/Python/2.5/site-packages/py2app-0.5-py2.5.egg/py2app/apptemplate/prebuilt/main-i386'
>>> /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/shutil.py(53)copyfile()
>> -> fsrc.close()
>> 
>> I went into the Python Framework folder and the only prebuilt executeable in there is 32bit one, there isn't a main-i386 file. Am I missing a file?
> 
> You aren't missing a file, py2app doesn't have a main-i386 file.  As a quick workaround you can copy /Library/Python/2.5/site-packages/py2app-0.5-py2.5.egg/py2app/apptemplate/prebuilt/main-fat  to /Library/Python/2.5/site-packages/py2app-0.5-py2.5.egg/py2app/apptemplate/prebuilt/main-i386.
> 
> I will tweak py2app to better handle this, that will be in the next release (0.5.2, hopefully later this week).

I've upload py2app 0.5.2. With this version I can build a pyobjc application using python 2.5 (without the IOError exception), the pyglet error is not yet fixed.

Ronald

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3567 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/pythonmac-sig/attachments/20100729/005da29f/attachment.bin>


More information about the Pythonmac-SIG mailing list