LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   virt-manager build's on slackware 14.1 multilib but won't start (https://www.linuxquestions.org/questions/slackware-14/virt-manager-builds-on-slackware-14-1-multilib-but-wont-start-4175556900/)

bmarley83 10-22-2015 02:29 PM

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

willysr 10-22-2015 03:22 PM

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).

bmarley83 10-22-2015 03:32 PM

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.

bmarley83 10-22-2015 04:04 PM

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.

Smokey_justme 10-22-2015 04:23 PM

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?

bmarley83 10-22-2015 07:01 PM

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?

Strykar 10-22-2015 07:25 PM

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.

bmarley83 10-22-2015 07:43 PM

Thank you Strykar. Marked solved. I'm an idiot I already read that thread once in whole and had forgotten it.

willysr 10-22-2015 08:44 PM

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

bmarley83 10-22-2015 09:32 PM

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 (Post 5438810)
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!

Strykar 10-22-2015 09:52 PM

Quote:

Originally Posted by willysr (Post 5438867)
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.


All times are GMT -5. The time now is 08:23 PM.