[Pythonmac-SIG] py2app 0.4.2 recipe errors

michael ferraro michael at possibleworlds.com
Sun Jan 13 18:27:12 CET 2008


thanks for your efforts

m


On Jan 13, 2008, at 9:28 AM, Ronald Oussoren wrote:

>
> On 12 Jan, 2008, at 19:35, Edward Hartley wrote:
>
>> Hi Ronald,
>> further to my previous on py2app modulegraph
>>
>> With these changes  py2app is not  to working at all.
>
> Arghh.... I guess my merge of the version of py2app and friends from  
> Leopard wasn't complete. I'm currently working on some cleanups in  
> the pyobjc repository and a port of pyobjc to 64-bit PPC and will  
> look into this issue when that's  finished. With some luck that will  
> be later today.
>
> BTW.  Thank's for mentioning that the PyAvenger sample is broken as  
> well, that will make it a lot easier to debug the problem.
>
> Ronald
>
>>
>> Constructive suggestions would be welcomed detail follows.
>>
>> So having changed py2app setup.py
>> from
>>
>>     install_requires=[
>>         "altgraph>=0.6.7",
>>         "modulegraph>=0.7.2",
>>         "macholib>=1.1",
>>         "bdist_mpkg>=0.4",
>>     ],
>>
>> to
>>     install_requires=[
>>         "altgraph>=0.6.7",
>>         "modulegraph>=0.7.2.dev-r21",
>>         "macholib>=1.1",
>>         "bdist_mpkg>=0.4",
>>     ],
>>
>>
>> and updating setuptools and checking modulegraph >=0.7.2 i.e.  
>> 0.7.2.dev-r21
>> as shown here:
>>
>> sudo easy_install --upgrade setuptools
>> Password:
>> Processing setuptools
>> Running setup.py -q bdist_egg --dist-dir /Users/edh/AnonCVS/ 
>> setuptools/setuptools/egg-dist-tmp-1stpfV
>> setuptools 0.7a1dev-r59683 is already the active version in easy- 
>> install.pth
>> Installing easy_install script to /Library/Frameworks/ 
>> Python.framework/Versions/2.5/bin
>> Installing easy_install-2.5 script to /Library/Frameworks/ 
>> Python.framework/Versions/2.5/bin
>>
>> Installed /Library/Frameworks/Python.framework/Versions/2.5/lib/ 
>> python2.5/site-packages/setuptools-0.7a1dev_r59683-py2.5.egg
>> Processing dependencies for setuptools==0.7a1dev-r59683
>> Finished processing dependencies for setuptools==0.7a1dev-r59683
>> mirrorman:~/AnonCVS/setuptools edh$ sudo easy_install --upgrade  
>> modulegraph
>> Searching for modulegraph
>> Reading http://pypi.python.org/simple/modulegraph/
>> Reading http://undefined.org/python/#modulegraph
>> Best match: modulegraph 0.7.2.dev-r21
>> Processing modulegraph-0.7.2.dev_r21-py2.5.egg
>> modulegraph 0.7.2.dev-r21 is already the active version in easy- 
>> install.pth
>>
>>
>>
>>
>>
>> Now Running
>>
>>  ~/PyObjC/OpenGLDemo edh$ python setup.py py2app
>>
>> Shows these errors from modulegraph so is 0.7.2.dev-r21 not the  
>> correct  version or is there another problem?
>>
>> running py2app
>> Traceback (most recent call last):
>>   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
>> python2.5/site-packages/py2app-0.4.2-py2.5.egg/py2app/ 
>> build_app.py", line 579, in _run
>>     self.run_normal()
>>   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
>> python2.5/site-packages/py2app-0.4.2-py2.5.egg/py2app/ 
>> build_app.py", line 631, in run_normal
>>     mf = self.get_modulefinder()
>>   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
>> python2.5/site-packages/py2app-0.4.2-py2.5.egg/py2app/ 
>> build_app.py", line 539, in get_modulefinder
>>     debug=debug,
>>   File "build/bdist.macosx-10.3-fat/egg/modulegraph/ 
>> find_modules.py", line 255, in find_modules
>>     find_needed_modules(mf, scripts, includes, packages)
>>   File "build/bdist.macosx-10.3-fat/egg/modulegraph/ 
>> find_modules.py", line 176, in find_needed_modules
>>     mf.run_script(path)
>>   File "build/bdist.macosx-10.3-fat/egg/modulegraph/ 
>> modulegraph.py", line 369, in run_script
>>     self.scan_code(co, m)
>>   File "build/bdist.macosx-10.3-fat/egg/modulegraph/ 
>> modulegraph.py", line 638, in scan_code
>>     self.scan_code(c, m)
>>   File "build/bdist.macosx-10.3-fat/egg/modulegraph/ 
>> modulegraph.py", line 610, in scan_code
>>     self._safe_import_hook(name, m, fromlist)
>>   File "build/bdist.macosx-10.3-fat/egg/modulegraph/ 
>> modulegraph.py", line 540, in _safe_import_hook
>>     mods = self.import_hook(name, caller)
>>   File "build/bdist.macosx-10.3-fat/egg/modulegraph/ 
>> modulegraph.py", line 380, in import_hook
>>     q, tail = self.find_head_package(parent, name)
>>   File "build/bdist.macosx-10.3-fat/egg/modulegraph/ 
>> modulegraph.py", line 419, in find_head_package
>>     q = self.import_module(head, qname, parent)
>>   File "build/bdist.macosx-10.3-fat/egg/modulegraph/ 
>> modulegraph.py", line 493, in import_module
>>     parent and parent.packagepath, parent)
>>   File "build/bdist.macosx-10.3-fat/egg/modulegraph/ 
>> modulegraph.py", line 680, in find_module
>>     fp, buf, stuff = find_module(name, path)
>>   File "build/bdist.macosx-10.3-fat/egg/modulegraph/ 
>> modulegraph.py", line 114, in find_module
>>     if isinstance(importer, pkg_resources.ImpWrapper):
>> AttributeError: 'module' object has no attribute 'ImpWrapper'
>>
>> It also is broken when building Apple's Xcode example PyAverager  
>> which previously worked.
>> Both from their web site files and my recreation of it.
>> Removing py2app 0.4.2 and reverting to 0.3.6 fixes that IIRC rev 66  
>> still worked with Xcode
>>
>> Best Regards
>> Ed
>>
>>
>> On 12 Jan 2008, at 06:54, Ronald Oussoren wrote:
>>
>>>
>>> On 10 Jan, 2008, at 12:44, Edward Hartley wrote:
>>>
>>>>
>>>> On 10 Jan 2008, at 11:00, pythonmac-sig-request at python.org wrote:
>>>>
>>>>> When replying, please edit your Subject line so it is more  
>>>>> specific
>>>>> than "Re: Contents of Pythonmac-SIG digest..."
>>>>> Today's Topics:
>>>>>
>>>>>    1. Re: py2app 0.4.2 recipe errors (Ronald Oussoren)
>>>>>    2. Re: creating PyObjC wrapper for ObjC framework? (Ronald  
>>>>> Oussoren)
>>>>>
>>>>> From: Ronald Oussoren <ronaldoussoren at mac.com>
>>>>> Date: 10 January 2008 06:49:32 GMT
>>>>> To: michael ferraro <michael at possibleworlds.com>
>>>>> Cc: pythonmac-sig at python.org
>>>>> Subject: Re: [Pythonmac-SIG] py2app 0.4.2 recipe errors
>>>>>
>>>>>
>>>>> It should work again
>>>>>
>>>>> Ronald
>>>>>
>>>> Does this mean the cvs for py2app has been updated?
>>>
>>> Of course. What else could I mean?
>>>
>>> Ronald
>>>
>>
>
> _______________________________________________
> Pythonmac-SIG maillist  -  Pythonmac-SIG at python.org
> http://mail.python.org/mailman/listinfo/pythonmac-sig

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/pythonmac-sig/attachments/20080113/328e43de/attachment.htm 


More information about the Pythonmac-SIG mailing list