Aha.. I thought so :-)<br><br>Ok.. I will try to deploy this with later Python versions (2.5) perhaps!<br><br>Thanks !<br><br>Omer<br><br><div><span class="gmail_quote">On 12/19/06, <b class="gmail_sendername">Daniel P. Berrange
</b> <<a href="mailto:berrange@redhat.com">berrange@redhat.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">On Tue, Dec 19, 2006 at 04:40:43PM +0100, Omer Khalid wrote:
<br>> Thank you Daniel! So setting up the PYTHONPATH variable did the trick!<br>> Although the simple test executes, but with an interesting error complaining<br>> about an undefined symbol in libvirtmod.so<br>>
<br>> [root@lcgctb9 libvirt]# python testLibvirt.py<br>> Traceback (most recent call last):<br>>  File "testLibvirt.py", line 1, in ?<br>>    import libvirt<br>>  File "/usr/local/lib/python2.3/site-packages/libvirt.py", line 7, in ?
<br>>    import libvirtmod<br>> ImportError: /usr/local/lib/python2.3/site-packages/libvirtmod.so: undefined<br>> symbol: PyEval_ThreadsInitialized<br><br>Hmm, you're using ancient Python 2.3 there. The PyEval_ThreadsInitialized function
<br>which we use to make threading work in libvirt was new in Python 2.4, so looks<br>like you're out of luck trying to use Python 2.3<br><br>Dan.<br>--<br>|=- Red Hat, Engineering, Emerging Technologies, Boston.  +1 978 392 2496 -=|
<br>|=-           Perl modules: <a href="http://search.cpan.org/~danberr/">http://search.cpan.org/~danberr/</a>              -=|<br>|=-               Projects: <a href="http://freshmeat.net/~danielpb/">http://freshmeat.net/~danielpb/
</a>               -=|<br>|=-  GnuPG: 7D3B9505   F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505  -=|<br></blockquote></div><br><br clear="all"><br>-- <br>---------------------------------------------------------------<br>
                                                                             <br>CERN – European Organization for Nuclear Research<br>Information Technology Department<br>CH-1211 Geneva 23 <br><br>Phone: +41 (0) 22 767 7996
<br>Fax:     +41 (0) 22 767 4900<br>E-mail : <a href="mailto:Omer.Khalid@cern.ch">Omer.Khalid@cern.ch</a><br>Homepage: <a href="http://cern.ch/Omer.Khalid">http://cern.ch/Omer.Khalid</a>