You are not logged in.

#1 2020-04-18 11:43:36

aw1cks
Member
From: UK
Registered: 2017-01-31
Posts: 10
Website

[SOLVED] python-gobject broken

After a recent system update I noticed a few programs are no longer working.
Further investigation showed that python-gobject seemed to be at fault.

Trying to import the library gives the following error:

alex@desktop::~» python
Python 3.8.2 (default, Apr  8 2020, 14:31:25)
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import gi
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.8/site-packages/gi/__init__.py", line 42, in <module>
    from . import _gi
ImportError: /usr/lib/python3.8/site-packages/gi/_gi.cpython-38-x86_64-linux-gnu.so: undefined symbol: g_base_info_unref
>>>

Can't see anything unusual with ldd:

alex@desktop::~» ldd /usr/lib/python3.8/site-packages/gi/_gi.cpython-38-x86_64-linux-gnu.so
	linux-vdso.so.1 (0x00007ffde21b7000)
	libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0x00007f09f8f95000)
	libgirepository-1.0.so.1 => /usr/lib/libgirepository-1.0.so.1 (0x00007f09f7f20000)
	libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0x00007f09f7ec1000)
	libffi.so.7 => /usr/lib/libffi.so.7 (0x00007f09f7eb5000)
	libc.so.6 => /usr/lib/libc.so.6 (0x00007f09f7cef000)
	libpcre.so.1 => /usr/lib/libpcre.so.1 (0x00007f09f7c7d000)
	libpthread.so.0 => /usr/lib/libpthread.so.0 (0x00007f09f7c59000)
	libSDL2-2.0.so.0 => /usr/lib/libSDL2-2.0.so.0 (0x00007f09f7af3000)
	libGL.so.1 => /usr/lib/libGL.so.1 (0x00007f09f7a6d000)
	libdl.so.2 => /usr/lib/libdl.so.2 (0x00007f09f7a68000)
	libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007f09f787f000)
	libm.so.6 => /usr/lib/libm.so.6 (0x00007f09f7739000)
	libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00007f09f771d000)
	/usr/lib64/ld-linux-x86-64.so.2 (0x00007f09f914e000)
	libGLdispatch.so.0 => /usr/lib/libGLdispatch.so.0 (0x00007f09f7666000)
	libGLX.so.0 => /usr/lib/libGLX.so.0 (0x00007f09f7633000)
	libX11.so.6 => /usr/lib/libX11.so.6 (0x00007f09f74f3000)
	libxcb.so.1 => /usr/lib/libxcb.so.1 (0x00007f09f74c9000)
	libXau.so.6 => /usr/lib/libXau.so.6 (0x00007f09f74c2000)
	libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x00007f09f74ba000)

Any thoughts or suggestions would be greatly appreciated

Last edited by aw1cks (2020-04-18 12:13:02)

Offline

#2 2020-04-18 12:06:02

arojas
Developer
From: Spain
Registered: 2011-10-09
Posts: 2,305

Re: [SOLVED] python-gobject broken

Output of

pacman -Qo /usr/lib/libgirepository-1.0.so.1

?

Last edited by arojas (2020-04-18 12:06:31)

Offline

#3 2020-04-18 12:10:35

aw1cks
Member
From: UK
Registered: 2017-01-31
Posts: 10
Website

Re: [SOLVED] python-gobject broken

alex@desktop::~» pacman -Qo /usr/lib/libgirepository-1.0.so.1
/usr/lib/libgirepository-1.0.so.1 is owned by gobject-introspection-runtime 1.64.1-2

Reinstalling the package seems to have fixed the issue!

alex@desktop::~» python
Python 3.8.2 (default, Apr  8 2020, 14:31:25)
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import gi
>>>

Not sure why that worked... but thanks for your help smile

Offline

Board footer

Powered by FluxBB