-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Locking fails for Python 2.7 projects due to vistir #2950
Comments
This is not even related to locking, a simple
The pipenv version is 2018.10.9, which seems to be totally broken... :-( |
Thanks for the report, I think the vendoring tooling might be skipping import rewrites here. I’m sure this has a big impact everywhere so there will likely be a fix out today with another release and some coverage for this |
JFTR: for me this indeed happens only when locking a 2.7 project ( |
Issue description
When I run
pipenv lock
on a Python 2.7 project I get this error:The problem is this code in vistir:
pipenv/pipenv/vendor/vistir/compat.py
Line 33 in 1561b8e
Not sure if it's a missing vendoring/dot or a missing dependency.
Expected result
No error.
Actual result
Error.
Steps to replicate
Create a Python 2 project and try to lock it.
$ pipenv --support
Pipenv version:
'2018.10.9'
Pipenv location:
'/Users/hynek/.local/venvs/pipenv/lib/python3.7/site-packages/pipenv'
Python location:
'/Users/hynek/.local/venvs/pipenv/bin/python3.7'
Python installations found:
3.7.0
:/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/bin/python3.7
3.7.0
:/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/bin/python3.7m
2.7.10
:/usr/bin/python
2.7.10
:/usr/bin/pythonw
2.7.10
:/System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7
PEP 508 Information:
System environment variables:
APP_ENV
APP_SECRETS_INI
ARCHFLAGS
Apple_PubSub_Socket_Render
CFLAGS
COLORFGBG
COLORTERM
COMMAND_MODE
CPPFLAGS
DIRENV_DIFF
DIRENV_DIR
DIRENV_WATCHES
DISPLAY
DYLD_BIND_AT_LAUNCH
DYLD_LIBRARY_PATH
EDITOR
FZF_ALT_C_COMMAND
FZF_CTRL_T_COMMAND
FZF_DEFAULT_COMMAND
GOPATH
HOME
ITERM_PROFILE
ITERM_SESSION_ID
JAVA_HOME
LANG
LC_ALL
LC_CTYPE
LDFLAGS
LOGNAME
LSCOLORS
NOMAD_ADDR
NOMAD_TOKEN
OMF_CONFIG
OMF_PATH
OPENSSL
PATH
PIPENV_DEFAULT_PYTHON_VERSION
PIP_INDEX_URL
PWD
PYENV_SHELL
PYTHONDONTWRITEBYTECODE
PYTHONSTARTUP
RIPGREP_CONFIG_PATH
SECURITYSESSIONID
SHELL
SHLVL
SSH_AUTH_SOCK
TERM
TERM_PROGRAM
TERM_PROGRAM_VERSION
TERM_SESSION_ID
TMPDIR
USER
VAGRANT_DEFAULT_PROVIDER
VAULT_ADDR
VCC_ANSIBLE_DIR
VRMD_ANSIBLE_DIR
XPC_FLAGS
XPC_SERVICE_NAME
__CF_USER_TEXT_ENCODING
PIP_SHIMS_BASE_MODULE
PIP_PYTHON_PATH
Pipenv–specific environment variables:
PIPENV_DEFAULT_PYTHON_VERSION
:3.6
Debug–specific environment variables:
PATH
:/Users/hynek/.pyenv/shims:/Users/hynek/.local/bin:/usr/local/opt/openssl/bin:/Users/hynek/Work/go/bin:/Applications/SQLAnywhere17/System/bin64:/usr/local/opt/perl/bin:/Users/hynek/.cargo/bin:/opt/X11/bin:/Applications/VMware Fusion.app/Contents/Public:/usr/local/MacGPG2/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin
SHELL
:/usr/local/bin/fish
EDITOR
:vim
LANG
:en_US.UTF-8
PWD
:/Users/hynek/Work/lookup-ws
Contents of
Pipfile
('/Users/hynek/Work/lookup-ws/Pipfile'):Contents of
Pipfile.lock
('/Users/hynek/Work/lookup-ws/Pipfile.lock'):The text was updated successfully, but these errors were encountered: