[OpenSIPS-Users] upgrade to openxcap 1.0.2 failed

Denis Bilenko denis at ag-projects.com
Wed Oct 8 12:49:43 CEST 2008


Juha Heinanen wrote:
> > To do so you'd just have to replace line 18 in xcap/element.py:
> > from xml import sax
> > with
> > from _xmlplus import sax
> >
> > and see if
> > 1. openxcap starts properly and
>
> no it doesn't because _xmlplus module is not found:
>
> root at taimen:~# openxcap --no-fork
> Starting OpenXCAP 1.0.3
> Traceback (most recent call last):
> File "/usr/bin/openxcap", line 55, in <module>
> from xcap.server import XCAPServer
> File "/usr/lib/python2.5/site-packages/xcap/server.py", line 17, in 
> <module>
> from xcap import authentication
> File "/usr/lib/python2.5/site-packages/xcap/authentication.py", line 
> 22, in <module>
> from xcap.appusage import getApplicationForURI, namespaces
> File "/usr/lib/python2.5/site-packages/xcap/appusage/__init__.py", 
> line 18, in <module>
> from xcap.element import XCAPElement, SelectorError
> File "/usr/lib/python2.5/site-packages/xcap/element.py", line 19, in 
> <module>
> from _xmlplus import sax
> ImportError: No module named _xmlplus
>
> i guess the reason is that _xmlplus module in hardy is in directory:
>
> /usr/lib/python2.5/site-packages/oldxml/_xmlplus
echo /usr/lib/python2.5/site-packages/oldxml/_xmlplus >> 
/usr/lib/python2.5/site-packages/xcap.pth

This will add the mentioned directory to sys.path.
>
> see this link:
>
> http://blog.mypapit.net/2008/05/ubuntu-hardy-python-xml-error.html
>
> it would be good if openxcap would not depend on this deprecated
> package.
I don't know of any alternatives, does anyone?
What's needed is a SAX parser with feature_namespace_prefixes implemented.

>
> -- juha




More information about the Users mailing list