Hi,<br><br>I have the following code working on libvirt 0.1.9:<br><br>########################################<br>conn = libvirt.openReadOnly(None)<br>            if conn == None:<br>                print 'Failed to open connection to the hypervisor'
<br>                #sys.exit(1)<br><br>            try:<br>                domains = conn.listDomainsID()<br>                num  = conn.numOfDomains()<br>            except:<br>                print 'Failed to find the list of domains'
<br><br>for i in range(num):<br>                try:<br>                    <span style="background-color: rgb(255, 255, 204);">dom0 = conn.lookupByID(domains[i])</span><br style="background-color: rgb(255, 255, 204);"><span style="background-color: rgb(255, 255, 204);">
                    domInfo = dom0.info()</span><br>except:<br>                    print "Unexpected error:", sys.exc_info()<br><br>##############################################<br><br>For legacy reason, I have to get it working on libvirt 
0.1.8 but I am constantly getting the following error:<br><br>Unexpected error: (<class libvirt.libvirtError at 0xb7f49f2c>, <libvirt.libvirtError instance at 0xb7f4f2cc>, <traceback object at 0xb7f44c5c>)
<br><br>Any help would be much appreciated!<br><br>Cheers<br>Omer<br><br clear="all"><br>-- <br>----------------------------------------------------------   <br>CERN – European Organization for Nuclear<br>Research, IT Department,  CH-1211
<br>Geneva 23, Switzerland<br><br>Phone: +41 (0) 22 767 2224<br>Fax:     +41 (0) 22 766 8683<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>