After switching to python 3.11, TestExtension.py causes nautilus to crash
openSUSE Tumbleweed recently switched to using python 3.11 as its default python. Right thereafter nautilus started segfaulting whenever any nautilus-python based extensions are installed. Indeed, simply installing the TestExtension.py file to $HOME/.local/share/nautilus-python/extensions/
causes nautilus to crash as follows:
NAUTILUS_PYTHON_DEBUG=misc nautilus ** Message: 22:19:26.177: Connecting to org.freedesktop.Tracker3.Miner.Files
nautilus_module_initialize: entered
nautilus_python_load_dir: entered dirname=/home/badshah/.local/share/nautilus-python/extensions
nautilus-python:g_module_open /usr/lib64/libpython3.11.so.1.0
nautilus-python:Py_Initialize
nautilus-python:PySys_SetArgv
nautilus-python:Sanitize the python search path
nautilus-python:init_pygobject
Segmentation fault (core dumped)
My system is using the following versions of apps/libraries:
- nautilus 44.2
- nautilus-python 4.0
- Python 3.11.3
- python-gobject 3.44.1
Happy to provide any other info that may be required to debug this. Thanks in advance.