Update to 15.6 broke Python for Nautilus

Hi!

I know I’m a bit late to the party, having upgraded from Leap15.5 to 15.6 just now. During the upgrade, I ran into some package conflicts concerning Python, but I don’t remember the exact issues. I went with the proposed Solution 1 every time and hoped for the best. Unfortunately, now I can’t launch Nautilus (Gnome Files), neither using Gnome Shell (Wayland), nor Gnome X11 or IceWM. The error message I get is

pbiel@tux:~> nautilus
** Message: 14:32:43.187: Connecting to org.freedesktop.Tracker3.Miner.Files
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib64/python3.6/site-packages/gi/__init__.py", line 130, in require_version
    (namespace, version))
ValueError: Namespace Nautilus not available for version 4.0
/usr/lib64/python3.6/site-packages/gi/module.py:163: Warning: g_boxed_type_register_static: assertion 'g_type_from_name (name) == 0' failed
  g_type = info.get_g_type()
/usr/lib64/python3.6/site-packages/gi/module.py:163: Warning: g_once_init_leave: assertion 'result != 0' failed
  g_type = info.get_g_type()
/usr/lib64/python3.6/site-packages/gi/module.py:197: Warning: g_type_get_qdata: assertion 'node != NULL' failed
  type_ = g_type.pytype

the line 163 reads

162         elif isinstance(info, RegisteredTypeInfo):
163             g_type = info.get_g_type()

but that isn’t really helpful for me.

Has anyone else seen this issue? Can anyone here help me figure out what I am missing and how to fix it? I somewhat assume re-installing Nautilus would work, but since it’s so intertwined with Gnome Shell and whatnot, I would rather seek to find out which Python package I broke.

Any help is appreciated! Thanks!

Please show your repos: zypper lr -d

Sure, sorry I forgot.

#  | Alias                               | Name                                  | Enabled | GPG Check | Refresh | Keep | Priority | Type   | URI                                                                                    | Service
---+-------------------------------------+---------------------------------------+---------+-----------+---------+------+----------+--------+----------------------------------------------------------------------------------------+--------
 1 | Games                               | Games                                 | Yes     | (r ) Yes  | Yes     | -    |  117     | rpm-md | https://download.opensuse.org/repositories/games/15.6/                                 | 
 2 | Graphics                            | Graphics                              | Yes     | (r ) Yes  | Yes     | -    |  116     | rpm-md | https://download.opensuse.org/repositories/graphics/15.6/                              | 
 3 | OwnCloud                            | OwnCloud                              | No      | ----      | ----    | -    |  135     | rpm-md | https://download.owncloud.com/desktop/ownCloud/stable/latest/linux/openSUSE_Leap_15.6/ | 
 4 | Science                             | Science                               | Yes     | (r ) Yes  | Yes     | -    |  115     | rpm-md | https://download.opensuse.org/repositories/science/15.6/                               | 
 5 | VSCodium                            | VSCodium                              | Yes     | (r ) Yes  | Yes     | -    |  149     | rpm-md | https://download.vscodium.com/rpms/                                                    | 
 6 | http-download.opensuse.org-d3b4cd76 | utilities                             | Yes     | (r ) Yes  | Yes     | -    |  109     | rpm-md | http://download.opensuse.org/repositories/utilities/15.6/                              | 
 7 | http-ftp.gwdg.de-3ac4ecff           | Packman Repository                    | Yes     | (r ) Yes  | Yes     | -    |   99     | rpm-md | http://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Leap_15.6/                     | 
 8 | openCPN                             | openCPN                               | No      | ----      | ----    | -    |  124     | rpm-md | https://download.opensuse.org/repositories/Application:/Geo:/OpenCPN/15.6/             | 
 9 | repo-backports-debug-update         | Update repository with updates for -> | No      | ----      | ----    | -    |   99     | N/A    | http://download.opensuse.org/update/leap/15.6/backports_debug/                         | 
10 | repo-backports-update               | Update repository of openSUSE Backp-> | Yes     | (r ) Yes  | Yes     | -    |   99     | rpm-md | http://download.opensuse.org/update/leap/15.6/backports/                               | 
11 | repo-non-oss                        | openSUSE-Leap-Non-Oss                 | Yes     | (r ) Yes  | Yes     | -    |   99     | rpm-md | http://download.opensuse.org/distribution/leap/15.6/repo/non-oss/                      | 
12 | repo-oss                            | openSUSE-Leap-Oss                     | Yes     | (r ) Yes  | Yes     | -    |   99     | rpm-md | http://download.opensuse.org/distribution/leap/15.6/repo/oss/                          | 
13 | repo-sle-debug-update               | Update repository with debuginfo fo-> | No      | ----      | ----    | -    |   99     | N/A    | http://download.opensuse.org/debug/update/leap/15.6/sle/                               | 
14 | repo-sle-update                     | Update repository with updates from-> | Yes     | (r ) Yes  | Yes     | -    |   99     | rpm-md | http://download.opensuse.org/update/leap/15.6/sle/                                     | 
15 | repo-source                         | openSUSE-Leap-Source                  | No      | ----      | ----    | -    |   99     | N/A    | http://download.opensuse.org/source/distribution/leap/15.6/repo/oss/                   | 
16 | repo-source-non-oss                 | openSUSE-Leap-Source-Non-Oss          | No      | ----      | ----    | -    |   99     | N/A    | http://download.opensuse.org/source/distribution/leap/15.6/repo/non-oss/               | 
17 | repo-update                         | openSUSE-Leap-Update                  | Yes     | (r ) Yes  | Yes     | -    |   99     | rpm-md | http://download.opensuse.org/update/leap/15.6/oss/                                     | 
18 | repo-update-non-oss                 | openSUSE-Leap-Update-Non-Oss          | Yes     | (r ) Yes  | Yes     | -    |   99     | rpm-md | http://download.opensuse.org/update/leap/15.6/non-oss/                                 | 

at least, it’s all 15.6, but there are some additionals.

I suspect you have a mix of distro pyton packages and one or more from those additional repos.

1 Like

You may need to check which packages you have installed from all the additional repos:

zypper se -sir 1
zypper se -sir 2
zypper se -sir 4
zypper se -sir 6
zypper se -sir 8

Repo 8 is invalid as it isn’t available for Leap 15.6

I deactivated all but the default (I think) repos, and looked for what zypper dup would recommend now. It would do this

The following 22 packages are going to change vendor:
  ffmpeg-4          http://packman.links2linux.de -> SUSE LLC <https://www.suse.com/>
  libavcodec57      http://packman.links2linux.de -> SUSE LLC <https://www.suse.com/>
  libavcodec58_134  http://packman.links2linux.de -> SUSE LLC <https://www.suse.com/>
  libavdevice57     http://packman.links2linux.de -> SUSE LLC <https://www.suse.com/>
  libavdevice58_13  http://packman.links2linux.de -> SUSE LLC <https://www.suse.com/>
  libavfilter6      http://packman.links2linux.de -> SUSE LLC <https://www.suse.com/>
  libavfilter7_110  http://packman.links2linux.de -> SUSE LLC <https://www.suse.com/>
  libavformat57     http://packman.links2linux.de -> SUSE LLC <https://www.suse.com/>
  libavformat58_76  http://packman.links2linux.de -> SUSE LLC <https://www.suse.com/>
  libavresample3    http://packman.links2linux.de -> SUSE LLC <https://www.suse.com/>
  libavresample4_0  http://packman.links2linux.de -> SUSE LLC <https://www.suse.com/>
  libavutil55       http://packman.links2linux.de -> SUSE LLC <https://www.suse.com/>
  libavutil56_70    http://packman.links2linux.de -> SUSE LLC <https://www.suse.com/>
  libcfitsio10      obs://build.opensuse.org/science -> openSUSE
  libfdk-aac2       http://packman.links2linux.de -> SUSE LLC <https://www.suse.com/>
  libheif1          http://packman.links2linux.de -> SUSE LLC <https://www.suse.com/>
  libpostproc54     http://packman.links2linux.de -> SUSE LLC <https://www.suse.com/>
  libpostproc55_9   http://packman.links2linux.de -> SUSE LLC <https://www.suse.com/>
  libswresample2    http://packman.links2linux.de -> SUSE LLC <https://www.suse.com/>
  libswresample3_9  http://packman.links2linux.de -> SUSE LLC <https://www.suse.com/>
  libswscale4       http://packman.links2linux.de -> SUSE LLC <https://www.suse.com/>
  libswscale5_9     http://packman.links2linux.de -> SUSE LLC <https://www.suse.com/>

To me, this doesn’t look like a solution here?

Thanks for pointing this out. Actually, the only repo that did not give me a

Reading installed packages...
No matching items found.

was the Graphics repo, and it only contained

Loading repository data...
Reading installed packages...

S  | Name               | Type    | Version           | Arch   | Repository
---+--------------------+---------+-------------------+--------+-----------
i  | libtiff-devel-docs | package | 4.7.0-lp156.233.1 | noarch | Graphics

I don’t think that’s a huge issue. (But I uninstalled it now anyway, and I really don’t intend to develop libtiff.)

In general this can be installed using

zypper install 'typelib(Nautilus)'

but you do not really explain what you have installed. Looking (on Tumbleweed):

bor@uefi:~> zypper se --requires -x 'typelib(Nautilus)'
Loading repository data...
Reading installed packages...

S  | Name                              | Summary                                      | Type
---+-----------------------------------+----------------------------------------------+--------
   | nautilus-extension-ghostty        | Nautilus extension for ghostty               | package
   | nautilus-extension-nextcloud      | Nautilus overlay icons                       | package
   | nautilus-extension-sendto-blueman | A sendto integration for Nautilus            | package
   | nautilus-extension-tilix          | Расширение Nautilus для открытия Tilix в п-> | package
   | python311-nautilus                | Привязки к Python для Nautilus               | package
   | python312-nautilus                | Привязки к Python для Nautilus               | package
   | python313-nautilus                | Привязки к Python для Nautilus               | package
bor@uefi:~> 

so, it is not required by nautilus itseld but rather by one of the extensions.

Line 163 of what?

I didn’t install anything deliberately after the upgrade, however, this machine has been upgraded from maybe openSUSE 42.3 or so, with a lot of packages installed/uninstalled in the ten years since :slight_smile:

I have owncloud-client-nautilus installed here, as a dependency from the ownCloud desktop client, and this seems to have python3-nautilus as a dependency.

sudo zypper se --requires -x 'typelib(Nautilus)'
Loading repository data...
Reading installed packages...

S  | Name                              | Summary                             | Type
---+-----------------------------------+-------------------------------------+--------
   | nautilus-extension-nextcloud      | Nautilus overlay icons              | package
   | nautilus-extension-nitroshare     | NitroShare integration for Nautilus | package
   | nautilus-extension-sendto-blueman | A sendto integration for Nautilus   | package
i+ | python3-nautilus                  | Python bindings for Nautilus        | package

Alright, I ran sudo zypper rm -u owncloud-client-nautilus, which also removed python3-nautilus. It didn’t alter anything directly, but now after a reboot, Nautilus seems to work just fine. Thanks for your support.