[OpenSIPS-Users] upgrade to openxcap 1.0.2 failed
Denis Bilenko
denis at ag-projects.com
Tue Oct 7 07:37:32 CEST 2008
You can also try to install pyxml manually, with "sudo python setup.py
install".
pyxml library provides _xmlplus package, which contains the same classes as
xml package in Python's standard library, but with a bit different
implementation.
In particular, expat parser in _xmlplus implements the desirable
feature, while
the standard one does not.
When _xmlplus is present and of adequate version, xml package uses it
instead of self:
http://svn.python.org/view/python/tags/r252/Lib/xml/__init__.py?rev=60915&view=auto
So you have to ensure that "import _xmlplus" works with your Python.
More info here:
http://www.amk.ca/diary/2003/03/pythons__xmlplus_hack.html
The older versions of OpenXCAP also required _xmlplus. However, they
didn't check at
startup that it was present, so they would fail on element operation
with unclear error:
http://openxcap.org/ticket/50
Juha Heinanen wrote:
> Denis Bilenko writes:
>
> > You have to install pyxml library (on Debian it is provided by
> > python-xml package).
>
> denis,
>
> thanks for the tip. i has python-xml package installed, but it turns out
> the path where the stuff is installed on hardy is
>
> /usr/lib/pyshared/oldxml/_xmlplus
>
> instead of
>
> /usr/share/pyshared/_xmlplus
>
> of debian lenny.
>
> i don't know why it is under oldxml, because there is no "new" files of
> the same name elsewhere.
>
> i'll try to install lenny's python-xml package on hardy.
>
> -- juha
>
More information about the Users
mailing list