Epel Python3 Gi

Home » CentOS » Epel Python3 Gi
CentOS 4 Comments

Hello Everyone,

don’t know how to fix this:

[andy@localhost snappergui]$ sudo python3 ./__init__.py
[sudo] password for andy:
Traceback (most recent call last):
File “./__init__.py”, line 3, in
import gi ImportError: No module named ‘gi’
[andy@localhost snappergui]$ python ./__init__.py
[andy@localhost snappergui]$ sudo python ./__init__.py
[andy@localhost snappergui]$ sudo python3 ./__init__.py Traceback (most recent call last):
File “./__init__.py”, line 3, in
import gi ImportError: No module named ‘gi’
[andy@localhost snappergui]$ sudo python3 ./__init__.pyvi^C
[andy@localhost snappergui]$ vi __init__.py
[andy@localhost snappergui]$ python3
Python 3.4.5 (default, May 29 2017, 15:17:55)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-11)] on linux Type “help”, “copyright”, “credits” or “license” for more information. Traceback (most recent call last):
File ““, line 1, in
ImportError: No module named ‘gi’
Use quit() or Ctrl-D (i.e. EOF) to exit KeyboardInterrupt Use exit() or Ctrl-D (i.e. EOF) to exit

Sincerely

AndyBe

4 thoughts on - Epel Python3 Gi

  • pygtk2-2.24.0-9.el7.x86_64
    pygtk2-libglade-2.24.0-9.el7.x86_64
    pygpgme-0.3-9.el7.x86_64
    pygobject3-3.14.0-3.el7.x86_64
    pygobject3-base-3.14.0-3.el7.x86_64
    pygobject2-2.28.6-11.el7.x86_64
    [andy@localhost ~]$ rpm -qa | grep python3
    python34-dbus-1.2.4-2.el7.x86_64
    python34-libs-3.4.5-4.el7.x86_64
    python34-3.4.5-4.el7.x86_64

    Installed…

  • It doesn’t matter that pygobject3-base-3.14.0-3.el7.x86_64 is installed, when you’re using another version of python (that’s installed for python 2.7 not python34).

    jh

  • Thanks jh,

    in the meanwhile i found out that is use python2, still search for python34 gi module

    Sincerely

    Andy

    Am Donnerstag, den 15.06.2017, 11:49 +0100 schrieb John Hodrien: