-
-
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
pipenv sync fails without Pipfile present #2834
Comments
From a quick look at the source, it seems that the reason for this behaviour is that pipenv figures out where |
Thanks for the debugging legwork here, we should do some cleanup with regard to the project construct |
There is another possibly related weirdness here. When doing |
Honestly I am not sure Review of the install command is far more involved than fixing the sync command. I would recommend creating a PEEP to fully discuss it. This thread would focus on fixing the sync command. The fix is not very difficult IMO, so I’ll slap a good first issue tag on it. Contribution are welcomed! |
I just found #1977 which seems to also mention this exact behaviour, see comment #1977 (comment) |
@uranusjr I'm not sure what the fix would be here, is it to stop looking for the Pipfile for the |
I would say |
I've tinkered a little with just copying the find() code from the patched pipfile module and using that for finding the lock-file in |
Hi - Is that still open? I'll be happy to assist with that if help is still required |
This is open. |
It looks like this issue is at least partly solved by #3386, There is still weirdness remaining tough, like the The subject of this issue only mentions the sync failing, which is no longer the case. Should this issue be closed? |
Sure thing, thank you for following up |
Issue description
Running
pipenv sync
without a Pipfile present (the Pipfile.lock is there) fails with the messageExpected result
I would expect the Pipfile not to be needed at all for
sync
since it should just install the pinned versions from the Pipfile.lockActual result
pipenv won't install anything because it either thinks it needs a Pipfile as well as a Pipfile.lock for some reason. It also complains about the wrong file (Pipenv.lock).
Steps to replicate
pipenv install requests
pipenv sync
$ pipenv --support
Pipenv version:
'2018.7.1'
Pipenv location:
'/usr/local/Cellar/pipenv/2018.7.1/libexec/lib/python3.7/site-packages/pipenv'
Python location:
'/usr/local/Cellar/pipenv/2018.7.1/libexec/bin/python3.7'
Other Python installations in
PATH
:2.7
:/usr/local/bin/python2.7
2.7
:/usr/local/bin/python2.7
2.7
:/usr/bin/python2.7
2.7
:/usr/local/bin/python2.7
2.7
:/usr/bin/python2.7
3.7
:/usr/local/bin/python3.7m
3.7
:/usr/local/bin/python3.7
3.7
:/usr/local/bin/python3.7
2.7.15
:/usr/local/bin/python
2.7.10
:/usr/bin/python
2.7.15
:/usr/local/bin/python
2.7.10
:/usr/bin/python
2.7.15
:/usr/local/bin/python2
2.7.15
:/usr/local/bin/python2
3.7.0
:/usr/local/bin/python3
3.7.0
:/usr/local/bin/python3
PEP 508 Information:
System environment variables:
PATH
TERM_PROGRAM
SHELL
TERM
TMPDIR
PIPENV_VENV_IN_PROJECT
Apple_PubSub_Socket_Render
TERM_PROGRAM_VERSION
TERM_SESSION_ID
LC_ALL
USER
SSH_AUTH_SOCK
__CF_USER_TEXT_ENCODING
LSCOLORS
_
PWD
LANG
ITERM_PROFILE
XPC_FLAGS
XPC_SERVICE_NAME
COLORFGBG
HOME
SHLVL
ITERM_SESSION_ID
LOGNAME
LC_CTYPE
GOPATH
DISPLAY
COLORTERM
PYTHONDONTWRITEBYTECODE
PIP_PYTHON_PATH
Pipenv–specific environment variables:
PIPENV_VENV_IN_PROJECT
:1
Debug–specific environment variables:
PATH
:/usr/local/Cellar/pipenv/2018.7.1/libexec/tools:/Users/ulrjoh2/.composer/vendor/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/MacGPG2/bin:/opt/X11/bin:/Applications/Wireshark.app/Contents/MacOS:/usr/local/opt/go/libexec/bin:/Users/ulrjoh2/work/bin:/Users/ulrjoh2/.local/bin:/Users/ulrjoh2/.composer/vendor/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/MacGPG2/bin:/opt/X11/bin:/Applications/Wireshark.app/Contents/MacOS:/usr/local/opt/go/libexec/bin:/Users/ulrjoh2/work/bin
SHELL
:/bin/bash
LANG
:en_US.UTF-8
PWD
:/tmp/test
The text was updated successfully, but these errors were encountered: