On Tue, 14 Jul 2026 at 14:21, Barde, Himani Ramesh via lists.openembedded.org <[email protected]> wrote: > The error occurs when building python3-setuptools-scm >= 10.1.2. > > This was reported by the AUH on June 23 (subject: "[OE-core] [AUH] > python3-setuptools-scm: upgrading to 10.1.2 FAILED"): > > File ".../setuptools_scm-10.1.2/src/setuptools_scm/_get_version.py", line 55, > in get_version > from vcs_versioning._environment import VcsEnvironment > ModuleNotFoundError: No module named 'vcs_versioning._environment' > > ERROR Backend subprocess exited when trying to invoke > get_requires_for_build_wheel > > setuptools-scm's build backend calls get_version() during > get_requires_for_build_wheel, which tries to import > vcs_versioning._environment (a vcs-versioning 2.x API). The sysroot has > vcs-versioning 1.1.1, which lacks that module. > > SETUPTOOLS_SCM_PRETEND_VERSION is setuptools-scm's own documented mechanism > for this situation. But if you prefer a different approach (e.g., upgrading > vcs-versioning to 2.x), happy to defer.
Thanks! The issue is that newer setuptools-scm needs newer vcs-versioning as well - but this was not clear from the commit with the 'pretend_version' fix or your comment to Mathieu. The point I wanted to make for the future is: - it's better to include any error you see into the commit with the fix, so the error is documented together with the fix and can be seen by reviewers - if there's a choice between a workaround, and version update for a dependency, it's better to update the versions in lockstep. Workarounds tend to be forgotten, they linger around long after the issue is otherwise fixed, and it becomes difficult to understand why they are there and test whether they're still needed. In any case, both updates have already landed in master, so nothing needs to be done. Alex
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#240886): https://lists.openembedded.org/g/openembedded-core/message/240886 Mute This Topic: https://lists.openembedded.org/mt/120170799/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
