You are not logged in.

#1 2024-04-27 23:42:28

ronw
Member
Registered: 2013-07-02
Posts: 52

gpodder won't start after today's update

I updated today, which included a gpodder update:

[2024-04-27T17:21:57-0400] [ALPM] upgraded gpodder (3.11.4-2 -> 3.11.4-3)

Now gpodder won't start:

$ gpodder
1714260770.288546 [gpodder.util] WARNING: html5lib was not found, fall-back to HTMLParser
1714260770.290438 [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.12/site-packages/gpodder/gtkui/app.py", line 31, in <module>
    from gpodder import core, util
  File "/usr/lib/python3.12/site-packages/gpodder/core.py", line 25, in <module>
    from gpodder import config, dbsqlite, extensions, model, util
  File "/usr/lib/python3.12/site-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.12/site-packages/gpodder/gtkui/app.py", line 31, in <module>
    from gpodder import core, util
  File "/usr/lib/python3.12/site-packages/gpodder/core.py", line 25, in <module>
    from gpodder import config, dbsqlite, extensions, model, util
  File "/usr/lib/python3.12/site-packages/gpodder/extensions.py", line 34, in <module>
    import imp
ModuleNotFoundError: No module named 'imp'

Searching for that error finds github and other results from last October and earlier this year about imp being replaced with importlib.

Downgrading to 3.11.4-2 did not help.

Last edited by ronw (2024-04-27 23:48:01)

Offline

#2 2024-04-28 00:06:12

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,662

Re: gpodder won't start after today's update

Offline

#3 2024-04-28 00:07:01

M2Ys4U
Member
Registered: 2024-02-13
Posts: 1

Re: gpodder won't start after today's update

I've just been hit with this too.

It looks like gPodder is relying on a python module (imp) that was deprecated in 3.4 removed in 3.12. Downgrading python might work, but downgrading gPodder won't.

There's a gpodder-git package in the AUR, I can confirm that works on my machine.

Offline

#4 2024-04-28 12:38:01

ronw
Member
Registered: 2013-07-02
Posts: 52

Re: gpodder won't start after today's update

This seems to indicate that gpodder has been rebuilt for python 3.12:

https://archlinux.org/todo/imp-module-r … ython-312/

Offline

#5 2024-04-28 12:39:32

arojas
Developer
From: Spain
Registered: 2011-10-09
Posts: 2,108

Re: gpodder won't start after today's update

ronw wrote:

This seems to indicate that gpodder has been rebuilt for python 3.12:

https://archlinux.org/todo/imp-module-r … ython-312/

That doesn't matter. Rebuilding is not going to fix uses of deprecated code.

Offline

#6 2024-05-01 03:02:29

christophergray
Member
Registered: 2021-05-28
Posts: 9

Re: gpodder won't start after today's update

Running from git works.  Create a virtual environment in a folder outside the git cloned gpodder folder.  And activate this environment before you run any pip commands.  You will need to pip3 install PyGObject  in addition to what is in the requirements.txt.

Offline

#7 2024-05-02 16:41:08

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,965

Re: gpodder won't start after today's update

Please prefer https://aur.archlinux.org/packages/gpodder-git to running things directly from git and pipping potentially system wide dependencies.

Offline

#8 2024-05-02 18:32:10

christophergray
Member
Registered: 2021-05-28
Posts: 9

Re: gpodder won't start after today's update

V1del wrote:

Please prefer https://aur.archlinux.org/packages/gpodder-git to running things directly from git and pipping potentially system wide dependencies.

Somehow I missed the AUR package, even though:

M2Ys4U wrote:

There's a gpodder-git package in the AUR, I can confirm that works on my machine.

I can confirm that doing git clone https://aur.archlinux.org/gpodder-git.git and makepkg -si was much easier than setting up a Python virtual environment and using pip, a process that has the potential to hose your system if you do it improperly.  Even though Python is a nice language, the experience with this part of its ecosystem has convinced me to abandon my education in Python and learn Go instead.

Offline

#9 2024-05-02 19:23:51

pengw
Member
Registered: 2014-04-03
Posts: 6

Re: gpodder won't start after today's update

I also ran into this issue, and I am now using the following Bash script "~/bin/gpo" (with "~/bin/gpodder" as a symlink to it), to run gPodder from the source. Benefit: Update is just a

git -C ~/upstream/gpodder pull

away.

Dependencies are:

pacman -S --needed --noconfirm git python

The script, saved to "~/bin/gpo",

chmod +x ~/bin/gpo

, with "~/bin" on PATH.

#! /bin/bash

BINNAME="$(basename $0)"
VENVPREFIX=${VENVPREFIX:-"$HOME/tools/gpodder"}
VENV="$VENVPREFIX/bin/activate"
SRC=${SRC:-"$HOME/upstream/gpodder"}
BINPREFIX="$SRC/bin"
REQ="$SRC/tools/requirements.txt"

if [[ ! -e "$SRC" ]]; then
    SRCDIR="$(dirname "$SRC")"
    SRCNAME="$(basename "$SRC")"
    mkdir -p "$SRCDIR"
    pushd "$SRCDIR"; git clone https://github.com/gpodder/gpodder "$SRCNAME";  popd;
fi

if [[ ! -e "$VENV" ]]; then
    if python -mvenv "$VENVPREFIX"; then
        source $VENV
        pip install --upgrade -r "$REQ"
        pip install --upgrade PyGObject
    else
        1>&2 echo "Python venv $VENV failed to install"
        exit 1
    fi
fi

source $VENV

"$BINPREFIX/$BINNAME" "$@"

Offline

#10 2024-05-03 04:58:04

scott_fakename
Member
Registered: 2012-08-15
Posts: 95

Re: gpodder won't start after today's update

I went to try to file a proper bug on the issue tracker (https://gitlab.archlinux.org/archlinux/ … r/-/issues) but it doesn't seem to want to let me log in or make an account.

Does anyone have an account on the gitlab and want to make a bug to get it updated in main line?

In the mean time I've had luck by just cloning the upstream repo and installing it into a python venv with

# Create a venv and activate it
$ python3 -mvenv gpo_venv
$ . gpo_venv/bin/activate

# Clone and install gpodder within the venv
$ git clone https://github.com/gpodder/gpodder.git
$ cd gpodder
$ pip install .

Last edited by scott_fakename (2024-05-03 04:58:39)

Offline

#11 2024-05-03 07:59:23

bulletmark
Member
From: Brisbane, Australia
Registered: 2013-10-22
Posts: 659

Re: gpodder won't start after today's update

I don't use gpodder but looking at what scott_fakename says above then the following will work (after trying it myself):

pipx install git+https://github.com/gpodder/gpodder.git
pipx inject gpodder requests

Offline

Board footer

Powered by FluxBB