Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
2018.11.14 regression: `pipenv lock -r > ...` creates corrupted requirements file #3239
I'm trying to re-build an image from the following Dockerfile:
FROM python:3.6-alpine WORKDIR /opt/app RUN pip install pipenv COPY Pipfile . RUN pipenv lock -r > requirements.txt; pip install -U -r requirements.txt
and getting error on the last step.
pip install packages from the requirements.txt successfully.
Steps to replicate
$ pipenv --support
Python installations found:
PEP 508 Information:
System environment variables:
Pipenv–specific environment variables:
Debug–specific environment variables:
We did a quick check and this issue looks very darn similar to
This could be a coincidence, but if any of these issues solves your problem then I did a good job
If not, the maintainers will get to this issue shortly.
Tried the same with the previous version (2018.10.13) — works as expected.
Look at first two lines. However, I'm not sure why in the error message I see
added a commit
Nov 16, 2018
When you run
Some context: I use the following pattern for bundling Python dependencies as part of an archive builder script for AWS Lambda:
As a workaround, I was able to restore the old behavior with
referenced this issue
Nov 17, 2018
Got it! sarugaku/vistir#41
Successfully installed certifi-2018.10.15 pipenv-2018.11.15.dev0 virtualenv-16.1.0 virtualenv-clone-0.4.0 Removing intermediate container 032e11add394 ---> c8b1be7e75a5 Step 6/6 : RUN pipenv lock -r > requirements.txt; pip install -U -r requirements.txt ---> Running in 42668600ea5d Creating a virtualenv for this project… Pipfile: /opt/app/Pipfile Running... Using /usr/local/bin/python (3.6.7) to create virtualenv… Running... virtual environment... ⠴ Creating virtual environment...Already using interpreter /usr/local/bin/python Using base prefix '/usr/local' New python executable in /root/.local/share/virtualenvs/app-ueEJiAOq/bin/python Installing setuptools, pip, wheel... done. Removing intermediate container 42668600ea5d ---> 312bc682aa72 Successfully built 312bc682aa72 Successfully tagged pipenv-test:latest