Gpodder doesn't start anymore on Ubuntu 24.04 problem with Python 3.12 - ModuleNotFoundError: No module named 'imp'

Bug #2058098 reported by Xavier Guillot
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
loupe (Ubuntu)
Fix Committed
Undecided
Unassigned

Bug Description

Hi, since a few days I can't launch Gpodder (podcast program - https://gpodder.github.io/) anymore, it's because Ubuntu 24.04 now uses Python 3.12, and gpodder 3.11.4 does not support it.

It's needed to have the package maintainer please apply https://github.com/gpodder/gpodder/commit/dd9b594d24a541c0f1d3b096e47b6d7f1c11ca7e and https://github.com/gpodder/gpodder/commit/510de4b3a0b0444231f87bc6cb60527817847865 to make it work

"[gpodder.log] ERROR: Uncaught exception: Traceback (most recent call last):
  File "/usr/bin/gpodder", line 181, in <module>
    main()
  File "/usr/bin/gpodder", line 173, in main
    from gpodder.gtkui import app
  File "/usr/lib/python3/dist-packages/gpodder/gtkui/app.py", line 31, in <module>
    from gpodder import core, util
  File "/usr/lib/python3/dist-packages/gpodder/core.py", line 25, in <module>
    from gpodder import config, dbsqlite, extensions, model, util
  File "/usr/lib/python3/dist-packages/gpodder/extensions.py", line 34, in <module>
    import imp
ModuleNotFoundError: No module named 'imp'

Traceback (most recent call last):
  File "/usr/bin/gpodder", line 181, in <module>
    main()
  File "/usr/bin/gpodder", line 173, in main
    from gpodder.gtkui import app
  File "/usr/lib/python3/dist-packages/gpodder/gtkui/app.py", line 31, in <module>
    from gpodder import core, util
  File "/usr/lib/python3/dist-packages/gpodder/core.py", line 25, in <module>
    from gpodder import config, dbsqlite, extensions, model, util
  File "/usr/lib/python3/dist-packages/gpodder/extensions.py", line 34, in <module>
    import imp
ModuleNotFoundError: No module named 'imp'"

Upstream bug :
https://github.com/gpodder/gpodder/issues/1614

Thanks !

Revision history for this message
Xavier Guillot (valeryan-24) wrote (last edit ):

I don't know why the bug is assigned to project "loupe", as I well wrote "gpodder" for the package affected !

description: updated
description: updated
Revision history for this message
Xavier Guillot (valeryan-24) wrote :

Gpodder doesn't start anymore on Ubuntu 24.04 due to Python 3.12 :

File "/usr/bin/gpodder", lines 172 to 181 :

    if gpodder.ui.gtk:
        from gpodder.gtkui import app
        gpodder.ui_folders.insert(0, os.path.join(ui_folder, 'gtk'))
        app.main(options)
    else:
        logger.error('No GUI selected.')

if __name__ == '__main__':
    main()

File "/usr/lib/python3/dist-packages/gpodder/gtkui/app.py", lines 30 and 31 :

import gpodder
from gpodder import core, util

File "/usr/lib/python3/dist-packages/gpodder/core.py", lines 24 and 25 :

import gpodder
from gpodder import config, dbsqlite, extensions, model, util

File "/usr/lib/python3/dist-packages/gpodder/extensions.py", line 34 :

import imp

https://github.com/gpodder/gpodder/issues/1614

Revision history for this message
Tony Mancill (tmancill) wrote :

A patched version 3.11.3-2 tested against Python 3.12 (in Debian unstable) has been uploaded to Debian: https://tracker.debian.org/news/1512534/accepted-gpodder-3113-2-source-into-unstable/

Jeremy Bícha (jbicha)
Changed in loupe (Ubuntu):
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.