2018.11.14 pipenv emits pythons errors when creating a virtualenv #3229
Labels
Type: Bug 🐛
This issue is a bug.
Type: Regression
This issue is a regression of a previous behavior.
Type: Vendored Dependencies
This issue affects vendored dependencies within pipenv.
Milestone
Issue description
Expected result
Expected no error logging while simply creating a virtualenv
Actual result
virtualenv creation appears to have worked, but unexpected errors were emitted.
Steps to replicate
pipenv --two
to create a Python 2.7 virtualenv$ pipenv --support
Pipenv version:
'2018.11.14'
Pipenv location:
'/usr/local/lib/python3.6/site-packages/pipenv'
Python location:
'/usr/local/opt/python/bin/python3.6'
Python installations found:
Error %s while executing command %s [Errno 2] No such file or directory: '/usr/local/bin/pythonz': '/usr/local/bin/pythonz' /usr/local/bin/pythonz -c import sys; print(sys.version.split()[0])
['Traceback (most recent call last):\n', ' File "/usr/local/lib/python3.6/site-packages/pipenv/vendor/vistir/contextmanagers.py", line 148, in spinner\n yield _spinner\n', ' File "/usr/local/lib/python3.6/site-packages/pipenv/vendor/vistir/misc.py", line 309, in run\n start_text=start_text\n', ' File "/usr/local/lib/python3.6/site-packages/pipenv/vendor/vistir/misc.py", line 157, in _create_subprocess\n combine_stderr=combine_stderr)\n', ' File "/usr/local/lib/python3.6/site-packages/pipenv/vendor/vistir/misc.py", line 132, in _spawn_subprocess\n return subprocess.Popen(cmd, **options)\n', ' File "/usr/local/Cellar/python/3.6.5_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/subprocess.py", line 709, in init\n restore_signals, start_new_session)\n', ' File "/usr/local/Cellar/python/3.6.5_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/subprocess.py", line 1344, in _execute_child\n raise child_exception_type(errno_num, err_msg, err_filename)\n', "FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/bin/pythonz': '/usr/local/bin/pythonz'\n"]
Error %s while executing command %s [Errno 2] No such file or directory: '/usr/local/bin/pythonz': '/usr/local/bin/pythonz' /usr/local/bin/pythonz -c import sys; print(sys.version.split()[0])
['Traceback (most recent call last):\n', ' File "/usr/local/lib/python3.6/site-packages/pipenv/vendor/vistir/contextmanagers.py", line 148, in spinner\n yield _spinner\n', ' File "/usr/local/lib/python3.6/site-packages/pipenv/vendor/vistir/misc.py", line 309, in run\n start_text=start_text\n', ' File "/usr/local/lib/python3.6/site-packages/pipenv/vendor/vistir/misc.py", line 157, in _create_subprocess\n combine_stderr=combine_stderr)\n', ' File "/usr/local/lib/python3.6/site-packages/pipenv/vendor/vistir/misc.py", line 132, in _spawn_subprocess\n return subprocess.Popen(cmd, **options)\n', ' File "/usr/local/Cellar/python/3.6.5_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/subprocess.py", line 709, in init\n restore_signals, start_new_session)\n', ' File "/usr/local/Cellar/python/3.6.5_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/subprocess.py", line 1344, in _execute_child\n raise child_exception_type(errno_num, err_msg, err_filename)\n', "FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/bin/pythonz': '/usr/local/bin/pythonz'\n"]
3.6.5
:/usr/local/bin/python3
3.6.5
:/usr/local/bin/python3.6m
2.7.15
:/usr/local/bin/python
2.7.15
:/usr/local/bin/pythonw
2.7.10
:/usr/bin/python
2.7.10
:/usr/bin/pythonw
2.7.10
:/usr/bin/python2.7
PEP 508 Information:
System environment variables:
LC_ALL
PYENV_VIRTUALENV_DISABLE_PROMPT
LANG
XPC_FLAGS
HISTCONTROL
LESS
DISPLAY
TERM_SESSION_ID
EDITOR
__CF_USER_TEXT_ENCODING
GIT_EDITOR
SSH_AUTH_SOCK
USER
PAGER
LSCOLORS
ROOT
RBENV_SHELL
SSH_CLIENT_USER
PWD
MANPAGER
HOME
TERM_PROGRAM
TERM_PROGRAM_VERSION
Apple_PubSub_Socket_Render
SVN_EDITOR
TMPDIR
PIPENV_NOSPIN
XPC_SERVICE_NAME
TERM
SHELL
TNS_ADMIN
VAULT_ADDR
PYTHONDONTWRITEBYTECODE
SHLVL
MANPATH
LOGNAME
PATH
PIPENV_HIDE_EMOJIS
GCCDIR
HOMEBREW_GITHUB_API_TOKEN
_
OLDPWD
PIP_DISABLE_PIP_VERSION_CHECK
PIP_SHIMS_BASE_MODULE
PIP_PYTHON_PATH
PYTHONFINDER_IGNORE_UNSUPPORTED
Pipenv–specific environment variables:
PIPENV_NOSPIN
:1
PIPENV_HIDE_EMOJIS
:1
Debug–specific environment variables:
PATH
:/usr/sbin:/usr/local/bin:/usr/local/sbin:/Users/callen/.rbenv/shims:/usr/local/bin:/usr/bin:/bin:/opt/X11/bin
SHELL
:/bin/bash
EDITOR
:/usr/local/bin/mate -w
LANG
:en_US.UTF-8
PWD
:/Users/callen/testapp
Contents of
Pipfile
('/Users/callen/testapp/Pipfile'):The text was updated successfully, but these errors were encountered: