public inbox for kdevops@lists.linux.dev
 help / color / mirror / Atom feed
From: Julian Andres Klode <jak@debian.org>
To: Daniel Gomez <da.gomez@samsung.com>, 1095111@bugs.debian.org
Cc: kdevops@lists.linux.dev
Subject: Re: Bug#1095111: python3-apt must be installed and visible rom /usr/bin/python3
Date: Mon, 3 Feb 2025 21:01:56 +0100	[thread overview]
Message-ID: <20250203205048.GA3775124@debian.org> (raw)
In-Reply-To: <173861066472.72598.13066792952736369514.reportbug@sarkhan.home.arpa>

Control: reassign -1 ansible-core

On Mon, Feb 03, 2025 at 08:44:59PM +0100, Daniel Gomez wrote:
> Package: python3-apt
> Version: 2.9.6+b1
> Severity: important
> Tags: upstream
> X-Debbugs-Cc: da.gomez@samsung.com
> 
> Dear Maintainer,
> 
> The latest python3-apt releases 2.9.8 and 2.9.7 produce the following
> error with Ansible:
> 
> Error message:
> 
> 	python3-apt must be installed and visible from /usr/bin/python3.
> 
> As workaround, downgrading the package to the latest version working (2.9.6)
> "solves" the issue:
> 
> 	apt install -y python3-setuptools libapt-pkg-dev python3-pip git
> 	pip3 git+https://salsa.debian.org/apt-team/python-apt.git@2.9.6 \
> 	--break-system-packages
> 
> Tested with Ansible version:
> 
>     ii  ansible        9.5.1+dfsg-1 all
>     ii  ansible-core   2.17.1-1
> 
>     ansible --version
>     ansible [core 2.17.1]
>       ...
>       python version = 3.12.6 (main, Sep  7 2024, 14:20:15) [GCC 14.2.0]
>     (/usr/bin/python3)
>       jinja version = 3.1.3
>       libyaml = True
>     ansible-playbook --version
>     ansible-playbook [core 2.17.1]
>       ...
>       executable location = /usr/bin/ansible-playbook
>       python version = 3.12.6 (main, Sep  7 2024, 14:20:15) [GCC 14.2.0]
>     (/usr/bin/python3)
>       jinja version = 3.1.3
>       libyaml = True
> 
> Also,
> 
> Reported in kdevops project:
> https://lore.kernel.org/all/20250131-fix-python3-apt-v1-1-bcdb14b149ba@samsung.com/
> 
> Found the same issue in ludus:
> https://gitlab.com/badsectorlabs/ludus/-/issues/76
> 
> Daniel

python3-apt is working fine as you can see by it having migrated,
so clearly the modules are importable, otherwise the test suites
fail. You can easily check this yourself by creating a fresh
install or launching a container, install python3-apt and running

    python3 -c "import apt"

Of course did you even check if python3-apt is installed at all?
It's not part of a normal Debian install...

In any case, good luck, I'm out.

-- 
debian developer - deb.li/jak | jak-linux.org - free software dev
ubuntu core developer                              i speak de, en

  reply	other threads:[~2025-02-03 20:02 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20250203194500eucas1p2c48836498323fcab3418b47765df2623@eucas1p2.samsung.com>
2025-02-03 19:44 ` python3-apt must be installed and visible rom /usr/bin/python3 Daniel Gomez
2025-02-03 20:01   ` Julian Andres Klode [this message]
2025-02-04 11:25     ` Bug#1095111: " Daniel Gomez
2025-02-08 12:45       ` Julian Andres Klode

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250203205048.GA3775124@debian.org \
    --to=jak@debian.org \
    --cc=1095111@bugs.debian.org \
    --cc=da.gomez@samsung.com \
    --cc=kdevops@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox