[GH-ISSUE #186] Fedora 19 : "No module named virtinst" #142

Closed
opened 2026-02-27 16:38:07 +03:00 by kerem · 4 comments
Owner

Originally created by @romu70 on GitHub (Dec 30, 2013).
Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/186

Hi,
After the fix of the issue I've had last week, I shutdown the computer for Christmas. Now, back to work, I started my server and I get the following error:

ImportError at /

No module named virtinst

Request Method:     GET
Request URL:    http://salomon/
Django Version:     1.5.5
Exception Type:     ImportError
Exception Value:    

No module named virtinst

Exception Location:     /var/www/webvirtmgr/vrtManager/hostdetails.py in <module>, line 5
Python Executable:  /usr/bin/python
Python Version:     2.7.5
Python Path:    

['/var/www/webvirtmgr',
    '/usr/lib64/python27.zip',
    '/usr/lib64/python2.7',
    '/usr/lib64/python2.7/plat-linux2',
    '/usr/lib64/python2.7/lib-tk',
    '/usr/lib64/python2.7/lib-old',
    '/usr/lib64/python2.7/lib-dynload',
    '/usr/lib64/python2.7/site-packages',
    '/usr/lib64/python2.7/site-packages/gtk-2.0',
    '/usr/lib/python2.7/site-packages',
    '/usr/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg-info']

Any help? Thanks.

Originally created by @romu70 on GitHub (Dec 30, 2013). Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/186 Hi, After the fix of the issue I've had last week, I shutdown the computer for Christmas. Now, back to work, I started my server and I get the following error: ``` ImportError at / No module named virtinst Request Method: GET Request URL: http://salomon/ Django Version: 1.5.5 Exception Type: ImportError Exception Value: No module named virtinst Exception Location: /var/www/webvirtmgr/vrtManager/hostdetails.py in <module>, line 5 Python Executable: /usr/bin/python Python Version: 2.7.5 Python Path: ['/var/www/webvirtmgr', '/usr/lib64/python27.zip', '/usr/lib64/python2.7', '/usr/lib64/python2.7/plat-linux2', '/usr/lib64/python2.7/lib-tk', '/usr/lib64/python2.7/lib-old', '/usr/lib64/python2.7/lib-dynload', '/usr/lib64/python2.7/site-packages', '/usr/lib64/python2.7/site-packages/gtk-2.0', '/usr/lib/python2.7/site-packages', '/usr/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg-info'] ``` Any help? Thanks.
kerem closed this issue 2026-02-27 16:38:08 +03:00
Author
Owner

@romu70 commented on GitHub (Dec 30, 2013):

Searched a bit. The issue is due to a state change in the python-virtinst which is now obsolete in Fedora.

I've been able to install it by fetching a F18 package and it worked. But after some distro updates, the package was removed and I can't install it anymore.

It seems the Virt-Manager python binding is now included into Virt-Manager, but I don't know how to fix this.

<!-- gh-comment-id:31339719 --> @romu70 commented on GitHub (Dec 30, 2013): Searched a bit. The issue is due to a state change in the python-virtinst which is now obsolete in Fedora. I've been able to install it by fetching a F18 package and it worked. But after some distro updates, the package was removed and I can't install it anymore. It seems the Virt-Manager python binding is now included into Virt-Manager, but I don't know how to fix this.
Author
Owner

@romu70 commented on GitHub (Dec 30, 2013):

I think I may have fixed the issue by changing the line:

import virtinst

By the line:

import vrtManager

In the following files from the /var/www/webvirtmgr/vrtManager folder:

hostdetails.py
connection.py
storage.py
create.py

Is this correct?

<!-- gh-comment-id:31341562 --> @romu70 commented on GitHub (Dec 30, 2013): I think I may have fixed the issue by changing the line: ``` import virtinst ``` By the line: ``` import vrtManager ``` In the following files from the /var/www/webvirtmgr/vrtManager folder: ``` hostdetails.py connection.py storage.py create.py ``` Is this correct?
Author
Owner

@retspen commented on GitHub (Dec 30, 2013):

alredy removed. Try:

$ git pull

<!-- gh-comment-id:31342467 --> @retspen commented on GitHub (Dec 30, 2013): alredy removed. Try: $ git pull
Author
Owner

@romu70 commented on GitHub (Dec 30, 2013):

As I did some changes, I needed to run:

git fetch origin master
git reset --hard FETCH_HEAD
git clean -df

And everything runs fine now. Thanks for the help.

<!-- gh-comment-id:31344742 --> @romu70 commented on GitHub (Dec 30, 2013): As I did some changes, I needed to run: ``` git fetch origin master git reset --hard FETCH_HEAD git clean -df ``` And everything runs fine now. Thanks for the help.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/webvirtmgr#142
No description provided.