Skip to content

[python] Automatic pip install is not working for python>=3.12 without wheel #1531

Open
@prabhu

Description

@prabhu

Related discussion: pypa/pip#8559

Below errors from our failed snapshot tests.

Executing /home/builder/actions-runner/_work/cdxgen/cdxgen/src_repos/genforce_3.9.21/.venv/bin/python -m pip install --disable-pip-version-check -r /home/builder/actions-runner/_work/cdxgen/cdxgen/src_repos/genforce_3.9.21/requirements.txt
About to construct the pip dependency tree based on /home/builder/actions-runner/_work/cdxgen/cdxgen/src_repos/genforce_3.9.21/requirements.txt. Please wait ...
Executing /home/builder/actions-runner/_work/cdxgen/cdxgen/src_repos/genforce_3.9.21/.venv/bin/python -m pip install --disable-pip-version-check -r /home/builder/actions-runner/_work/cdxgen/cdxgen/src_repos/genforce_3.9.21/converters/pggan_official/requirements-pip.txt
EXPERIMENTAL: Invoke cdxgen with '--feature-flags safe-pip-install' to recover a partial dependency tree for projects with build errors.
args used: [
  '-m',
  'pip',
  'install',
  '--disable-pip-version-check',
  '-r',
  '/home/builder/actions-runner/_work/cdxgen/cdxgen/src_repos/genforce_3.9.21/converters/pggan_official/requirements-pip.txt'
]
  DEPRECATION: tensorflow-gpu is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559
  error: subprocess-exited-with-error
  
  × Running setup.py install for tensorflow-gpu did not run successfully.
  │ exit code: 1
  ╰─> [18 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/tmp/pip-install-fbv18w6t/tensorflow-gpu_b702ae6f77df489a91e1e4f93b130876/setup.py", line 37, in <module>
          raise Exception(TF_REMOVAL_WARNING)
      Exception:
      
      =========================================================
      The "tensorflow-gpu" package has been removed!
      
      Please install "tensorflow" instead.
      
      Other than the name, the two packages have been identical
      since TensorFlow 2.1, or roughly since Sep 2019. For more
      information, see: pypi.org/project/tensorflow-gpu
      =========================================================
      
      
      [end of output]

We may have to install setuptools and wheel first, before attempting the problematic pip installs

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions