Skip to contentSkip to conversation

New: Can't import gobject in python 3.8

Buildroot bugzilla at busybox.net 2 participants 6 messages Oct 25, 2019 – Dec 3, 2019

lore
Share & tools
lore
#0 lore raw

https://bugs.busybox.net/show_bug.cgi?id=12286

Bug ID: 12286
Summary: Can't import gobject in python 3.8
Product: buildroot
Version: unspecified
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P5
Component: Other
Assignee: unassigned at buildroot.uclibc.org
Reporter: grzegorz at blach.pl
CC: buildroot at uclibc.org
Target Milestone: ---

This appears to be a similar problem to libselinux:

Quoted 1 line
Quoted 1 line
Quoted 1 line

import gobject

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3.8/site-packages/gobject/__init__.py", line 26, in
<module>
File "/usr/lib/python3.8/site-packages/glib/__init__.py", line 22, in
<module>
SystemError: initialization of _glib raised unreported exception

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.
#1 lore raw

[Buildroot] [Bug 12286] Can't import gobject in python 3.8

https://bugs.busybox.net/show_bug.cgi?id=12286

Thomas Petazzoni <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |info at hifiberry.com

--- Comment #1 from Thomas Petazzoni <[email protected]> --- *** Bug 12346 has been marked as a duplicate of this bug. ***

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.
#2 lore raw

[Buildroot] [Bug 12286] Can't import gobject in python 3.8

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=12286

--- Comment #2 from Thomas Petazzoni <[email protected]> --- Unfortunately, the version of python-gobject we use is very old, because it was I guess the latest version that doesn't need gobject-introspection.

The same issue was reported to Arch Linux
(https://bugs.archlinux.org/task/64541), and they simply removed their python-gobject2 package.

So I think for now, we should disallow our python-gobject package with Python 3.x, until we merge the gobject-introspection support, which will allow us to update to a newer version of python-gobject.

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.
#3 lore raw

[Buildroot] [Bug 12286] Can't import gobject in python 3.8

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=12286

--- Comment #3 from info at hifiberry.com ---
As Python2 support ends in less than 2 months, just disabling it on Python3 won't really help as there should be no new software anymore that still uses Python2.
What's the state of the introspection code?

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.
#4 lore raw

[Buildroot] [Bug 12286] Can't import gobject in python 3.8

Hello;

Quoted 9 lines · On Thu, Nov 28, 2019 at 11:07 AM <[email protected]> wrote:

https://bugs.busybox.net/show_bug.cgi?id=12286

--- Comment #3 from info at hifiberry.com ---
As Python2 support ends in less than 2 months, just disabling it on Python3 won't really help as there should be no new software anymore that still uses Python2.
What's the state of the introspection code?

I have a patch series here:
https://patchwork.ozlabs.org/project/buildroot/list/?series=137614

There are currently issues with patch 4/5 which causes libglib2 to not build properly
if python3 isn't built yet for the target. There are suggestions on how to fix the issue,
however, I do not have the time to implement the changes.

Other than that issue, I personally use gobject-introspection in my current projects and
it works quite well! Any feedback would be appreciated!

Adam

Quoted 7 lines

--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

#5 lore raw

[Buildroot] [Bug 12286] Can't import gobject in python 3.8

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=12286

Arnout Vandecappelle <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #4 from Arnout Vandecappelle <[email protected]> --- "Fixed" by commit 4a392d1678 which excludes python-gobject for python3.

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.