Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pipenv error during installation #28

Closed
ppanero opened this issue Jun 4, 2020 · 6 comments · Fixed by #29
Closed

Pipenv error during installation #28

ppanero opened this issue Jun 4, 2020 · 6 comments · Fixed by #29

Comments

@ppanero
Copy link
Member

ppanero commented Jun 4, 2020

The base inveniosoftware/centos7-python image has errors due to the recent pipenv release (2020-05-28), where pipenv install --system attempts to use a (non-existent) virtualenv Python instead of the system Python. See e.g. pypa/pipenv#4315

Installing dependencies from Pipfile.lock (876ab0)…
Failed to load paths: /bin/sh: /root/.local/share/virtualenvs/src--FJPeFkS/bin/python: No such file or directory

Needs a version pin here

@ppanero ppanero added this to Triage in InvenioRDM June Board via automation Jun 4, 2020
@ppanero ppanero moved this from Triage to To do in InvenioRDM June Board Jun 4, 2020
@alexdutton
Copy link
Member

I'll put a PR together for this now. Should be ready in the next hour at the latest :-)

@ppanero ppanero moved this from To do to In progress in InvenioRDM June Board Jun 4, 2020
alexdutton added a commit to CottageLabs/docker-invenio that referenced this issue Jun 4, 2020
Since pipenv==2020-05-28, using `pipenv install --system --deploy` results in
an error message saying it can't find a virtualenv Python. Though not
necessarily fatal, it is confusing, so let's revert to an older pipenv for now.

More background: pypa/pipenv#4315 and pypa/pipenv#4311.

Resolves inveniosoftware#28.
@ppanero ppanero moved this from In progress to In Review in InvenioRDM June Board Jun 4, 2020
InvenioRDM June Board automation moved this from In Review to Done Jun 8, 2020
ppanero pushed a commit that referenced this issue Jun 8, 2020
Since pipenv==2020-05-28, using `pipenv install --system --deploy` results in
an error message saying it can't find a virtualenv Python. Though not
necessarily fatal, it is confusing, so let's revert to an older pipenv for now.

More background: pypa/pipenv#4315 and pypa/pipenv#4311.

Resolves #28.
@ppanero
Copy link
Member Author

ppanero commented Jun 30, 2020

This is happening again with the python 3.7 docker image:

Step 4/11 : RUN pipenv install --deploy --system --pre
 ---> Running in a2f9f4141155
Installing dependencies from Pipfile.lock (c1cc3c)…
Failed to load paths: /bin/sh: /root/.local/share/virtualenvs/src--FJPeFkS/bin/python: No such file or directory

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

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

Output:
Ignoring appnope: markers 'sys_platform == "darwin"' don't match your environment

@ppanero ppanero reopened this Jun 30, 2020
InvenioRDM June Board automation moved this from Done to In progress Jun 30, 2020
@ppanero ppanero removed this from In progress in InvenioRDM June Board Jun 30, 2020
@ppanero ppanero added this to Triage in InvenioRDM July Board via automation Jun 30, 2020
@ppanero
Copy link
Member Author

ppanero commented Jul 6, 2020

Happening also in Python 3.6

@fenekku fenekku moved this from Triage to Todo in InvenioRDM July Board Jul 6, 2020
@alexdutton
Copy link
Member

I'm going to have another look at this now :-)

@alexdutton
Copy link
Member

Looks like this was fixed in pypa/pipenv@cce026e on the fourth of June. The most recent pipenv release was two days earlier, so we're still waiting for the fix to be on PyPI.

We could try pypa/pipenv#4337 (comment), or just wait, as the error message does seem to be harmless.

@ppanero
Copy link
Member Author

ppanero commented Jul 9, 2020

@alexsdutton thanks for checking. Is there a date for release? Could you pin it back again in a PR 😄 (sorry for my part on that...)

alexdutton added a commit to CottageLabs/docker-invenio that referenced this issue Jul 9, 2020
pipenv currently emits a confusing error message when used with '--system', so
pin it to a version where this wasn't happening. A fix has been committed
upstream in pypa/pipenv@cce026e but hasn't been released yet.

See inveniosoftware#28 for the issue tracking this problem, including details of the error
message. We'll need to unpin when a new release is available.

This even gets the version string right, unlike last time ;-).
@ppanero ppanero mentioned this issue Jul 10, 2020
ppanero pushed a commit that referenced this issue Jul 10, 2020
pipenv currently emits a confusing error message when used with '--system', so
pin it to a version where this wasn't happening. A fix has been committed
upstream in pypa/pipenv@cce026e but hasn't been released yet.

See #28 for the issue tracking this problem, including details of the error
message. We'll need to unpin when a new release is available.

This even gets the version string right, unlike last time ;-).
@ppanero ppanero closed this as completed Jul 27, 2020
InvenioRDM July Board automation moved this from Todo to Done Jul 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

2 participants