You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@qpid.apache.org by Richard Sylvain <sy...@skyguide.ch> on 2024/01/03 16:27:56 UTC

install python-qpid-proton-0.39.0.tar.gz on linux RHEL8

Hi all

I try to install python-qpid-proton-0.39.0.tar.gz on linux RHEL8.6

This linux host do not access to internet.
Python and packages are installed via yum
python38.x86_64                                    3.8.12-1...
python38-pip.noarch                                19.3.1-5...


python3 --version
Python 3.8.12

pip3 --version
pip 19.3.1 from /usr/lib/python3.8/site-packages/pip (python 3.8

I don't understand the error message
ERROR: Could not find a version that satisfies the requirement setuptools (from versions: none)
Any idea of this issue?

Sylvain




python3 -m pip install python-qpid-proton-0.39.0.tar.gz -v --user --no-index --no-deps
Ignoring indexes: https://pypi.org/simple
Created temporary directory: /tmp/pip-ephem-wheel-cache-agnievw2
Created temporary directory: /tmp/pip-req-tracker-mpq3ibgo
Created requirements tracker '/tmp/pip-req-tracker-mpq3ibgo'
Created temporary directory: /tmp/pip-install-h9kque_4
Processing ./python-qpid-proton-0.39.0.tar.gz
 Created temporary directory: /tmp/pip-req-build-gu6ore8h
  Added file:///home/sylvain/python-qpid-proton-0.39.0.tar.gz to build tracker '/tmp/pip-req-tracker-mpq3ibgo'
  Created temporary directory: /tmp/pip-build-env-joipssag
  Running command /usr/bin/python3 /usr/lib/python3.8/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-joipssag/overlay --no-warn-script-location -v --no-binary :none: --only-binary :none: --no-index -- setuptools 'cffi>=1.0.0'
  Ignoring indexes: https://pypi.org/simple
  Created temporary directory: /tmp/pip-ephem-wheel-cache-3r2nr05x
  Re-using requirements tracker '/tmp/pip-req-tracker-mpq3ibgo'
  Created temporary directory: /tmp/pip-install-mgycinnl
  0 location(s) to search for versions of setuptools:
  Given no hashes to check 0 links for project 'setuptools': discarding no candidates
  ERROR: Could not find a version that satisfies the requirement setuptools (from versions: none)
  Cleaning up...
  Cleaned build tracker '/tmp/pip-req-tracker-mpq3ibgo'
  ERROR: No matching distribution found for setuptools
  Exception information:
  Traceback (most recent call last):
    File "/usr/lib/python3.8/site-packages/pip/_internal/cli/base_command.py", line 153, in _main
      status = self.run(options, args)
    File "/usr/lib/python3.8/site-packages/pip/_internal/commands/install.py", line 401, in run
      resolver.resolve(requirement_set)
    File "/usr/lib/python3.8/site-packages/pip/_internal/legacy_resolve.py", line 202, in resolve
      self._resolve_one(requirement_set, req)
    File "/usr/lib/python3.8/site-packages/pip/_internal/legacy_resolve.py", line 368, in _resolve_one
      abstract_dist = self._get_abstract_dist_for(req_to_install)
    File "/usr/lib/python3.8/site-packages/pip/_internal/legacy_resolve.py", line 314, in _get_abstract_dist_for
      req.populate_link(self.finder, upgrade_allowed, self.require_hashes)
    File "/usr/lib/python3.8/site-packages/pip/_internal/req/req_install.py", line 226, in populate_link
      self.link = finder.find_requirement(self, upgrade)
    File "/usr/lib/python3.8/site-packages/pip/_internal/index.py", line 905, in find_requirement
      raise DistributionNotFound(
  pip._internal.exceptions.DistributionNotFound: No matching distribution found for setuptools
  Installing build dependencies ... error
Cleaning up...
  Removing source in /tmp/pip-req-build-gu6ore8h
Removed file:///home/sylvain/python-qpid-proton-0.39.0.tar.gz from build tracker '/tmp/pip-req-tracker-mpq3ibgo'
Removed build tracker '/tmp/pip-req-tracker-mpq3ibgo'
ERROR: Command errored out with exit status 1: /usr/bin/python3 /usr/lib/python3.8/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-joipssag/overlay --no-warn-script-location -v --no-binary :none: --only-binary :none: --no-index -- setuptools 'cffi>=1.0.0' Check the logs for full command output.
Exception information:
Traceback (most recent call last):
  File "/usr/lib/python3.8/site-packages/pip/_internal/cli/base_command.py", line 153, in _main
    status = self.run(options, args)
  File "/usr/lib/python3.8/site-packages/pip/_internal/commands/install.py", line 401, in run
    resolver.resolve(requirement_set)
  File "/usr/lib/python3.8/site-packages/pip/_internal/legacy_resolve.py", line 202, in resolve
    self._resolve_one(requirement_set, req)
  File "/usr/lib/python3.8/site-packages/pip/_internal/legacy_resolve.py", line 368, in _resolve_one
    abstract_dist = self._get_abstract_dist_for(req_to_install)
  File "/usr/lib/python3.8/site-packages/pip/_internal/legacy_resolve.py", line 315, in _get_abstract_dist_for
    abstract_dist = self.preparer.prepare_linked_requirement(
  File "/usr/lib/python3.8/site-packages/pip/_internal/operations/prepare.py", line 223, in prepare_linked_requirement
    abstract_dist = _get_prepared_distribution(
  File "/usr/lib/python3.8/site-packages/pip/_internal/operations/prepare.py", line 49, in _get_prepared_distribution
    abstract_dist.prepare_distribution_metadata(finder, build_isolation)
  File "/usr/lib/python3.8/site-packages/pip/_internal/distributions/source/legacy.py", line 37, in prepare_distribution_metadata
    self._setup_isolation(finder)
  File "/usr/lib/python3.8/site-packages/pip/_internal/distributions/source/legacy.py", line 61, in _setup_isolation
    self.req.build_env.install_requirements(
  File "/usr/lib/python3.8/site-packages/pip/_internal/build_env.py", line 201, in install_requirements
    call_subprocess(args, spinner=spinner)
  File "/usr/lib/python3.8/site-packages/pip/_internal/utils/subprocess.py", line 242, in call_subprocess
    raise InstallationError(exc_msg)
pip._internal.exceptions.InstallationError: Command errored out with exit status 1: /usr/bin/python3 /usr/lib/python3.8/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-joipssag/overlay --no-warn-script-location -v --no-binary :none: --only-binary :none: --no-index -- setuptools 'cffi>=1.0.0' Check the logs for full command output.

Re: install python-qpid-proton-0.39.0.tar.gz on linux RHEL8

Posted by Jiri Daněk <jd...@redhat.com>.
This is an effect of https://peps.python.org/pep-0517/, which says

> A build frontend SHOULD, by default, create an isolated environment for
each build, containing only the standard library and any explicitly
requested build-dependencies. This has two benefits:

Pip install tries to build the package, so it tries to create an isolated
build environment, and to do that, it tries to install packages from PyPI,
namely setuptools and cffi.

Here are some suggestions from "all over the internet", mainly
https://stackoverflow.com/questions/67594547/installing-python-package-in-offline-environment-does-not-find-installed-depende,
what to do
run pip with --no-build-isolation, so that if you already have setuptools
and cffi installed, it will be directly used
or maybe set the following envs:
PIP_DISABLE_VERSION_CHECK=1, PIP_NO_INDEX=1,
and PIP_FIND_LINKS=/directory/containing/needed/wheels


On Wed, Jan 3, 2024 at 5:40 PM Richard Sylvain <sy...@skyguide.ch>
wrote:

> Hi all
>
> I try to install python-qpid-proton-0.39.0.tar.gz on linux RHEL8.6
>
> This linux host do not access to internet.
> Python and packages are installed via yum
> python38.x86_64                                    3.8.12-1...
> python38-pip.noarch                                19.3.1-5...
>
>
> python3 --version
> Python 3.8.12
>
> pip3 --version
> pip 19.3.1 from /usr/lib/python3.8/site-packages/pip (python 3.8
>
> I don't understand the error message
> ERROR: Could not find a version that satisfies the requirement setuptools
> (from versions: none)
> Any idea of this issue?
>
> Sylvain
>
>
>
>
> python3 -m pip install python-qpid-proton-0.39.0.tar.gz -v --user
> --no-index --no-deps
> Ignoring indexes: https://pypi.org/simple
> Created temporary directory: /tmp/pip-ephem-wheel-cache-agnievw2
> Created temporary directory: /tmp/pip-req-tracker-mpq3ibgo
> Created requirements tracker '/tmp/pip-req-tracker-mpq3ibgo'
> Created temporary directory: /tmp/pip-install-h9kque_4
> Processing ./python-qpid-proton-0.39.0.tar.gz
>  Created temporary directory: /tmp/pip-req-build-gu6ore8h
>   Added file:///home/sylvain/python-qpid-proton-0.39.0.tar.gz to build
> tracker '/tmp/pip-req-tracker-mpq3ibgo'
>   Created temporary directory: /tmp/pip-build-env-joipssag
>   Running command /usr/bin/python3 /usr/lib/python3.8/site-packages/pip
> install --ignore-installed --no-user --prefix
> /tmp/pip-build-env-joipssag/overlay --no-warn-script-location -v
> --no-binary :none: --only-binary :none: --no-index -- setuptools
> 'cffi>=1.0.0'
>   Ignoring indexes: https://pypi.org/simple
>   Created temporary directory: /tmp/pip-ephem-wheel-cache-3r2nr05x
>   Re-using requirements tracker '/tmp/pip-req-tracker-mpq3ibgo'
>   Created temporary directory: /tmp/pip-install-mgycinnl
>   0 location(s) to search for versions of setuptools:
>   Given no hashes to check 0 links for project 'setuptools': discarding no
> candidates
>   ERROR: Could not find a version that satisfies the requirement
> setuptools (from versions: none)
>   Cleaning up...
>   Cleaned build tracker '/tmp/pip-req-tracker-mpq3ibgo'
>   ERROR: No matching distribution found for setuptools
>   Exception information:
>   Traceback (most recent call last):
>     File
> "/usr/lib/python3.8/site-packages/pip/_internal/cli/base_command.py", line
> 153, in _main
>       status = self.run(options, args)
>     File
> "/usr/lib/python3.8/site-packages/pip/_internal/commands/install.py", line
> 401, in run
>       resolver.resolve(requirement_set)
>     File
> "/usr/lib/python3.8/site-packages/pip/_internal/legacy_resolve.py", line
> 202, in resolve
>       self._resolve_one(requirement_set, req)
>     File
> "/usr/lib/python3.8/site-packages/pip/_internal/legacy_resolve.py", line
> 368, in _resolve_one
>       abstract_dist = self._get_abstract_dist_for(req_to_install)
>     File
> "/usr/lib/python3.8/site-packages/pip/_internal/legacy_resolve.py", line
> 314, in _get_abstract_dist_for
>       req.populate_link(self.finder, upgrade_allowed, self.require_hashes)
>     File
> "/usr/lib/python3.8/site-packages/pip/_internal/req/req_install.py", line
> 226, in populate_link
>       self.link = finder.find_requirement(self, upgrade)
>     File "/usr/lib/python3.8/site-packages/pip/_internal/index.py", line
> 905, in find_requirement
>       raise DistributionNotFound(
>   pip._internal.exceptions.DistributionNotFound: No matching distribution
> found for setuptools
>   Installing build dependencies ... error
> Cleaning up...
>   Removing source in /tmp/pip-req-build-gu6ore8h
> Removed file:///home/sylvain/python-qpid-proton-0.39.0.tar.gz from build
> tracker '/tmp/pip-req-tracker-mpq3ibgo'
> Removed build tracker '/tmp/pip-req-tracker-mpq3ibgo'
> ERROR: Command errored out with exit status 1: /usr/bin/python3
> /usr/lib/python3.8/site-packages/pip install --ignore-installed --no-user
> --prefix /tmp/pip-build-env-joipssag/overlay --no-warn-script-location -v
> --no-binary :none: --only-binary :none: --no-index -- setuptools
> 'cffi>=1.0.0' Check the logs for full command output.
> Exception information:
> Traceback (most recent call last):
>   File
> "/usr/lib/python3.8/site-packages/pip/_internal/cli/base_command.py", line
> 153, in _main
>     status = self.run(options, args)
>   File
> "/usr/lib/python3.8/site-packages/pip/_internal/commands/install.py", line
> 401, in run
>     resolver.resolve(requirement_set)
>   File "/usr/lib/python3.8/site-packages/pip/_internal/legacy_resolve.py",
> line 202, in resolve
>     self._resolve_one(requirement_set, req)
>   File "/usr/lib/python3.8/site-packages/pip/_internal/legacy_resolve.py",
> line 368, in _resolve_one
>     abstract_dist = self._get_abstract_dist_for(req_to_install)
>   File "/usr/lib/python3.8/site-packages/pip/_internal/legacy_resolve.py",
> line 315, in _get_abstract_dist_for
>     abstract_dist = self.preparer.prepare_linked_requirement(
>   File
> "/usr/lib/python3.8/site-packages/pip/_internal/operations/prepare.py",
> line 223, in prepare_linked_requirement
>     abstract_dist = _get_prepared_distribution(
>   File
> "/usr/lib/python3.8/site-packages/pip/_internal/operations/prepare.py",
> line 49, in _get_prepared_distribution
>     abstract_dist.prepare_distribution_metadata(finder, build_isolation)
>   File
> "/usr/lib/python3.8/site-packages/pip/_internal/distributions/source/legacy.py",
> line 37, in prepare_distribution_metadata
>     self._setup_isolation(finder)
>   File
> "/usr/lib/python3.8/site-packages/pip/_internal/distributions/source/legacy.py",
> line 61, in _setup_isolation
>     self.req.build_env.install_requirements(
>   File "/usr/lib/python3.8/site-packages/pip/_internal/build_env.py", line
> 201, in install_requirements
>     call_subprocess(args, spinner=spinner)
>   File
> "/usr/lib/python3.8/site-packages/pip/_internal/utils/subprocess.py", line
> 242, in call_subprocess
>     raise InstallationError(exc_msg)
> pip._internal.exceptions.InstallationError: Command errored out with exit
> status 1: /usr/bin/python3 /usr/lib/python3.8/site-packages/pip install
> --ignore-installed --no-user --prefix /tmp/pip-build-env-joipssag/overlay
> --no-warn-script-location -v --no-binary :none: --only-binary :none:
> --no-index -- setuptools 'cffi>=1.0.0' Check the logs for full command
> output.
>


-- 
Mit freundlichen Grüßen / Kind regards
Jiri Daněk