| Summary: | Can't import gobject in python 3.8 | ||
|---|---|---|---|
| Product: | buildroot | Reporter: | Grzegorz Blach <grzegorz> |
| Component: | Other | Assignee: | unassigned |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | buildroot, info |
| Priority: | P5 | ||
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Host: | Target: | ||
| Build: | |||
*** Bug 12346 has been marked as a duplicate of this bug. *** 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. 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? "Fixed" by commit 4a392d1678 which excludes python-gobject for python3. |
This appears to be a similar problem to libselinux: >>> 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