Skip to content

Installation issue: py-pip in environments not working... #29237

@flxmr

Description

@flxmr

Steps to reproduce the issue

So, some packages have explicit pip-dependencies. Now, in a view, this pip does not properly get linked into the fs-hierarchy and thus it's broken, because it's somehow using the python-provided pip partly, which usually is not compatible...

Error message

myhost $ ls -l myviev/lib/python3.8/site-packages/
lrwxrwxrwx  1   181 Feb 26 11:47 __init__.py -> /home/private_software/spack_21Q4/opt/spack/linux-debian10-skylake_avx512/gcc-8.5.0/python-3.8.8-ssvtjfeasmu7dnxoobltatu7pqdxszlj/lib/python3.8/site-packages/pip/__init__.py
drwx------ 16 26 Feb 26 11:47 _internal
lrwxrwxrwx  1  181 Feb 26 11:47 __main__.py -> /home/private_software/spack_21Q4/opt/spack/linux-debian10-skylake_avx512/gcc-8.5.0/python-3.8.8-ssvtjfeasmu7dnxoobltatu7pqdxszlj/lib/python3.8/site-packages/pip/__main__.py
drwx------  2    4 Feb 26 11:47 __pycache__
lrwxrwxrwx  1  179 Feb 26 11:47 py.typed -> /home/private_software/spack_21Q4/opt/spack/linux-debian10-skylake_avx512/gcc-8.5.0/py-pip-21.3.1-ldlhndk5wevzhqoo7jorwkyvvcguarzm/lib/python3.8/site-packages/pip/py.typed
drwx------ 23  32 Feb 26 11:47 _vendor

This leads to:

ImportError: cannot import name 'InvalidSchemeCombination' from 'pip._internal.exceptions' (/home//private_software/spack_21Q4/var/spack/environments/ml-21Q4/.spack-env/view/lib/python3.8/site-packages/pip/_internal/exceptions.py)

Information on your system

  • Spack: 0.17.1
  • Python: 3.7.3
  • Platform: linux-debian10-cascadelake
  • Concretizer: clingo

Additional information

No response

General information

  • I have run spack debug report and reported the version of Spack/Python/Platform
  • I have run spack maintainers <name-of-the-package> and @mentioned any maintainers
  • I have uploaded the build log and environment files
  • I have searched the issues of this repo and believe this is not a duplicate

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions