-
-
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
Pipfile.lock out of date, but installation uses --system... re-building lockfile must happen in isolation. #2273
Comments
- Fixes #2219, #2273 Signed-off-by: Dan Ryan <[email protected]>
No idea if this is related, but I'm getting a version mismatch error when I run EDIT: I noticed in the trials that are succeeding, our pipenv is changing its version from 2018.05.18 to 11.10.1 (because someone pinned our pipenv version in the Pipfile to 11.10.1--not sure how it got installed since all of the previous |
@techalchemy I installed the latest master branch, but the issue is still present. |
Ok thanks for the update, guess this one wasn’t as simple. Still need to capture these with test coverage |
@max-arnold are you still experiencing this? I can't reproduce this. |
Yes
|
- Fixes #2273 - Hopefully for real this time Signed-off-by: Dan Ryan <[email protected]>
Can you try the fix I jsut put up? I'm not 100% sure it will work but hopefully |
|
Thanks. Guess I didn’t quite fix it ;) |
I'm also experiencing this. I'm on linux and used plain old virtualenv to create my env. python version is 3.5.3. Installed pipenv (pipenv==2018.5.18) inside the virtualenv and running it form there. |
@atleta You can work around this bug right now. Pipenv detects it is run in a virtualenv automatically and does the right thing. You don’t need to use |
@max-arnold ok, the new version definitely fixes it for real, I actually tested it first this time, sorry about that :) will have it in the release |
Thank you Dan! Works for me too:
|
@uranusjr Maybe I'm misunderstanding the original report, but I haven't used the system flag. |
@atleta If you didn’t use |
@uranusjr @atleta there were a bunch of bugs with this implementation actually and they are all at least sort of related, but depending which bug you're talking about you might have seen an error message without passing in |
Brother! can you find any solution to this problem so please tell me that |
@MAbdullahAlvi I am not sure seeing as how the latest published version of pipenv Also I noticed you are using python 3.6 which is no longer supported. Best regards. |
pipenv
complains about installation using --system flag and does not update lock file on subsequent package installs.$ python -m pipenv.help output
Pipenv version:
'2018.05.18'
Pipenv location:
'/Users/user/.virtualenvs/quicktest/lib/python3.6/site-packages/pipenv'
Python location:
'/Users/user/.virtualenvs/quicktest/bin/python'
Other Python installations in
PATH
:2.6
:/opt/local/bin/python2.6
2.6
:/opt/local/bin/python2.6
2.7
:/opt/local/bin/python2.7
2.7
:/opt/local/bin/python2.7
2.7
:/usr/bin/python2.7
3.6
:/opt/local/bin/python3.6m
3.6
:/Users/user/.virtualenvs/quicktest/bin/python3.6
3.6
:/opt/local/bin/python3.6
3.6.5
:/Users/user/.virtualenvs/quicktest/bin/python
3.6.5
:/opt/local/bin/python
2.7.10
:/usr/bin/python
2.7.15
:/opt/local/bin/python2
3.6.5
:/Users/user/.virtualenvs/quicktest/bin/python3
3.6.5
:/opt/local/bin/python3
PEP 508 Information:
System environment variables:
TERM_SESSION_ID
SSH_AUTH_SOCK
COLORFGBG
ITERM_PROFILE
XPC_FLAGS
LANG
PWD
SHELL
TERM_PROGRAM_VERSION
TERM_PROGRAM
PATH
DISPLAY
COLORTERM
COMMAND_MODE
TERM
HOME
TMPDIR
USER
XPC_SERVICE_NAME
LOGNAME
SHLVL
OLDPWD
HISTSIZE
HISTFILE
SAVEHIST
WORDCHARS
EDITOR
DJROOT
PYROOT
PYLROOT
JAVA_HOME
FPATH
VIRTUALENV_PYTHON
VIRTUALENVWRAPPER_PROJECT_FILENAME
VIRTUALENVWRAPPER_WORKON_CD
VIRTUALENVWRAPPER_SCRIPT
WORKON_HOME
VIRTUALENVWRAPPER_HOOK_DIR
DOCBOOK_XSL_URL
XML_CATALOG_FILES
ES_HOME
GOPATH
NVM_DIR
PS1
VIRTUAL_ENV
_
PYTHONDONTWRITEBYTECODE
PIP_PYTHON_PATH
Pipenv–specific environment variables:
Debug–specific environment variables:
PATH
:/Users/user/.virtualenvs/quicktest/bin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin
SHELL
:/opt/local/bin/zsh
LANG
:ru_RU.UTF-8
PWD
:/tmp
VIRTUAL_ENV
:/Users/user/.virtualenvs/quicktest
Contents of
Pipfile
('/private/tmp/Pipfile'):Contents of
Pipfile.lock
('/private/tmp/Pipfile.lock'):Steps to replicate
The first installed package is locked just fine:
Subsequent package installs do complain about
--system
flag:The text was updated successfully, but these errors were encountered: