Pipenv: Failed to load paths using 2020.6.2

Created on 12 Jun 2020  Â·  5Comments  Â·  Source: pypa/pipenv

I can see this issue has previously been raised and resolved before here: https://github.com/pypa/pipenv/issues/4220, however, I'm still experiencing errors with the latest version of Pipenv which should include the fix.

Issue description

COPY ./docker_image/Pipfile ./docker_image/Pipfile.lock /workdir/
RUN python -m pip install --upgrade pip pipenv \
  && cd /workdir \
  && python -m pipenv install --system --ignore-pipfile --dev

Expected result

Dependencies are installed without error.

Actual result

Installing collected packages: virtualenv-clone, distlib, filelock, appdirs, six, virtualenv, certifi, pipenv
Successfully installed appdirs-1.4.4 certifi-2020.4.5.2 distlib-0.3.0 filelock-3.0.12 pipenv-2020.6.2 six-1.15.0 virtualenv-20.0.21 virtualenv-clone-0.5.4
Installing dependencies from Pipfile.lock (a7add2)…
Failed to load paths: /bin/sh: 1: /root/.local/share/virtualenvs/python_env-rMBEbzCL/bin/python: not found

Output: 
Failed to load paths: /bin/sh: 1: /root/.local/share/virtualenvs/python_env-rMBEbzCL/bin/python: not found

Output: 
Failed to load paths: /bin/sh: 1: /root/.local/share/virtualenvs/python_env-rMBEbzCL/bin/python: not found


Duplicate

Most helpful comment

I got exactly the same error when I wanted to build a Docker image.
When I tested this with the pipenv version from master, this issue was fixed.

I changed the line to install pipenv from

RUN pip install --upgrade pip pipenv

to

RUN pip install --upgrade pip git+https://github.com/pypa/pipenv

I couldn't find the original issue to comment there, I hope this workaround is useful for someone, until the next version is released.

All 5 comments

I got exactly the same error when I wanted to build a Docker image.
When I tested this with the pipenv version from master, this issue was fixed.

I changed the line to install pipenv from

RUN pip install --upgrade pip pipenv

to

RUN pip install --upgrade pip git+https://github.com/pypa/pipenv

I couldn't find the original issue to comment there, I hope this workaround is useful for someone, until the next version is released.

found the pull request that seems to have fixed this issue. https://github.com/pypa/pipenv/pull/4319

Think we can close this one. Looks like we just need to wait for next release.

This issue is still a problem for me when I installed pipenv using pip. Is it really fixed? Not sure if the PR mentioned by @jiashucheniress addresses this issue.

This issue is still a problem for me when I installed pipenv using pip. Is it really fixed? Not sure if the PR mentioned by @jiashucheniress addresses this issue.

hi @jshin49 , the issue is fixed on master, however, the fix hasn't been released yet. atm the way I'm by passing it is by doing the following

python -m pip install git+https://github.com/pypa/pipenv@97324a6932b3fda0ccbabcc349474d74a913e0bc

This takes the master commit with the fix, but not all of the subsequent changes

Did the issue being fixed in the 'Release v2020.8.13'?

I got an error today:

Installing pandas…
â ‹ Installing...Failed to load paths: /bin/sh: /Users/johnchan/.local/share/virtualenvs/src-_ygy3i93/bin/python: No such file or directory

Output: 
â ™ Installing pandas...Failed to load paths: /bin/sh: /Users/johnchan/.local/share/virtualenvs/src-_ygy3i93/bin/python: No such file or directory

Output: 
Failed to load paths: /bin/sh: /Users/johnchan/.local/share/virtualenvs/src-_ygy3i93/bin/python: No such file or directory

Output: 
Error:  An error occurred while installing pandas!
Error text: 
/bin/sh: /Users/johnchan/.local/share/virtualenvs/src-_ygy3i93/bin/pip: /Users/johnchan/.local/share/virtualenvs/src-_ygy3i93/bin/python: bad interpreter: No such file or directory

✘ Installation Failed 
Was this page helpful?
0 / 5 - 0 ratings

Related issues

ipmb picture ipmb  Â·  3Comments

hynek picture hynek  Â·  3Comments

FooBarQuaxx picture FooBarQuaxx  Â·  3Comments

erinxocon picture erinxocon  Â·  3Comments

xi picture xi  Â·  3Comments