dev-python/pygatt: emerge failed #1092

Closed
opened 2023-02-21 12:42:20 +01:00 by zentoo · 2 comments
>>> Emerging (1 of 1) dev-python/pygatt-4.0.5-r1::HomeAssistantRepository
 * pygatt-4.0.5.tar.gz BLAKE2B SHA512 size ;-) ...                                                                                   [ ok ]
>>> Unpacking source...
>>> Unpacking pygatt-4.0.5.tar.gz to /var/tmp/portage/dev-python/pygatt-4.0.5-r1/work
>>> Source unpacked in /var/tmp/portage/dev-python/pygatt-4.0.5-r1/work
>>> Preparing source in /var/tmp/portage/dev-python/pygatt-4.0.5-r1/work/pygatt-4.0.5 ...
 * Build system packages:
 *   dev-python/setuptools         : 67.3.2
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-python/pygatt-4.0.5-r1/work/pygatt-4.0.5 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-python/pygatt-4.0.5-r1/work/pygatt-4.0.5 ...
 * python3_10: running distutils-r1_run_phase distutils-r1_python_compile
python3.10 setup.py build -j 4
/usr/lib/python3.10/site-packages/setuptools/__init__.py:85: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated. Requirements should be satisfied by a PEP 517 installer. If you are using pip, you can try `pip install --use-pep517`.
  dist.fetch_build_eggs(dist.setup_requires)
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fead61aff40>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/nose/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fead61ae6b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/nose/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fead61af2e0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/nose/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fead61afca0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/nose/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fead61acc40>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/nose/
ERROR: Could not find a version that satisfies the requirement nose>=1.3.7 (from versions: none)
ERROR: No matching distribution found for nose>=1.3.7
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/setuptools/installer.py", line 97, in _fetch_build_egg_no_warn
    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/pygatt-4.0.5-r1/temp/tmpb2qljeec', '--quiet', 'nose>=1.3.7']' 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/pygatt-4.0.5-r1/work/pygatt-4.0.5/setup.py", line 16, in <module>
    setup(
  File "/usr/lib/python3.10/site-packages/setuptools/__init__.py", line 107, in setup
    _install_setup_requires(attrs)
  File "/usr/lib/python3.10/site-packages/setuptools/__init__.py", line 80, in _install_setup_requires
    _fetch_build_eggs(dist)
  File "/usr/lib/python3.10/site-packages/setuptools/__init__.py", line 85, in _fetch_build_eggs
    dist.fetch_build_eggs(dist.setup_requires)
  File "/usr/lib/python3.10/site-packages/setuptools/dist.py", line 894, in fetch_build_eggs
    return _fetch_build_eggs(self, requires)
  File "/usr/lib/python3.10/site-packages/setuptools/installer.py", line 39, in _fetch_build_eggs
    resolved_dists = pkg_resources.working_set.resolve(
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 815, in resolve
    dist = self._resolve_dist(
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 851, in _resolve_dist
    dist = best[req.key] = env.best_match(
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 1123, in best_match
    return self.obtain(req, installer)
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 1135, in obtain
    return installer(requirement)
  File "/usr/lib/python3.10/site-packages/setuptools/installer.py", line 99, in _fetch_build_egg_no_warn
    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/pygatt-4.0.5-r1/temp/tmpb2qljeec', '--quiet', 'nose>=1.3.7']' returned non-zero exit status 1.
 * ERROR: dev-python/pygatt-4.0.5-r1::HomeAssistantRepository failed (compile phase):
 *   (no error message)
 *
 * Call stack:
 *     ebuild.sh, line  136:  Called src_compile
 *   environment, line 3292:  Called distutils-r1_src_compile
 *   environment, line 1500:  Called _distutils-r1_run_foreach_impl 'distutils-r1_python_compile'
 *   environment, line  681:  Called python_foreach_impl 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 2993:  Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 2557:  Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 2555:  Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line  989:  Called distutils-r1_run_phase 'distutils-r1_python_compile'
 *   environment, line 1482:  Called distutils-r1_python_compile
 *   environment, line 1292:  Called esetup.py 'build' '-j' '4'
 *   environment, line 2089:  Called die
 * The specific snippet of code:
 *       "${@}" || die -n;
 *
 * If you need support, post the output of `emerge --info '=dev-python/pygatt-4.0.5-r1::HomeAssistantRepository'`,
 * the complete build log and the output of `emerge -pqv '=dev-python/pygatt-4.0.5-r1::HomeAssistantRepository'`.
 * The complete build log is located at '/var/tmp/portage/dev-python/pygatt-4.0.5-r1/temp/build.log.gz'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-python/pygatt-4.0.5-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-python/pygatt-4.0.5-r1/work/pygatt-4.0.5'
 * S: '/var/tmp/portage/dev-python/pygatt-4.0.5-r1/work/pygatt-4.0.5'

>>> Failed to emerge dev-python/pygatt-4.0.5-r1
``` >>> Emerging (1 of 1) dev-python/pygatt-4.0.5-r1::HomeAssistantRepository * pygatt-4.0.5.tar.gz BLAKE2B SHA512 size ;-) ... [ ok ] >>> Unpacking source... >>> Unpacking pygatt-4.0.5.tar.gz to /var/tmp/portage/dev-python/pygatt-4.0.5-r1/work >>> Source unpacked in /var/tmp/portage/dev-python/pygatt-4.0.5-r1/work >>> Preparing source in /var/tmp/portage/dev-python/pygatt-4.0.5-r1/work/pygatt-4.0.5 ... * Build system packages: * dev-python/setuptools : 67.3.2 >>> Source prepared. >>> Configuring source in /var/tmp/portage/dev-python/pygatt-4.0.5-r1/work/pygatt-4.0.5 ... >>> Source configured. >>> Compiling source in /var/tmp/portage/dev-python/pygatt-4.0.5-r1/work/pygatt-4.0.5 ... * python3_10: running distutils-r1_run_phase distutils-r1_python_compile python3.10 setup.py build -j 4 /usr/lib/python3.10/site-packages/setuptools/__init__.py:85: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated. Requirements should be satisfied by a PEP 517 installer. If you are using pip, you can try `pip install --use-pep517`. dist.fetch_build_eggs(dist.setup_requires) WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fead61aff40>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/nose/ WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fead61ae6b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/nose/ WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fead61af2e0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/nose/ WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fead61afca0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/nose/ WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fead61acc40>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/nose/ ERROR: Could not find a version that satisfies the requirement nose>=1.3.7 (from versions: none) ERROR: No matching distribution found for nose>=1.3.7 Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/setuptools/installer.py", line 97, in _fetch_build_egg_no_warn 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/pygatt-4.0.5-r1/temp/tmpb2qljeec', '--quiet', 'nose>=1.3.7']' 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/pygatt-4.0.5-r1/work/pygatt-4.0.5/setup.py", line 16, in <module> setup( File "/usr/lib/python3.10/site-packages/setuptools/__init__.py", line 107, in setup _install_setup_requires(attrs) File "/usr/lib/python3.10/site-packages/setuptools/__init__.py", line 80, in _install_setup_requires _fetch_build_eggs(dist) File "/usr/lib/python3.10/site-packages/setuptools/__init__.py", line 85, in _fetch_build_eggs dist.fetch_build_eggs(dist.setup_requires) File "/usr/lib/python3.10/site-packages/setuptools/dist.py", line 894, in fetch_build_eggs return _fetch_build_eggs(self, requires) File "/usr/lib/python3.10/site-packages/setuptools/installer.py", line 39, in _fetch_build_eggs resolved_dists = pkg_resources.working_set.resolve( File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 815, in resolve dist = self._resolve_dist( File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 851, in _resolve_dist dist = best[req.key] = env.best_match( File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 1123, in best_match return self.obtain(req, installer) File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 1135, in obtain return installer(requirement) File "/usr/lib/python3.10/site-packages/setuptools/installer.py", line 99, in _fetch_build_egg_no_warn 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/pygatt-4.0.5-r1/temp/tmpb2qljeec', '--quiet', 'nose>=1.3.7']' returned non-zero exit status 1. * ERROR: dev-python/pygatt-4.0.5-r1::HomeAssistantRepository failed (compile phase): * (no error message) * * Call stack: * ebuild.sh, line 136: Called src_compile * environment, line 3292: Called distutils-r1_src_compile * environment, line 1500: Called _distutils-r1_run_foreach_impl 'distutils-r1_python_compile' * environment, line 681: Called python_foreach_impl 'distutils-r1_run_phase' 'distutils-r1_python_compile' * environment, line 2993: Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile' * environment, line 2557: Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile' * environment, line 2555: Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'distutils-r1_python_compile' * environment, line 989: Called distutils-r1_run_phase 'distutils-r1_python_compile' * environment, line 1482: Called distutils-r1_python_compile * environment, line 1292: Called esetup.py 'build' '-j' '4' * environment, line 2089: Called die * The specific snippet of code: * "${@}" || die -n; * * If you need support, post the output of `emerge --info '=dev-python/pygatt-4.0.5-r1::HomeAssistantRepository'`, * the complete build log and the output of `emerge -pqv '=dev-python/pygatt-4.0.5-r1::HomeAssistantRepository'`. * The complete build log is located at '/var/tmp/portage/dev-python/pygatt-4.0.5-r1/temp/build.log.gz'. * The ebuild environment file is located at '/var/tmp/portage/dev-python/pygatt-4.0.5-r1/temp/environment'. * Working directory: '/var/tmp/portage/dev-python/pygatt-4.0.5-r1/work/pygatt-4.0.5' * S: '/var/tmp/portage/dev-python/pygatt-4.0.5-r1/work/pygatt-4.0.5' >>> Failed to emerge dev-python/pygatt-4.0.5-r1 ```
Author

It seems related to a DNS resolution problem but I've try to change nameserver in /etc/resolv.conf with different ones (ISP, Google, Cloudflare) and still get the same message.

I even try to force IPv4 by setting locally an IPv4 for pypi.python.org domain in /etc/hosts. Note: I'm not sure pip is using this domain.

It seems related to a DNS resolution problem but I've try to change nameserver in /etc/resolv.conf with different ones (ISP, Google, Cloudflare) and still get the same message. I even try to force IPv4 by setting locally an IPv4 for pypi.python.org domain in /etc/hosts. Note: I'm not sure pip is using this domain.
Contributor

check again with these modifications in pull ddb5532108

check again with these modifications in pull https://git.edevau.net/onkelbeh/HomeAssistantRepository/commit/ddb5532108040145810fea070b660f3fb2d6f2e6
onkelbeh added the Bug label 2023-02-26 09:23:29 +01:00
onkelbeh added this to the 2023.2.5 milestone 2023-02-26 09:23:48 +01:00
Sign in to join this conversation.
No labels Bug
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: onkelbeh/HomeAssistantRepository#1092