You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When upgrading from 2018.7.1 -> 2018.11.26, we noticed an inconsistency in our automated builds regarding a few packages which were installed at site packages and were being pulled in via the --site-packages flag.
The following docker command fails with an import exception when the python command is run. Note that requests is being installed at site packages and not in the Pipfile, intentionally.
.
.
[... long output omitted ... ]
.
.
Creating a virtualenv for this project...
Pipfile: /root/Pipfile
Using /usr/local/bin/python (2.7.15) to create virtualenv...
⠋Already using interpreter /usr/local/bin/python
New python executable in /root/.local/share/virtualenvs/root-BuDEOXnJ/bin/python
Installing setuptools, pip, wheel...
done.
Setting project for root-BuDEOXnJ to /root
Making site-packages available...
Virtualenv location: /root/.local/share/virtualenvs/root-BuDEOXnJ
2.21.0
Actual result (from Docker Command 1)
.
.
[... long output omitted ... ]
.
.
Creating a virtualenv for this project...
Pipfile: /root/Pipfile
Using /usr/local/bin/python (2.7.15) to create virtualenv...
⠸ Creating virtual environment...Already using interpreter /usr/local/bin/python
New python executable in /root/.local/share/virtualenvs/root-BuDEOXnJ/bin/python
Installing setuptools, pip, wheel...
done.
✔ Successfully created virtual environment!
Virtualenv location: /root/.local/share/virtualenvs/root-BuDEOXnJ
Creating a Pipfile for this project...
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named requests
Steps to replicate
Run Docker Command 1, listed above.
Other Information
I ran this test for several different versions -- it appears the behavior cropped up after 2018.10.9, leading me to speculate it has to do with the changes introduced in: Always use virtualenv directly, not "pew new" #2518.
Ran identical tests with the python:3 docker image, with essentially the same results
I found it interesting to note that the failing command does not include the phrase Making site-packages available... that the successful command does.
For those needing a workaround with the current version (2018.11.26), somehow starting a virtualenv with pipenv --site-packages --three (and only after pipenv install) works (instead of using pipenv --site-packages install from pipfile to start the environment).
Issue description
When upgrading from 2018.7.1 -> 2018.11.26, we noticed an inconsistency in our automated builds regarding a few packages which were installed at site packages and were being pulled in via the
--site-packages
flag.The following docker command fails with an import exception when the python command is run. Note that requests is being installed at site packages and not in the Pipfile, intentionally.
Docker Command 1 (Fails)
Expected result
When I run the identical command (using the older version of pipenv):
Docker Command 2 (Succeeds)
produces the expected output:
Actual result (from Docker Command 1)
Steps to replicate
Other Information
python:3
docker image, with essentially the same resultsMaking site-packages available...
that the successful command does.$ pipenv --support
Pipenv version:
'2018.11.26'
Pipenv location:
'/usr/local/lib/python2.7/site-packages/pipenv'
Python location:
'/usr/local/bin/python'
Python installations found:
3.5.3
:/usr/bin/python3.5
3.5.3
:/usr/bin/python3.5m
2.7.15
:/usr/local/bin/python
2.7.13
:/usr/bin/python2.7
PEP 508 Information:
System environment variables:
LANG
PYTHONIOENCODING
TERM
GPG_KEY
PYTHON_VERSION
PIP_DISABLE_PIP_VERSION_CHECK
SHLVL
PYTHON_PIP_VERSION
HOSTNAME
PYTHONDONTWRITEBYTECODE
PWD
PIP_SHIMS_BASE_MODULE
PATH
PYTHONFINDER_IGNORE_UNSUPPORTED
HOME
PIP_PYTHON_PATH
_
Pipenv–specific environment variables:
Debug–specific environment variables:
PATH
:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
LANG
:C.UTF-8
PWD
:/root
The text was updated successfully, but these errors were encountered: