PyGObject for Python 3.6

Issues related to applications and software problems
Post Reply
User avatar
ysc
Posts: 11
Joined: 2017/11/29 12:58:43

PyGObject for Python 3.6

Post by ysc » 2017/11/29 13:04:08

Hi all,

I don't seem to find a way to get gobject for Python 3.6. The idea is to:

Code: Select all

import gi
from gi.repository import Gtk
The above works just fine with Python 2.7 and with Python 3.4 after installing python34-gobject.x86_64 0:3.22.0-4.el7. However, I'm tied to Python 3.6 and thus was wondering if you guys know of a way to get this working. Thanks.

User avatar
TrevorH
Site Admin
Posts: 33216
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: PyGObject for Python 3.6

Post by TrevorH » 2017/11/29 13:54:41

Where did you get your copy of python 3.6 from ? If it was from IUS then perhaps they'd build the relevent gobject package to go with it.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

User avatar
ysc
Posts: 11
Joined: 2017/11/29 12:58:43

Re: PyGObject for Python 3.6

Post by ysc » 2017/11/30 07:28:24

I got it from IUS indeed, but couldn't find anything relevant on their website. Maybe it's worth asking them directly. Also, I tried with Anaconda's Python 3.6 but to no avail.

EDIT: alternatively, perhaps should I be looking for a Python 3 version of "gi"? I know Debian users have something called python3-gi, which supposedly solves my problem, but can't find anything similar either :?

Post Reply