[virt-tools-list] 'module' object has no attribute '__version__'

James Clement james.clement at gmail.com
Fri Feb 14 21:13:13 UTC 2014


I think you are correct.

[root at al11 virtManager]# python -c 'import virtinst; print virtinst'
<module 'virtinst' from
'/usr/lib/python2.6/site-packages/virtinst/__init__.pyc'>
[root at al11 virtManager]# vi cli.py
[root at al11 virtManager]# virt-manager
<module 'virtinst' from '/usr/share/virt-manager/virtinst/__init__.pyc'>

Unsure how to proceed, I am a bit of a newbie to this. Thanks.


On Fri, Feb 14, 2014 at 2:32 PM, Cole Robinson <crobinso at redhat.com> wrote:

> On 02/14/2014 02:50 PM, James Clement wrote:
> > I recently tried to install virt-manager on RHEL 6.5 and I get the
> following
> > error when trying to start virt-manager
> >
> > Here is the debug output:
> >
> > [root at al11 python2.6]# virt-manager --debug
> > 2014-02-14 13:44:32,521 (cli:71): virt-manager startup
> > 2014-02-14 13:44:32,522 (virt-manager:292): Launched as:
> > /usr/share/virt-manager/virt-manager.py --debug
> > 2014-02-14 13:44:32,522 (virt-manager:293): GTK version: (2, 20, 1)
> > 2014-02-14 13:44:32,522 (virt-manager:294): virtManager import: <module
> > 'virtManager' from '/usr/share/virt-manager/virtManager/__init__.pyc'>
> > 2014-02-14 13:44:32,549 (cli:110): Error import virtinst
> > Traceback (most recent call last):
> >   File "/usr/share/virt-manager/virtManager/cli.py", line 107, in
> > check_virtinst_version
> >     ignore = virtinst.__version__
> > AttributeError: 'module' object has no attribute '__version__'
> > 2014-02-14 13:44:32,549 (virt-manager:390): 'module' object has no
> attribute
> > '__version__'
> >
> > virt-manager requires the python-virtinst library version 0.600.1 or
> greater.
> > This can be downloaded at:
> >
> > http://virt-manager.org/download.html
> > Traceback (most recent call last):
> >   File "/usr/share/virt-manager/virt-manager.py", line 383, in <module>
> >     main()
> >   File "/usr/share/virt-manager/virt-manager.py", line 296, in main
> >     cli.check_virtinst_version(virtinst_str)
> >   File "/usr/share/virt-manager/virtManager/cli.py", line 111, in
> > check_virtinst_version
> >     raise RuntimeError(str(e) + "\n\n" + msg)
> > RuntimeError: 'module' object has no attribute '__version__'
> >
> > virt-manager requires the python-virtinst library version 0.600.1 or
> greater.
> > This can be downloaded at:
> >
> >
> > According to Python, I have 0.600.4 installed:
> >
> > [root at al11 python2.6]# python
> > Python 2.6.6 (r266:84292, Nov 21 2013, 10:50:32)
> > [GCC 4.4.7 20120313 (Red Hat 4.4.7-4)] on linux2
> > Type "help", "copyright", "credits" or "license" for more information.
> >>>> import virtinst
> >>>> print virtinst.__version__
> > 0.600.4
> >>>>
> >
> > I am using 0.9.1 of virt-manager
> >
> > [root at al11 python2.6]# virt-manager --version
> > 0.9.1
> >
> >
> > I am stumped. Any help is appreciated. Thanks.
>
> My guess is there's two copies of virtinst installed. Edit
> /usr/share/virt-manager/virtManager/cli.py and do 'print virtinst' right
> before the virtinst.__version__ failure, and compare that to python -c
> 'import
> virtinst; print virtinst'
>
> - Cole
>
>


-- 
JC
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/virt-tools-list/attachments/20140214/4218df0e/attachment.htm>


More information about the virt-tools-list mailing list