ImportError: No module named gi

Post here if you are a new Porteus member and you're looking for some help.
Post Reply
inco726
White ninja
White ninja
Posts: 9
Joined: 30 May 2018, 20:56
Distribution: Porteus 4 openbox

ImportError: No module named gi

Post#1 by inco726 » 29 Jun 2018, 06:10

Porteus 4 lxde
Programm: scanmem (game coqueror)

root@porteus:/home/guest# gameconqueror
Traceback (most recent call last):
File "/usr/share/gameconqueror/GameConqueror.py", line 35, in <module>
import gi
ImportError: No module named gi

inco726
White ninja
White ninja
Posts: 9
Joined: 30 May 2018, 20:56
Distribution: Porteus 4 openbox

ImportError: No module named gi

Post#2 by inco726 » 29 Jun 2018, 07:21

Or how to install dependencies:
Python (2.x / 3.x)
PyGObject
GTK+ 3
policykit

Python 2.7 package installed in system
PyGObject 2.28.6 & 3.4.0 package installed
GTK+ 3 - I do not know what to install
lxqt-policykit-0.11.0-i486-bundle.xzm package installed. I'm not sure if you need this

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 1563
Joined: 20 Mar 2012, 03:42
Distribution: 4.0-64bit all-DE+more
Location: australia
Contact:

ImportError: No module named gi

Post#3 by ncmprhnsbl » 29 Jun 2018, 09:01

check /var/log/packages for what is already installed(before you start)
eg. python-2.7, gtk+3, polkit are part of the base modules..
inco726 wrote:
29 Jun 2018, 06:10
ImportError: No module named gi
generally means you need package:gobject-introspection
inco726 wrote:
29 Jun 2018, 07:21
lxqt-policykit-0.11.0-i486-bundle.xzm package installed. I'm not sure if you need this
shouldn't need this, polkit should be enough..
Forum Rules : http://forum.porteus.org/viewtopic.php?f=35&t=44

inco726
White ninja
White ninja
Posts: 9
Joined: 30 May 2018, 20:56
Distribution: Porteus 4 openbox

ImportError: No module named gi

Post#4 by inco726 » 29 Jun 2018, 10:22

all packages are there and gobject-introspection has installed. The result is the same

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 1563
Joined: 20 Mar 2012, 03:42
Distribution: 4.0-64bit all-DE+more
Location: australia
Contact:

ImportError: No module named gi

Post#5 by ncmprhnsbl » 30 Jun 2018, 03:08

i have it working with these packages from slackware current repos:
scanmem-0.16-x86_64-3_slonly.txz
pygobject3-3.28.3-x86_64-1.txz
gobject-introspection-1.56.1-x86_64-2.txz

note pygobject3 is for gtk+3, not python3..
Forum Rules : http://forum.porteus.org/viewtopic.php?f=35&t=44

inco726
White ninja
White ninja
Posts: 9
Joined: 30 May 2018, 20:56
Distribution: Porteus 4 openbox

ImportError: No module named gi

Post#6 by inco726 » 01 Jul 2018, 03:56

cinnamon and mate with these packages - runs
kxde and openbox with these packages - does not start. There may be a reason in package versions or in other packages. In this I did not understand. I will use Mate.

Post Reply