[Libvir] Still can't run a simple python test libvirt !

Omer Khalid Omer.Khalid at cern.ch
Tue Dec 19 16:02:35 UTC 2006


Aha.. I thought so :-)

Ok.. I will try to deploy this with later Python versions (2.5) perhaps!

Thanks !

Omer

On 12/19/06, Daniel P. Berrange <berrange at redhat.com> wrote:
>
> On Tue, Dec 19, 2006 at 04:40:43PM +0100, Omer Khalid wrote:
> > Thank you Daniel! So setting up the PYTHONPATH variable did the trick!
> > Although the simple test executes, but with an interesting error
> complaining
> > about an undefined symbol in libvirtmod.so
> >
> > [root at lcgctb9 libvirt]# python testLibvirt.py
> > Traceback (most recent call last):
> >  File "testLibvirt.py", line 1, in ?
> >    import libvirt
> >  File "/usr/local/lib/python2.3/site-packages/libvirt.py", line 7, in ?
> >    import libvirtmod
> > ImportError: /usr/local/lib/python2.3/site-packages/libvirtmod.so:
> undefined
> > symbol: PyEval_ThreadsInitialized
>
> Hmm, you're using ancient Python 2.3 there. The PyEval_ThreadsInitialized
> function
> which we use to make threading work in libvirt was new in Python 2.4, so
> looks
> like you're out of luck trying to use Python 2.3
>
> Dan.
> --
> |=- Red Hat, Engineering, Emerging Technologies, Boston.  +1 978 392 2496
> -=|
> |=-           Perl modules: http://search.cpan.org/~danberr/
>               -=|
> |=-               Projects: http://freshmeat.net/~danielpb/
> -=|
> |=-  GnuPG: 7D3B9505   F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B
> 9505  -=|
>



-- 
---------------------------------------------------------------


CERN – European Organization for Nuclear Research
Information Technology Department
CH-1211 Geneva 23

Phone: +41 (0) 22 767 7996
Fax:     +41 (0) 22 767 4900
E-mail : Omer.Khalid at cern.ch
Homepage: http://cern.ch/Omer.Khalid
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20061219/b41b805b/attachment-0001.htm>


More information about the libvir-list mailing list