From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id D17EAC79FBD for ; Wed, 9 Sep 2026 17:37:53 +0000 (UTC) Received: from smtpout-02.galae.net (smtpout-02.galae.net [185.246.84.56]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.18356.1788975462428637957 for ; Wed, 09 Sep 2026 10:37:43 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@bootlin.com header.s=dkim header.b=O6Y1g10K; spf=pass (domain: bootlin.com, ip: 185.246.84.56, mailfrom: mathieu.dubois-briand@bootlin.com) Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-02.galae.net (Postfix) with ESMTPS id 302341A1A7F; Wed, 9 Sep 2026 17:37:40 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id EFE6960448; Wed, 9 Sep 2026 17:37:39 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id AFC3911C7AF53; Wed, 9 Sep 2026 19:37:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1788975455; h=from:subject:date:message-id:to:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=9R6cnWXXJmOatXi8kX2995eSeFkp4kmUeN9xY81/mBc=; b=O6Y1g10KOMLza99bI1xZszZHmf8Ek0RxK2lQGjhLZs/aRGkaE0g1YVezdwHKnzk10Qz8Bq D2uGSrjRALOL1hVTsxdjxY1HF/6KsJOQvmBC8YAY920nr30vglDRL7bvuKycF5AjoBfpRs b7uaEhTPObUYKU5c+eStgkJD07iCaPmLTjGLx0NXyLuhXHbSfa2IuemSiP0K6R9xYqHs2J FlW35YK3Bcl3Xf935Rz6O1kZO/ZEIxIdpBtDkTLETfuDFFC+FQ3/jxvDuEh/GO4Lr/gifT DQ0ySNpxAsW2kyRsLqZf2IBV3vZTRr0oc5YqYOUkyiHRu2F3Il+CNpWQ5Y/MWw== Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Wed, 09 Sep 2026 19:37:33 +0200 Message-Id: Subject: Re: [OE-core] [PATCH 1/2] classes/setuptools: use tomllib instead of regex to parse pyproject.toml From: "Mathieu Dubois-Briand" To: , X-Mailer: aerc 0.21.0-0-g5549850facc2 References: <20260909151906.3417094-1-ross.burton@arm.com> In-Reply-To: <20260909151906.3417094-1-ross.burton@arm.com> X-Last-TLS-Session-Version: TLSv1.3 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 09 Sep 2026 17:37:53 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/245485 On Wed Sep 9, 2026 at 5:19 PM CEST, Ross Burton via lists.openembedded.org = wrote: > BitBake now vendors in tomli[1] for when the host Python is older than > 3.11 so doesn't have tomllib. Rewrite the pyproject.toml parsing from > regexs to tomllib. > > Also ensure that the functions in setuptools3 and setuptools_legacy are > identical, as they had diverged. > > [1] bitbake 69810e0c0a ("lib/bb/_vendor: resync to add tomli") > > Signed-off-by: Ross Burton > --- Hi Ross, I've been getting some error on the autobuilder, event though I'm in sync on the bitbake side: ERROR: python3-semantic-version-native-2.10.0-r0 do_check_backend: Error ex= ecuting a python function in exec_func_python() autogenerated: The stack trace of python calls that resulted in this exception/failure was= : File: 'exec_func_python() autogenerated', lineno: 2, function: 0001: *** 0002:do_check_backend(d) 0003: File: '/srv/pokybuild/yocto-worker/qemux86-64-ptest/build/layers/openembedd= ed-core/meta/classes-recipe/setuptools3.bbclass', lineno: 27, function: do_= check_backend 0023: 0024: try: 0025: import tomllib 0026: except ImportError: *** 0027: import bb._vendor_tomli as tomllib 0028: 0029: filename =3D d.expand("${SETUPTOOLS_SETUP_PATH}/pyproject.tom= l") 0030: if os.path.exists(filename): 0031: with open(filename, "rb") as f: Exception: ModuleNotFoundError: No module named 'bb._vendor_tomli' https://autobuilder.yoctoproject.org/valkyrie/#/builders/73/builds/4525 Any clue about what might be wrong here? Thanks, Mathieu --=20 Mathieu Dubois-Briand, Bootlin Embedded Linux and Kernel engineering https://bootlin.com