[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pythonmac-sig
Subject:    Re: [Pythonmac-SIG] py2app ImportError
From:       Ronald Oussoren <ronaldoussoren () mac ! com>
Date:       2007-02-06 19:39:56
Message-ID: AC845B52-6D65-48A9-B969-E899EF431AD4 () mac ! com
[Download RAW message or body]


On 6 Feb, 2007, at 10:35, Erwin Marsi wrote:

>
> On Feb 6, 2007, at 10:23, Ronald Oussoren wrote:
>
>>
>> How does ielemtree import ElementTree? Does it use an import  
>> statement or does it call __import__ directly? py2app can only  
>> detect imports that are done using the import statement.
>>
>>
>> Ronald
>
> It uses a normal import statement:
>
> from xml.etree.cElementTree import ElementTree

I found the problem, xml.etree.cElementTree imports _elementtree, a C  
extension. That extension does a number of imports from C which  
py2app doesn't know about and cannot find out about automaticly.

I've checked in a fix, if you upgrade modulegraph to the current  
trunk all should be fine ("easy_install-2.5 modulegraph==dev").

Ronald

_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic