RE: [Zope] Re: silva, xmlwidgets, parsedxml
[ garry saddington]
I still cannot get these to work even though i have the latest pyXML installed. The error message is:
'can't import name expat'
Do you have to copy any of the filesystem python components into the zope install? Has anyone else had this problem?
The install of PyXML normally goes into the regular Python installation, not Zope's. Although not everyone agrees, I think it is easiest just to copy the PyXML stuff into the Zope installation. PyXML uses some tricks to integrate its XML paths into Python's (so that it can replace the standard Python xml libraries) but basically you are looking for the "_xmlplus" directory tree. Cheers, Tom P
On Monday 14 April 2003 19:34, Passin, Tom wrote:
[ garry saddington]
I still cannot get these to work even though i have the latest pyXML installed. The error message is:
'can't import name expat'
Do you have to copy any of the filesystem python components into the zope install? Has anyone else had this problem?
The install of PyXML normally goes into the regular Python installation, not Zope's. Although not everyone agrees, I think it is easiest just to copy the PyXML stuff into the Zope installation.
PyXML uses some tricks to integrate its XML paths into Python's (so that it can replace the standard Python xml libraries) but basically you are looking for the "_xmlplus" directory tree.
Cheers,
Tom P Thanks I have spent a long time struggling with this problem, including many fruitless searches through the documentation at Zope.org, does it need a note in the Silva installation instructions to prevent this from happening to anyone else?
regards garry
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Passin, Tom wrote at 2003-4-14 14:34 -0400:
I still cannot get these to work even though i have the latest pyXML installed. The error message is:
'can't import name expat'
Do you have to copy any of the filesystem python components into the zope install? Has anyone else had this problem?
The install of PyXML normally goes into the regular Python installation, not Zope's. Although not everyone agrees, I think it is easiest just to copy the PyXML stuff into the Zope installation.
PyXML uses some tricks to integrate its XML paths into Python's (so that it can replace the standard Python xml libraries) but basically you are looking for the "_xmlplus" directory tree.
When I remember right, "PyXML" supports distutils. Then, the only thing you must case for is to call "setup.py" with the correct Python... Dieter
On Tuesday 15 April 2003 21:02, Dieter Maurer wrote:
Passin, Tom wrote at 2003-4-14 14:34 -0400:
I still cannot get these to work even though i have the latest pyXML installed. The error message is:
'can't import name expat'
Do you have to copy any of the filesystem python components into the zope install? Has anyone else had this problem?
The install of PyXML normally goes into the regular Python installation, not Zope's. Although not everyone agrees, I think it is easiest just to copy the PyXML stuff into the Zope installation.
PyXML uses some tricks to integrate its XML paths into Python's (so that it can replace the standard Python xml libraries) but basically you are looking for the "_xmlplus" directory tree.
When I remember right, "PyXML" supports distutils.
Then, the only thing you must case for is to call "setup.py" with the correct Python...
Dieter
I've finally sorted this out. I called setup.py with the zope python and it installed the pyXML into /zope/lib/python2.1/site-packages which mirrors what it does when installed into the normal filesystem. This still did not work! Renaming the _xmlplus directory to xml as indicated by some of the python scripts in parsedXML did not work, but when the whole directory (as 'xml') was copied to /zope/lib/python (in the same directory as Products) it worked. The installation instructions for all the products that rely on pyXML only say that it needs to be installed, they do not specify how! Do we need a how to for this? regards garry
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
participants (3)
-
Dieter Maurer -
garry saddington -
Passin, Tom