From: Trevor Gamblin <tgamblin@baylibre.com>
To: Alexander Kanavin <alex.kanavin@gmail.com>
Cc: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>,
openembedded-core@lists.openembedded.org,
Ross Burton <ross.burton@arm.com>,
Tim Orling <tim.orling@konsulko.com>
Subject: Re: [OE-core][PATCH 0/5 v2] python3: upgrade 3.13.9 -> 3.14.2
Date: Mon, 22 Dec 2025 14:52:06 -0500 [thread overview]
Message-ID: <60b08678-6380-4512-a1e6-0518ae4710c4@baylibre.com> (raw)
In-Reply-To: <CANNYZj9+DPHLoWUsNngX12JwA1ZntaVrRmyyOMqiH7mN_5_E6Q@mail.gmail.com>
On 2025-12-22 14:33, Alexander Kanavin wrote:
> On Mon, 22 Dec 2025 at 19:36, Trevor Gamblin via
> lists.openembedded.org <tgamblin=baylibre.com@lists.openembedded.org>
> wrote:
>>> Testing 'maturin develop' requires Rust cross-canadian in the SDK
>>> Traceback (most recent call last):
>>> File "/srv/pokybuild/yocto-worker/qemux86/build/layers/openembedded-core/meta/lib/oeqa/sdk/cases/maturin.py", line 30, in test_maturin_list_python
>>> self.assertIn(expected, output)
>>> ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
>>> AssertionError: '3.14 at /srv/pokybuild/yocto-worker/qemux86/build/build/tmp/work/qemux86-poky-linux/core-image-minimal/1.0/testsdkext/buildtools/sysroots/x86_64-pokysdk-linux/usr/bin/python3' not found in '🐍 1 python interpreter found:\n - CPython 3.13 at /srv/pokybuild/yocto-worker/qemux86/build/buildtools/sysroots/x86_64-pokysdk-linux/usr/bin/python3.13\n'
>>> ...
>>> RESULTS - maturin.MaturinTest.test_maturin_list_python: FAILED (3.57s)
>> I'm not sure how to address this one - it looks like the problem is that
>> the buildtools tarball has a 3.13.4 binary in it (at least when I try
>> locally). Where does that get updated?
> I think the problem is not in the buildtools. This is the test:
>
> def test_maturin_list_python(self):
> out = self._run(r"""python3 -c 'import sys;
> print(f"{sys.executable}\n{sys.version_info.major}.{sys.version_info.minor}")'""")
> executable, version = out.splitlines()
>
> output = self._run("maturin list-python")
> # The output looks like this:
> # - CPython 3.13 at /usr/bin/python3
> # We don't want to assume CPython so just check for the
> version and path.
> expected = f"{version} at {executable}"
> self.assertIn(expected, output)
>
> So first 'python3' executable from the SDK reports its version (which
> says 3.14 as it should be). Then 'maturin list-python' runs, and for
> some reason it falls through to (or is executed with) earlier python3
> from the buildtools on the host, which doesn't seem correct, as
> maturin should be run by python3 from the SDK, and report that.
Maybe. I tried all of this locally (on a F43 system, which includes
3.14.2 as of writing), and after I sourced the pokysdk script, the
interpreter on my path changed to version 3.13.4. Seems that the
install-buildtools script is (at least for me) resulting in a 3.13.4
version is getting pulled in. I'd think maybe something got contaminated
somehow from my cache, but there'd be newer 3.13.x versions for it to
grab if that were the case.
>
> I also wonder why this hasn't been seen previously, as build hosts
> have all kinds of python versions installed. CC Ross, Tim.
>
> Alex
next prev parent reply other threads:[~2025-12-22 19:52 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-19 13:47 [OE-core][PATCH 0/5 v2] python3: upgrade 3.13.9 -> 3.14.2 Trevor Gamblin
2025-12-19 13:47 ` [PATCH 1/5 v2] python3: upgrade 3.13.9 -> 3.14.0 Trevor Gamblin
2025-12-19 13:47 ` [PATCH 2/5 v2] python3targetconfig: export _PYTHON_PROJECT_BASE Trevor Gamblin
2025-12-19 13:47 ` [PATCH 3/5 v2] python_pep517: add --prefix to nativepython3 call Trevor Gamblin
2025-12-19 13:47 ` [PATCH 4/5 v2] python3: upgrade 3.14.0 -> 3.14.2 Trevor Gamblin
2025-12-19 13:47 ` [PATCH 5/5 v2] python3: add _py_warnings, annotationlib to core Trevor Gamblin
2025-12-22 8:11 ` [OE-core][PATCH 0/5 v2] python3: upgrade 3.13.9 -> 3.14.2 Mathieu Dubois-Briand
2025-12-22 18:36 ` Trevor Gamblin
2025-12-22 19:33 ` Alexander Kanavin
2025-12-22 19:52 ` Trevor Gamblin [this message]
2025-12-22 20:00 ` Alexander Kanavin
2026-01-05 14:17 ` Trevor Gamblin
2026-01-06 9:39 ` Alexander Kanavin
2026-01-06 19:22 ` Trevor Gamblin
[not found] ` <18883AAF7D8D6C1A.2355985@lists.openembedded.org>
2026-01-08 13:47 ` Trevor Gamblin
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=60b08678-6380-4512-a1e6-0518ae4710c4@baylibre.com \
--to=tgamblin@baylibre.com \
--cc=alex.kanavin@gmail.com \
--cc=mathieu.dubois-briand@bootlin.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=ross.burton@arm.com \
--cc=tim.orling@konsulko.com \
/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