Summary: | dev-python/setuptools-70.0.0 fails: ModuleNotFoundError: No module named 'backports' | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | nikita.localhost |
Component: | Current packages | Assignee: | Python Gentoo Team <python> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | CC: | nikita.localhost |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
build.log
emerge -pqv "=dev-python/setuptools-70.0.0" |
Description
nikita.localhost
2024-07-07 05:28:46 UTC
Please share the full build.log. Created attachment 897250 [details]
build.log
Thanks. ``` [...] File "/var/tmp/portage/dev-python/setuptools-70.0.0/work/setuptools-70.0.0/setuptools/__init__.py", line 16, in <module> from .dist import Distribution File "/var/tmp/portage/dev-python/setuptools-70.0.0/work/setuptools-70.0.0/setuptools/dist.py", line 31, in <module> from . import _entry_points File "/var/tmp/portage/dev-python/setuptools-70.0.0/work/setuptools-70.0.0/setuptools/_entry_points.py", line 6, in <module> from jaraco.text import yield_lines File "/usr/lib/python3.11/site-packages/jaraco/text/__init__.py", line 12, in <module> from jaraco.context import ExceptionTrap File "/usr/lib/python3.11/site-packages/jaraco/context.py", line 17, in <module> from backports import tarfile ModuleNotFoundError: No module named 'backports' ``` What happened up to this point? Did you unmerge anything? (In reply to Sam James from comment #4) > What happened up to this point? Did you unmerge anything? Not that I remember Created attachment 897251 [details]
emerge -pqv "=dev-python/setuptools-70.0.0"
I didn't find on my system `dev-python/backports-tarfile`, gonna try to emerge it and repeat build With `dev-python/backports-tarfile` build is successful. Question is: does setuptools has dependency on `dev-python/backports-tarfile`? And if it does, has it been written in ebuild? `equery g setuptools-70.0.0 --depth=4 | grep backports` shows me `dev-python/backports-tarfile` I think the problem is that dependencies of setuptools were emerged as binaries and that machine in EMERGE_DEFAULT_OPTS don't have `--with-bdeps`, and setuptools has implicit dependency on `dev-python/backports-tarfile` setuptools doesn't make use of dev-python/backports-tarfile. As described in your build.log, setuptools attempts to import: dev-python/jaraco-text which in turn attempts to import: dev-python/jaraco-context and that last package imports dev-python/backports-tarfile And indeed this dependency chain appears to be correctly described. Unless your recursive dependencies are broken, backports-tarfile should be installed. The `emerge -pv` output for *just setuptools* is not as enlightening as it could be. The output in full of 'emerge -p -uvDU @world' might help us (so we can see the merge order). (In reply to Sam James from comment #11) > The output in full of 'emerge -p -uvDU @world' might help us (so we can see > the merge order). Already fixed by manually installing `dev-python/backports-tarfile` and I started upgrading system, so if I will remember after upgrade I will try to delete `dev-python/backports-tarfile` and remerge setuptools No, please don't do that, it'd invalidate the dependencies of jaraco-context (it won't validly reproduce the issue even if it does fail). Thanks for the update anyhow. (In reply to Sam James from comment #13) > No, please don't do that, it'd invalidate the dependencies of jaraco-context > (it won't validly reproduce the issue even if it does fail). > > Thanks for the update anyhow. Thank you for your time! |