[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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



Introduced by cfd9ab725445. Errormessage:

"Traceback (most recent call last):
  File "/home/jon/local/share/virt-manager/virt-manager.py", line 401, in <module>
    main()
  File "/home/jon/local/share/virt-manager/virt-manager.py", line 304, in main
    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:

http://virt-manager.org/download.html"

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 missing?

And please avoid catch all exception checking.

--
Regards Jon Nordby - www.jonnor.com

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]