LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-22-2015, 01:17 PM   #1
glupa4e
Member
 
Registered: Jan 2011
Posts: 321

Rep: Reputation: 7
Unhappy virt-manager fails to start with "ImportError: No module named libvirt"


Hello,
i am trying to follow the steps described here. Unfortunately when i start the application as non root user, i get:
Code:
Traceback (most recent call last):
  File "/usr/share/virt-manager/virt-manager", line 33, in <module>
    from virtinst import util as util
  File "/usr/share/virt-manager/virtinst/__init__.py", line 37, in <module>
    from . import util
  File "/usr/share/virt-manager/virtinst/util.py", line 27, in <module>
    import libvirt
ImportError: No module named libvirt
I think i installed all the necessary dependencies. I also followed these instructions. It is still not working. By the way i also installed pygobject3 and python3.

Any idea how to fix that?

Last edited by glupa4e; 11-22-2015 at 01:28 PM.
 
Old 11-22-2015, 01:46 PM   #2
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,096

Rep: Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173
temporarily remove python3, then build this whole queue: after you have built and installed all the packages listed there you can reinstall python3.

Last edited by ponce; 11-22-2015 at 01:47 PM.
 
Old 11-25-2015, 02:04 PM   #3
glupa4e
Member
 
Registered: Jan 2011
Posts: 321

Original Poster
Rep: Reputation: 7
it workded!

Dear ponce,

thank you very much for your piece of advice! I removed all the packages i had installed including python3. Then i created an .sqf file as described in the link you posted. I processed that file with sbopkg and then reinstalled python3. Now i have virt-manager starting.

Thanks a lot!

P.S. I think that the instructions written on the slackware docs site could be updated with the things you posted.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
"ImportError: No module named gobject", Exaile fails to run. Python problem. kummiliim Linux - Software 1 12-11-2008 01:12 PM
PlayOnLinux "ImportError: No module named wxversion Laurana Linux - Software 3 02-19-2008 06:07 PM
"libvirt.libvirtError: virDomainCreateLinux() failed" when virt-install sailer_sh Red Hat 0 06-15-2007 02:29 AM
gDesklets in SuSE 10.0 - "ImportError: No module named os" slong682000 Linux - Software 2 04-10-2006 09:51 PM
Bittorrent. "ImportError: No module named __future__" BashTin Linux - Software 4 09-12-2005 03:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration