Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 792489 - dev-python/cbor2-5.3.0 with python3_10: /usr/bin/python3.10: No module named pip
Summary: dev-python/cbor2-5.3.0 with python3_10: /usr/bin/python3.10: No module named pip
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-27 14:05 UTC by Andrey Grozin
Modified: 2021-05-27 14:15 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Grozin gentoo-dev 2021-05-27 14:05:33 UTC
Have just added python3_10 to PYTHON_TARGETS, doing emerge -avuND @world

python3.10 setup.py build -j 6
/usr/bin/python3.10: No module named pip
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/setuptools/installer.py", line 75, in fetch_build_egg
    subprocess.check_call(cmd)
  File "/usr/lib/python3.10/subprocess.py", line 369, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/bin/python3.10', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/var/tmp/portage/dev-python/cbor2-5.3.0/temp/tmpjc472533', '--quiet', 'setuptools_scm>=1.7.0']' returned non-zero exit status 1.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/cbor2-5.3.0/work/cbor2-5.3.0/setup.py", line 67, in <module>
    setup(
  File "/usr/lib/python3.10/site-packages/setuptools/__init__.py", line 152, in setup
    _install_setup_requires(attrs)
  File "/usr/lib/python3.10/site-packages/setuptools/__init__.py", line 147, in _install_setup_requires
    dist.fetch_build_eggs(dist.setup_requires)
  File "/usr/lib/python3.10/site-packages/setuptools/dist.py", line 779, in fetch_build_eggs
    resolved_dists = pkg_resources.working_set.resolve(
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 766, in resolve
    dist = best[req.key] = env.best_match(
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 1051, in best_match
    return self.obtain(req, installer)
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 1063, in obtain
    return installer(requirement)
  File "/usr/lib/python3.10/site-packages/setuptools/dist.py", line 838, in fetch_build_egg
    return fetch_build_egg(self, req)
  File "/usr/lib/python3.10/site-packages/setuptools/installer.py", line 77, in fetch_build_egg
    raise DistutilsError(str(e)) from e
distutils.errors.DistutilsError: Command '['/usr/bin/python3.10', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/var/tmp/portage/dev-python/cbor2-5.3.0/temp/tmpjc472533', '--quiet', 'setuptools_scm>=1.7.0']' returned non-zero exit status 1.
 * ERROR: dev-python/cbor2-5.3.0::gentoo failed (compile phase):
 *   (no error message)
Comment 1 Larry the Git Cow gentoo-dev 2021-05-27 14:15:51 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=10250416da9cc790619f69c31431d6cf1d4a7856

commit 10250416da9cc790619f69c31431d6cf1d4a7856
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2021-05-27 14:14:38 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2021-05-27 14:15:46 +0000

    dev-python/cbor2: Add setuptools_scm dep
    
    Closes: https://bugs.gentoo.org/792489
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 dev-python/cbor2/cbor2-5.3.0.ebuild | 3 +++
 1 file changed, 3 insertions(+)