LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 10-22-2015, 02:29 PM   #1
bmarley83
Member
 
Registered: Apr 2013
Location: Pennsylvania
Distribution: Slackware, Debian
Posts: 185

Rep: Reputation: 32
virt-manager build's on slackware 14.1 multilib but won't start


Hi fellas, Subject says it all. Virt-manager builds just fine from sbo, but when I launch it gives me an error from the command line. I dunno what I did wrong. Maybe it's not me this time? Can anyone help me please? pygobject3 is installed.

ERROR:

Traceback (most recent call last):
File "/usr/share/virt-manager/virt-manager", line 29, in <module>
import gi
ImportError: No module named gi
 
Old 10-22-2015, 03:22 PM   #2
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,661

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
Have you installed all the dependencies? it has tons of dependencies listed in SBo (and perhaps more since the one displayed are first level dependencies only).
 
Old 10-22-2015, 03:32 PM   #3
bmarley83
Member
 
Registered: Apr 2013
Location: Pennsylvania
Distribution: Slackware, Debian
Posts: 185

Original Poster
Rep: Reputation: 32
IDK checking now.

Edit: I used sbopkg to build everything originally. It seems to have the right package queue. I'm rebuilding directly from the site's queue list with the underlying packages, guess I could just check but fuck it I'm bored. Really need virt-manager.

Last edited by bmarley83; 10-22-2015 at 09:37 PM.
 
Old 10-22-2015, 04:04 PM   #4
bmarley83
Member
 
Registered: Apr 2013
Location: Pennsylvania
Distribution: Slackware, Debian
Posts: 185

Original Poster
Rep: Reputation: 32
rebuilt everything, same error. How can I get gi or GObject Introspection for python 2.7? Tried sym-linking it to the one in python3, didn't work.
 
Old 10-22-2015, 04:23 PM   #5
Smokey_justme
Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 534

Rep: Reputation: 203Reputation: 203Reputation: 203
If you have pygobject installed from the original Slackware package then you should already have the python2 version of the library installed.. Don't create louzy symlinks....

Could it be that something is failing because of multilib configuration?
 
1 members found this post helpful.
Old 10-22-2015, 07:01 PM   #6
bmarley83
Member
 
Registered: Apr 2013
Location: Pennsylvania
Distribution: Slackware, Debian
Posts: 185

Original Poster
Rep: Reputation: 32
I don't know? Tried rebuilding specific packages as gtk 2 as specified by the slackbuids, also have py3cairo and gnome-common installed. I don't know whats wrong. Thank you for the replies.
Any other ideas?
 
Old 10-22-2015, 07:25 PM   #7
Strykar
Member
 
Registered: Apr 2008
Distribution: Slackware64, OpenBSD, Debian, Arch
Posts: 42

Rep: Reputation: 6
You likely have Python3 installed, uninstall it.
"ls /var/log/packages/ | grep -w python"

Lose any symlinks you've created yourself.
Reinstall py3cairo and virt-manager.

It works fine for me, there's a thread here on LQ with the gi object missing error which is due to Python3 being installed.
http://www.linuxquestions.org/questi...ry-4175512382/

The Slackbuild should check for the existence of Python3 and warn the user, I'll mail rworkman about it.
 
1 members found this post helpful.
Old 10-22-2015, 07:43 PM   #8
bmarley83
Member
 
Registered: Apr 2013
Location: Pennsylvania
Distribution: Slackware, Debian
Posts: 185

Original Poster
Rep: Reputation: 32
Thank you Strykar. Marked solved. I'm an idiot I already read that thread once in whole and had forgotten it.
 
Old 10-22-2015, 08:44 PM   #9
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,661

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
It's already mentioned in pygobject3's README
Quote:
If you have python3 installed, then you will need an additional
dependencies: gnome-common and py3cairo
 
Old 10-22-2015, 09:32 PM   #10
bmarley83
Member
 
Registered: Apr 2013
Location: Pennsylvania
Distribution: Slackware, Debian
Posts: 185

Original Poster
Rep: Reputation: 32
Yes willysr, but, I had python3 installed already and, as in the thread mentioned by Strykar, you have to uninstall python3 and than build pygobject3, then rebuild python3 again for all to be well (for this particular package?). Virt-manager will build fine but won't launch otherwise.

I had all of the packages installed and tried to rebuild virt-manager from scratch several times, after trying to add gtk2 flags to some of the other packages.

After rebuilding the packages you mentioned(which were also already installed). I rebuilt virt-manger again and produced the same error.

So for the slackbuilds version of virt-manager to work correctly it seems you need to build pygobject3 at some point without python3, than rebuild python3, for it to work correctly. strange...

Quote:
Originally Posted by bmarley83 View Post
also have py3cairo and gnome-common installed. I don't know whats wrong. Thank you for the replies.
Any other ideas?
willysr if you are really in Indonesia, just realized its almost 11pm here (east coast usa) and almost 10am there! Awesome!

Last edited by bmarley83; 10-22-2015 at 09:49 PM.
 
Old 10-22-2015, 09:52 PM   #11
Strykar
Member
 
Registered: Apr 2008
Distribution: Slackware64, OpenBSD, Debian, Arch
Posts: 42

Rep: Reputation: 6
Quote:
Originally Posted by willysr View Post
It's already mentioned in pygobject3's README
It is mentioned, but simply installing those if you have Python3 pre-installed will result in the same error.
For some reason I had Python3 installed myself and had to take the steps recommended to fix it.
 
  


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
[SOLVED] virt-manager slackbuild dependency problem slackware 14.1 multilib bmarley83 Slackware 20 11-13-2015 09:30 AM
[SOLVED] Cannot build autogen on Slackware 14.1 64bit / multilib andrew.46 Slackware 2 07-18-2014 02:15 AM
virt-manager - can i start a KVM using a USB as storage? nicolasdiogo Linux - Virtualization and Cloud 1 04-06-2013 11:31 AM
Virt manager won't start my VMs kkroopani Linux - Virtualization and Cloud 1 10-21-2012 12:53 AM
LXer: Virt-manager on Solaris Nevada build 93 LXer Syndicated Linux News 0 07-14-2008 12:00 PM

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

All times are GMT -5. The time now is 12:18 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