Hi, I am new to zope, and find it difficult to get around errors. Here I have a problem I don't understand : I have a "parse.py" file which parse xml files with sax this script is working when I run it outside or Zope from the unix shell when I try to call it as an external method I got the error : Attribute error 'xml.sax.expatreader' module has no attribute 'create_parser' It's look like some import not done ? has anybody an hint ? thanks -- _/ _/ _/_/_/ _/_/ Michel.Vayssade@UTC.fr Service Informatique _/ _/ _/ _/ T:33/0-3.44.23.49.24 Universite de Technologie _/ _/ _/ _/ F:33/0-3.44.23.46.77 BP 20.529 60205 Compiegne _/_/ _/ _/_/ _ mv@utc.fr __/www.utc.fr/~vayssade____ France
Zope comes with it's own version of expat, and if you've installed ParsedXML then you'll have yet another expat version. ----- Original Message ----- From: "Michel Vayssade" <michel.vayssade@utc.fr> To: <zope@zope.org> Sent: Thursday, October 11, 2001 10:25 AM Subject: [Zope] pqrsing with sax
Hi,
I am new to zope, and find it difficult to get around errors. Here I have a problem I don't understand :
I have a "parse.py" file which parse xml files with sax
this script is working when I run it outside or Zope from the unix shell
when I try to call it as an external method I got the error : Attribute error 'xml.sax.expatreader' module has no attribute 'create_parser'
It's look like some import not done ?
has anybody an hint ? thanks
-- _/ _/ _/_/_/ _/_/ Michel.Vayssade@UTC.fr Service Informatique _/ _/ _/ _/ T:33/0-3.44.23.49.24 Universite de Technologie _/ _/ _/ _/ F:33/0-3.44.23.46.77 BP 20.529 60205 Compiegne _/_/ _/ _/_/ _ mv@utc.fr __/www.utc.fr/~vayssade____ France
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
On Thu, 11 Oct 2001, Phil Harris wrote:
Zope comes with it's own version of expat, and if you've installed ParsedXML then you'll have yet another expat version.
ok, so ther is 2 expatreader files on the machine, and : 1) how can I find which one is used by zope, the one on the base python, or the one which comes in the Zope directory ? 2) they are identical, they both have a create_parser method : [zope@virgo Extensions]$ grep create_parser /usr/local/Zope-2.4.0-linux2-x86/lib/python2.1/xml/sax/expatreader.py def create_parser(*args, **kwargs): so the method is here, why this module has no attribute 'create_parser' Does one have some sort of special import or the like to do, to get an external method (or a Zope Product method) working as standard python code ?
----- Original Message ----- From: "Michel Vayssade" <michel.vayssade@utc.fr>
I have a "parse.py" file which parse xml files with sax this script is working when I run it outside or Zope when I try to call it as an external method I got the error : Attribute error 'xml.sax.expatreader' module has no attribute 'create_parser'
-- _/ _/ _/_/_/ _/_/ Michel.Vayssade@UTC.fr Service Informatique _/ _/ _/ _/ T:33/0-3.44.23.49.24 Universite de Technologie _/ _/ _/ _/ F:33/0-3.44.23.46.77 BP 20.529 60205 Compiegne _/_/ _/ _/_/ _ mv@utc.fr __/www.utc.fr/~vayssade____ France
participants (2)
-
Michel Vayssade -
Phil Harris