[libvirt-users] Python Bindings for Python 2.7

Daniel Veillard veillard at redhat.com
Thu Jan 20 07:10:38 UTC 2011


On Thu, Jan 20, 2011 at 10:59:40AM +0530, vipul borikar wrote:
> Thanks for the Reply Matthias.
> 
> The  ./configure --with-python=/opt/Python2.7  worked.
> 
> But when i do make I go this error related with sax parser.
> 
> 
> 
> make[3]: Entering directory `/root/libvirt-0.8.4/python'
> /opt/Python-2.7//bin/python ./generator.py .
> Traceback (most recent call last):
>   File "./generator.py", line 1447, in <module>
>     if buildStubs() < 0:
>   File "./generator.py", line 567, in buildStubs
>     (parser, target)  = getparser()
>   File "./generator.py", line 35, in getparser
>     parser = xml.sax.make_parser()
>   File
> "/opt/Python-2.7/lib/python2.7/site-packages/_xmlplus/sax/sax2exts.py", line
> 37, in make_parser
>     return XMLParserFactory.make_parser(parser_list)
>   File
> "/opt/Python-2.7/lib/python2.7/site-packages/_xmlplus/sax/saxexts.py", line
> 75, in make_parser
>     sys.modules[parser_name].create_parser = _create_parser
[...]
> > > I have python 2.4 rpm installed but i dont use it. I use Python 2.7
> > source
> > > compiled version.

  seems your hand compiled version of python has a problem and
lacks XML/expat support. Unrelated to libvirt, Fedora uses Python
2.7 and I have no problem with it.

Daniel

-- 
Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
daniel at veillard.com  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/




More information about the libvirt-users mailing list