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
Running pyenv exec pipenv --two lock causes an error
Expected result
It should pick a version of Python 2 and use that, rather than erroring
Actual result
File "/Users/greysteil/.pyenv/versions/3.6.6/bin/pipenv", line 11, in <module>
load_entry_point('pipenv', 'console_scripts', 'pipenv')()
File "/Users/greysteil/code/dependabot-core/helpers/python/src/pipenv/pipenv/vendor/click/core.py", line 764, in __call__
return self.main(*args, **kwargs)
File "/Users/greysteil/code/dependabot-core/helpers/python/src/pipenv/pipenv/vendor/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/Users/greysteil/code/dependabot-core/helpers/python/src/pipenv/pipenv/vendor/click/core.py", line 1134, in invoke
Command.invoke(self, ctx)
File "/Users/greysteil/code/dependabot-core/helpers/python/src/pipenv/pipenv/vendor/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/Users/greysteil/code/dependabot-core/helpers/python/src/pipenv/pipenv/vendor/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/Users/greysteil/code/dependabot-core/helpers/python/src/pipenv/pipenv/vendor/click/decorators.py", line 64, in new_func
return ctx.invoke(f, obj, *args, **kwargs)
File "/Users/greysteil/code/dependabot-core/helpers/python/src/pipenv/pipenv/vendor/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/Users/greysteil/code/dependabot-core/helpers/python/src/pipenv/pipenv/vendor/click/decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "/Users/greysteil/code/dependabot-core/helpers/python/src/pipenv/pipenv/cli/command.py", line 204, in cli
clear=state.clear,
File "/Users/greysteil/code/dependabot-core/helpers/python/src/pipenv/pipenv/core.py", line 569, in ensure_project
pypi_mirror=pypi_mirror,
File "/Users/greysteil/code/dependabot-core/helpers/python/src/pipenv/pipenv/core.py", line 511, in ensure_virtualenv
ensure_python(three=three, python=python)
File "/Users/greysteil/code/dependabot-core/helpers/python/src/pipenv/pipenv/core.py", line 397, in ensure_python
path_to_python = find_a_system_python(python)
File "/Users/greysteil/code/dependabot-core/helpers/python/src/pipenv/pipenv/core.py", line 360, in find_a_system_python
python_entry = finder.find_python_version(line)
File "/Users/greysteil/code/dependabot-core/helpers/python/src/pipenv/pipenv/vendor/pythonfinder/pythonfinder.py", line 95, in find_python_version
version_dict = PythonVersion.parse(major)
File "/Users/greysteil/code/dependabot-core/helpers/python/src/pipenv/pipenv/vendor/pythonfinder/models/python.py", line 358, in parse
version_dict = parse_python_version(str(version))
File "/Users/greysteil/code/dependabot-core/helpers/python/src/pipenv/pipenv/vendor/pythonfinder/utils.py", line 86, in parse_python_version
raise InvalidPythonVersion("%s is not a python version" % version_str)
pipenv.vendor.pythonfinder.exceptions.InvalidPythonVersion: 2 is not a python version
Steps to replicate
Run pyenv exec pipenv --two lock on any Pipenv file (with Pipenv at current master).
Issue description
Running
pyenv exec pipenv --two lock
causes an errorExpected result
It should pick a version of Python 2 and use that, rather than erroring
Actual result
Steps to replicate
Run
pyenv exec pipenv --two lock
on any Pipenv file (with Pipenv at current master).$ pipenv --support
Pipenv version:
'2018.10.14.dev0'
Pipenv location:
'/usr/local/lib/python3.6/site-packages/pipenv-2018.10.14.dev0-py3.6.egg/pipenv'
Python location:
'/usr/local/opt/python/bin/python3.6'
Python installations found:
3.7.0
:/Users/greysteil/.pyenv/versions/3.7.0/bin/python3
3.7.0
:/Users/greysteil/.pyenv/versions/3.7.0/bin/python3.7m
3.6.7
:/Users/greysteil/.pyenv/versions/3.6.7/bin/python3
3.6.7
:/Users/greysteil/.pyenv/versions/3.6.7/bin/python3.6m
3.6.6
:/Users/greysteil/.pyenv/versions/3.6.6/bin/python3
3.6.6
:/Users/greysteil/.pyenv/versions/3.6.6/bin/python3.6m
3.6.5
:/Users/greysteil/.pyenv/versions/3.6.5/bin/python3
3.6.5
:/Users/greysteil/.pyenv/versions/3.6.5/bin/python3.6m
3.6.5
:/usr/local/bin/python3
3.6.5
:/usr/local/bin/python3.6m
3.5.0
:/Users/greysteil/.pyenv/versions/3.5.0/bin/python3
3.5.0
:/Users/greysteil/.pyenv/versions/3.5.0/bin/python3.5m
2.7.15
:/Users/greysteil/.pyenv/versions/2.7.15/bin/python
2.7.14
:/Users/greysteil/.pyenv/versions/2.7.14/bin/python
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:
TERM_PROGRAM
PYENV_ROOT
TERM
SHELL
CLICOLOR
TMPDIR
Apple_PubSub_Socket_Render
TERM_PROGRAM_VERSION
TERM_SESSION_ID
USER
SSH_AUTH_SOCK
LSCOLORS
PATH
PWD
EDITOR
LANG
XPC_FLAGS
RBENV_SHELL
XPC_SERVICE_NAME
HOME
SHLVL
LOGNAME
OLDPWD
_
__CF_USER_TEXT_ENCODING
PIP_DISABLE_PIP_VERSION_CHECK
PYTHONDONTWRITEBYTECODE
PIP_SHIMS_BASE_MODULE
PIP_PYTHON_PATH
PYTHONFINDER_IGNORE_UNSUPPORTED
Pipenv–specific environment variables:
Debug–specific environment variables:
PATH
:/Users/greysteil/.poetry/bin:/Users/greysteil/.config/yarn/global/node_modules/.bin:/Users/greysteil/.poetry/bin::/Users/greysteil/go/bin::/usr/local/opt/erlang@20/bin:/Users/greysteil/.pyenv/bin:/Users/greysteil/.cargo/bin:/usr/local/heroku/bin:/Users/greysteil/.rbenv/shims:/usr/local/bin:./node_modules/.bin:.bundle/binstubs:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/usr/local/go/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/usr/local/git/bin:/usr/local/sbin
SHELL
:/bin/bash
EDITOR
:subl -w
LANG
:en_GB.UTF-8
PWD
:/Users/greysteil/code/python-test
Contents of
Pipfile
('/Users/greysteil/code/python-test/Pipfile'):Contents of
Pipfile.lock
('/Users/greysteil/code/python-test/Pipfile.lock'):The text was updated successfully, but these errors were encountered: