Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 721156 - =dev-python/defcon-0.6.0-r1: distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('pytest_runner')
Summary: =dev-python/defcon-0.6.0-r1: distutils.errors.DistutilsError: Could not find ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Pacho Ramos
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 716074
  Show dependency tree
 
Reported: 2020-05-06 00:20 UTC by Thomas Deutschmann (RETIRED)
Modified: 2020-05-06 18:46 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 Thomas Deutschmann (RETIRED) gentoo-dev 2020-05-06 00:20:38 UTC
While trying to keyword package I run into


 * Package:    dev-python/defcon-0.6.0-r1
 * Repository: gentoo
 * USE:        abi_x86_32 elibc_glibc kernel_linux python_targets_python3_6 userland_GNU x86
 * FEATURES:   network-sandbox preserve-libs sandbox test userpriv usersandbox
[...]
>>> Source compiled.
>>> Test phase: dev-python/defcon-0.6.0-r1
 * python3_6: running distutils-r1_run_phase python_test
python3.6 setup.py test
WARNING: The pip package is not available, falling back to EasyInstall for handling setup_requires/test_requires; this is deprecated and will be removed in a future version.
Download error on https://pypi.org/simple/pytest_runner/: [Errno -3] Temporary failure in name resolution -- Some packages may not be found!
Download error on https://pypi.org/simple/pytest-runner/: [Errno -3] Temporary failure in name resolution -- Some packages may not be found!
Couldn't find index page for 'pytest_runner' (maybe misspelled?)
Download error on https://pypi.org/simple/: [Errno -3] Temporary failure in name resolution -- Some packages may not be found!
No local packages or working download links found for pytest_runner
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/setuptools/installer.py", line 62, in fetch_build_egg
    pkg_resources.get_distribution('pip')
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 481, in get_distribution
    dist = get_provider(dist)
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 357, in get_provider
    return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0]
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 900, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 786, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'pip' distribution was not found and is required by the application

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "setup.py", line 187, in <module>
    setup(**setup_params)
  File "/usr/lib/python3.6/site-packages/setuptools/__init__.py", line 144, in setup
    _install_setup_requires(attrs)
  File "/usr/lib/python3.6/site-packages/setuptools/__init__.py", line 139, in _install_setup_requires
    dist.fetch_build_eggs(dist.setup_requires)
  File "/usr/lib/python3.6/site-packages/setuptools/dist.py", line 721, in fetch_build_eggs
    replace_conflicting=True,
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 782, in resolve
    replace_conflicting=replace_conflicting
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 1065, in best_match
    return self.obtain(req, installer)
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 1077, in obtain
    return installer(requirement)
  File "/usr/lib/python3.6/site-packages/setuptools/dist.py", line 777, in fetch_build_egg
    return fetch_build_egg(self, req)
  File "/usr/lib/python3.6/site-packages/setuptools/installer.py", line 70, in fetch_build_egg
    return _legacy_fetch_build_egg(dist, req)
  File "/usr/lib/python3.6/site-packages/setuptools/installer.py", line 53, in _legacy_fetch_build_egg
    return cmd.easy_install(req)
  File "/usr/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 679, in easy_install
    raise DistutilsError(msg)
distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('pytest_runner')
 * ERROR: dev-python/defcon-0.6.0-r1::gentoo failed (test phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  125:  Called src_test
 *   environment, line 2886:  Called distutils-r1_src_test
 *   environment, line 1232:  Called _distutils-r1_run_foreach_impl 'python_test'
 *   environment, line  432:  Called python_foreach_impl 'distutils-r1_run_phase' 'python_test'
 *   environment, line 2501:  Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test'
 *   environment, line 2014:  Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test'
 *   environment, line 2012:  Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'python_test'
 *   environment, line  820:  Called distutils-r1_run_phase 'python_test'
 *   environment, line 1169:  Called python_test
 *   environment, line 2846:  Called esetup.py 'test'
 *   environment, line 1558:  Called die
 * The specific snippet of code:
 *       "${@}" || die "${die_args[@]}";
 * 
 * If you need support, post the output of `emerge --info '=dev-python/defcon-0.6.0-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-python/defcon-0.6.0-r1::gentoo'`.
 * The complete build log is located at '/var/log/portage/dev-python:defcon-0.6.0-r1:20200506-001754.log'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/dev-python/defcon-0.6.0-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-python/defcon-0.6.0-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-python/defcon-0.6.0-r1/work/defcon-0.6.0'
 * S: '/var/tmp/portage/dev-python/defcon-0.6.0-r1/work/defcon-0.6.0'
Comment 1 Larry the Git Cow gentoo-dev 2020-05-06 18:46:24 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=714d3a1802c59e91297223ee20daeb519c12d476

commit 714d3a1802c59e91297223ee20daeb519c12d476
Author:     Pacho Ramos <pacho@gentoo.org>
AuthorDate: 2020-05-06 18:43:01 +0000
Commit:     Pacho Ramos <pacho@gentoo.org>
CommitDate: 2020-05-06 18:46:16 +0000

    dev-python/defcon: Fix tests
    
    Thanks-to: Thomas Deutschmann
    Closes: https://bugs.gentoo.org/721156
    Package-Manager: Portage-2.3.99, Repoman-2.3.22
    Signed-off-by: Pacho Ramos <pacho@gentoo.org>

 dev-python/defcon/defcon-0.6.0-r1.ebuild | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)