[virt-tools-list] [BUG] [virt-manager] [tip] checking for virtinst fails

Jon Nordby jononor at gmail.com
Thu Nov 12 15:30:57 UTC 2009

Introduced by cfd9ab725445. Errormessage:

"Traceback (most recent call last):
  File "/home/jon/local/share/virt-manager/virt-manager.py", line 401, in
  File "/home/jon/local/share/virt-manager/virt-manager.py", line 304, in
    raise RuntimeError(str(e) + "\n\n" + msg)
RuntimeError: 'module' object has no attribute '__version__'

virt-manager requires the python-virtinst library version 0.400.3 or
greater. This can be downloaded at:


I have virtinst 0.500.0 installed and it is working as expected.
>>> import virtinst
>>> dir(virtinst)
['CapabilitiesParser', 'CloneDesign', 'CloneManager', 'DistroInstaller',
'FullVirtGuest', 'Guest', 'ImageFetcher', 'ImageInstaller', 'ImageManager',
'ImageParser', 'ImportInstaller', 'Installer', 'LiveCDInstaller',
'NodeDeviceParser', 'OSDistro', 'PXEInstaller', 'ParaVirtGuest', 'Storage',
'User', 'VirtualAudio', 'VirtualCharDevice', 'VirtualDevice', 'VirtualDisk',
'VirtualGraphics', 'VirtualHostDevice', 'VirtualHostDevicePCI',
'VirtualHostDeviceUSB', 'VirtualInputDevice', 'VirtualNetworkInterface',
'VirtualVideoDevice', 'XenDisk', 'XenGuest', 'XenNetworkInterface',
'__all__', '__builtins__', '__doc__', '__file__', '__name__', '__package__',
'__path__', '_util', '_virtinst', 'gettext', 'gettext_app', 'gettext_dir',
'osdict', 'util']

Grepping for a version attribute in the installed virtinst code did not
yield anything useful either so it seem that this attribute is indeed

And please avoid catch all exception checking.

Regards Jon Nordby - www.jonnor.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/virt-tools-list/attachments/20091112/365ab691/attachment.htm>

More information about the virt-tools-list mailing list