# Make sure we have a sufficiently new virtinst version, since we are
# very closely tied to the lib
msg = ("virt-manager requires the python-virtinst library version " + virtinst_str + " or greater. This can be downloaded at:" "\n\nhttp://virt-manager.org/download.html")
try:
import virtinst
ignore = virtinst.__version__
ignore = virtinst.__version_info__
except Exception, e: logging.exception("Error import virtinst")
raise RuntimeError(str(e) + "\n\n" + msg)
virtinst_str is defined at line 42 of that same file as:
virtinst_str = "0.500.1"
virtinst_version = tuple([ int(num) for num in virtinst_str.split('.')])
note that I do have python-virtinst installed at the requisite level, at least according to the package database:
pjs11@patslinux01 ~ $ dpkg-query --list virtinst python-virtinst
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Description
+++-===============================-===============================-==============================================================================
ii python-virtinst 0.500.1-2ubuntu6.1 Programs to create and clone virtual machines (transitional package)
ii virtinst 0.500.1-2ubuntu6.1 Programs to create and clone virtual machines
However, a basic "import virtinst" test fails:
pjs11@patslinux01 ~ $ python
Python 2.6.5 (r265:79063, Apr 16 2010, 13:57:41)
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import virtinst
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.6/dist-packages/virtinst/__init__.py", line 27, in <module>
from version import __version__
ImportError: No module named version
Unfortunately, my ability to investigate further is hampered by my more or less complete lack of python-fu. Can anyone suggest how I can investigate this further?
FWIW, the error is being thrown here:
/usr/share/ virt-manager/ virt-manager. py line 306:
# Make sure we have a sufficiently new virtinst version, since we are
virtinst_ str + " or greater. This can be downloaded at:"
"\ n\nhttp: //virt- manager. org/download. html") __version_ _ __version_ info__
logging. exception( "Error import virtinst")
# very closely tied to the lib
msg = ("virt-manager requires the python-virtinst library version " +
try:
import virtinst
ignore = virtinst.
ignore = virtinst.
except Exception, e:
raise RuntimeError(str(e) + "\n\n" + msg)
virtinst_str is defined at line 42 of that same file as:
virtinst_str = "0.500.1" str.split( '.')])
virtinst_version = tuple([ int(num) for num in virtinst_
note that I do have python-virtinst installed at the requisite level, at least according to the package database:
pjs11@patslinux01 ~ $ dpkg-query --list virtinst python-virtinst Unknown/ Install/ Remove/ Purge/Hold Not/Inst/ Cfg-files/ Unpacked/ Failed- cfg/Half- inst/trig- aWait/Trig- pend /Reinst- required (Status,Err: uppercase=bad) ======= ======= ======= ======= -====== ======= ======= ======= ====-== ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======
Desired=
| Status=
|/ Err?=(none)
||/ Name Version Description
+++-===
ii python-virtinst 0.500.1-2ubuntu6.1 Programs to create and clone virtual machines (transitional package)
ii virtinst 0.500.1-2ubuntu6.1 Programs to create and clone virtual machines
However, a basic "import virtinst" test fails:
pjs11@patslinux01 ~ $ python python2. 6/dist- packages/ virtinst/ __init_ _.py", line 27, in <module>
Python 2.6.5 (r265:79063, Apr 16 2010, 13:57:41)
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import virtinst
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/
from version import __version__
ImportError: No module named version
Unfortunately, my ability to investigate further is hampered by my more or less complete lack of python-fu. Can anyone suggest how I can investigate this further?
Thanks!
-- Pat