calling import _gi causes ImportError _gi.cpython-38-aarch64-linu-gnu.so
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pygobject (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
I have noticed this error several days ago when overlay icons in nautilus stopped working. I cannot pinpoint any action that might have caused this behaviour as I do remember them working.
I have even tried reinstalling using `apt` and even installing the GObject library locally in my home folder using `pip3`, but I am getting the same errors.
I am confident the bug is not in the Nextcould integration itself as I am getting the same error with other Nautilus extensions as well.
I have been trying to find a clue on the internet for hours, but I was unable to find even a hint.
Can someone please help? I would be grateful to get the extensions working again (mainly the overlay icons).
These are the errors I am getting when starting Nautilus. I was getting the same errors when using the system-wide version. I tried installing the lib in my home folder to rule out corrupted filesystem.
```
Initializing nautilus-
ImportError: could not import gobject (error was: ImportError(
Traceback (most recent call last):
File "/usr/share/
from gi.repository import GObject, Nautilus
File "/home/
from . import _gi
ImportError: /home/user/
Traceback (most recent call last):
File "/usr/share/
from gi.repository import Nautilus, GObject
File "/home/
from . import _gi
ImportError: /home/user/
Traceback (most recent call last):
File "/usr/share/
import gi
File "/home/
from . import _gi
ImportError: /home/user/
```
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: python3-gi 3.36.0-1
ProcVersionSign
Uname: Linux 5.4.0-1065-raspi aarch64
ApportVersion: 2.20.11-
Architecture: arm64
CasperMD5CheckR
Date: Tue Jul 5 14:23:30 2022
ImageMediaBuild: 20200423.1
SourcePackage: pygobject
UpgradeStatus: No upgrade log present (probably fresh install)
Finally,
I managed to fix the issue myself.
I found this bug report describing a similar problem: https:/ /bugzilla. redhat. com/show_ bug.cgi? id=1636626 - based on that, I:
1. uninstalled `apt purge nautilus- extension- fma nautilus- image-converter ` (to make sure none of the extensions are calling Python2.
after this step, I noticed another error (that previously did not appear):
`(org.gnome. Nautilus: 15062): Nautilus- Python- WARNING **: 05:32:20.623: g_module_open libpython failed: /usr/lib/ libpython3. 8.so.1. 0: cannot open shared object file: No such file or directory`
2. I fixed the error by: `sudo ln -s /usr/lib/ aarch64- linux-gnu/ libpython3. 8.so.1. 0 /usr/lib/`