gpodder fails after upgrade to 15.2

hey,

i just updated from leap 15.1 to leap 15.2 via

zypper dup

, and at first, everything seemed fine.

but i have issues with gpodder.

starting gpodder gave me this error:

1615456860.255502 [gpodder.log] ERROR: Uncaught exception: Traceback (most recent call last):
  File "/usr/bin/gpodder", line 164, in <module>
    main()
  File "/usr/bin/gpodder", line 156, in main
    from gpodder.gtkui import app
  File "/usr/lib/python3.6/site-packages/gpodder/gtkui/app.py", line 34, in <module>
    from .config import UIConfig
  File "/usr/lib/python3.6/site-packages/gpodder/gtkui/config.py", line 26, in <module>
    gi.require_version('Gdk', '3.0')  # isort:skip
  File "/usr/lib64/python3.6/site-packages/gi/__init__.py", line 129, in require_version
    raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace Gdk not available

Traceback (most recent call last):
  File "/usr/bin/gpodder", line 164, in <module>
    main()
  File "/usr/bin/gpodder", line 156, in main
    from gpodder.gtkui import app
  File "/usr/lib/python3.6/site-packages/gpodder/gtkui/app.py", line 34, in <module>
    from .config import UIConfig
  File "/usr/lib/python3.6/site-packages/gpodder/gtkui/config.py", line 26, in <module>
    gi.require_version('Gdk', '3.0')  # isort:skip
  File "/usr/lib64/python3.6/site-packages/gi/__init__.py", line 129, in require_version
    raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace Gdk not available

after some research i seem to have found a solution:

zypper -v in typelib-1_0-Gtk-3_0

but instead, i got this error:

1615457224.135882 [gpodder.log] ERROR: Uncaught exception: Traceback (most recent call last):
  File "/usr/bin/gpodder", line 164, in <module>
    main()
  File "/usr/bin/gpodder", line 156, in main
    from gpodder.gtkui import app
  File "/usr/lib/python3.6/site-packages/gpodder/gtkui/app.py", line 36, in <module>
    from .main import gPodder
  File "/usr/lib/python3.6/site-packages/gpodder/gtkui/main.py", line 40, in <module>
    from . import shownotes
  File "/usr/lib/python3.6/site-packages/gpodder/gtkui/shownotes.py", line 25, in <module>
    from gpodder.gtkui.draw import (draw_text_box_centered, get_background_color,
  File "/usr/lib/python3.6/site-packages/gpodder/gtkui/draw.py", line 29, in <module>
    import cairo
ModuleNotFoundError: No module named 'cairo'

Traceback (most recent call last):
  File "/usr/bin/gpodder", line 164, in <module>
    main()
  File "/usr/bin/gpodder", line 156, in main
    from gpodder.gtkui import app
  File "/usr/lib/python3.6/site-packages/gpodder/gtkui/app.py", line 36, in <module>
    from .main import gPodder
  File "/usr/lib/python3.6/site-packages/gpodder/gtkui/main.py", line 40, in <module>
    from . import shownotes
  File "/usr/lib/python3.6/site-packages/gpodder/gtkui/shownotes.py", line 25, in <module>
    from gpodder.gtkui.draw import (draw_text_box_centered, get_background_color,
  File "/usr/lib/python3.6/site-packages/gpodder/gtkui/draw.py", line 29, in <module>
    import cairo
ModuleNotFoundError: No module named 'cairo'

so i installed

zypper -v in python3-cairo

and now i am stuck with this error message:

(process:14390): Gtk-CRITICAL **: 11:09:55.555: _gtk_style_provider_private_get_settings: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed

(process:14390): Gtk-CRITICAL **: 11:09:55.555: _gtk_style_provider_private_get_settings: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed

(process:14390): Gtk-CRITICAL **: 11:09:55.555: _gtk_style_provider_private_get_settings: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed
Segmentation fault (core dumped)

has anybody any idea how to fix this? help would gladly be appreciated!

greetings…

Please post:

zypper lr -d
zypper se -si gpodder
zypper se -si | grep -Ei 'systemp|system_p|system-p|system p'

PS:
Here it runs fine.

thanks for taking the time!

# zypper lr -dE
#  | Alias                 | Name                              | Enabled | GPG Check | Refresh | Priority | Type   | URI                                                                                             | Service
---+-----------------------+-----------------------------------+---------+-----------+---------+----------+--------+-------------------------------------------------------------------------------------------------+--------
 1 | openSUSE-Leap-15.2    | openSUSE-Leap-15.2                | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://download.opensuse.org/distribution/leap/15.2/repo/oss/                                  | 
 2 | openSUSE-Leap-15.2-KA | openSUSE-Leap-15.2-KA             | Yes     | (r ) Yes  | Yes     |   75     | rpm-md | https://download.opensuse.org/repositories/KDE:/Applications/KDE_Frameworks5_openSUSE_Leap_15.2 | 
 3 | openSUSE-Leap-15.2-KE | openSUSE-Leap-15.2-KE             | Yes     | (r ) Yes  | Yes     |   75     | rpm-md | https://download.opensuse.org/repositories/KDE:/Extra/openSUSE_Leap_15.2                        | 
 4 | openSUSE-Leap-15.2-KF | openSUSE-Leap-15.2-KF             | Yes     | (r ) Yes  | Yes     |   75     | rpm-md | https://download.opensuse.org/repositories/KDE:/Frameworks5/openSUSE_Leap_15.2                  | 
 5 | openSUSE-Leap-15.2-KQ | openSUSE-Leap-15.2-KQ             | Yes     | (r ) Yes  | Yes     |   75     | rpm-md | https://download.opensuse.org/repositories/KDE:/Qt5/openSUSE_Leap_15.2                          | 
 6 | openSUSE_-_graphics   | openSUSE - graphics               | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://download.opensuse.org/repositories/graphics/openSUSE_Leap_15.2/                         | 
 7 | openSUSE_-_printing   | openSUSE - printing               | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://download.opensuse.org/repositories/Printing/openSUSE_Leap_15.2/                         | 
 9 | packman.gwdg.de-suse  | Packman Repository                | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Leap_15.2/                             | 
15 | repo-non-oss          | openSUSE-Leap-15.2-Non-Oss        | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://download.opensuse.org/distribution/leap/15.2/repo/non-oss/                              | 
18 | repo-update           | openSUSE-Leap-15.2-Update         | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://download.opensuse.org/update/leap/15.2/oss/                                             | 
19 | repo-update-non-oss   | openSUSE-Leap-15.2-Update-Non-Oss | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://download.opensuse.org/update/leap/15.2/non-oss/                                         |
# zypper se -si gpodder
Loading repository data...
Reading installed packages...

S  | Name     | Type    | Version           | Arch   | Repository
---+----------+---------+-------------------+--------+-------------------
i+ | gpodder3 | package | 3.10.17-pm152.1.1 | noarch | Packman Repository
# zypper se -si | grep -Ei 'systemp|system_p|system-p|system p'

oh, and dmesg says:

 1926.635079] gpodder[14390]: segfault at 18 ip 00007f2345197d20 sp 00007ffcccd95558 error 4 in libgtk-3.so.0.2404.16[7f2344ec0000+780000]
 1926.635084] Code: dc ff 48 8b 44 24 08 64 48 33 04 25 28 00 00 00 75 0f 48 83 c4 18 5b 5d 41 5c 41 5d 41 5e 41 5f c3 e8 64 e1 db ff 0f 1f 40 00 <48> 8b 47 18 48 8b 40 10 c3 0f 1f 80 00 00 00 00 53 48 8b 5f 18 48

You need to install gobject-introspection, python3-gi and gir1.2-gtk-3.0, these packages includes the files to expose the GTK+ libs to python3.

Opportunity to check some other options out? Have you ever tried cpod? It can be found on github. There’s an app image and a deb of it. It’s the best podcast app I’ve seen.

this solution is for ubuntu and for a different problem.

the packages mentioned are not available for opensuse and the ones that are (gobject-introspection, gtk3-devel) don’t solve my problem.

but thanks anyway…

so, i tried the same in several virtual machines with tumbleweed and leap 15.2, both fresh installations using kde, and i get the exact same issue.

is this a kde problem? b/c on a fresh leap15.2 install with gnome and on my linux mint cinnamon desktop everything works just fine from the start.

do i need to file a bug for this?

Possibly you need some packages that come with GNOME install.
Try to install KDE DE to system that work with GNOME and your hardware.

File a bug if you wish so.

Post:

zypper se -si cairo

so, after a while and some 'zypper patch’es and 'zypper dup’s later i tried again, and after installing

  • python3-requests
  • python3-pycairo
  • python3-gobject-Gdk

everything seems to work fine…

maybe there should be dependencies added to the gpodder package?