-
-
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 install does not provide a good error message for no Pipfile. #2846
Comments
Contributions are welcomed. Just change the line in the traceback. |
Oh yeah, just got bitten by this. Will attempt a fix! |
I see the referenced PR #2853 isn't merged yet, but is the issue fixed already? Here is master:latest(19cc731)
|
I'll pick this up since the previous PR isn't merged. |
uh actually....yeah I don't see this issue is latest version as well, or at least I can't manage to replicate the error. |
ah this is merged now, thanks for reporting |
When reviewing this issue. I found that the fix was not suitable because it didn't catch the real devil in the shadow. What is worse is that it introduced an API change which however didn't include a PEEP nor a changelog entry.
Looking at the stacktrace of this issue, the error occurs when pipenv attempts to create a Pipfile. The file was desired to be created successfully but something went wrong. I will spend some time revisiting the errored codes and prepare a revert to this change. |
@frostming-- don't "revert" the change, as in the git operation, simply fix the conditional logic Also, don't hold your PR back for a full review, fix the known issue so we can move ahead. The specific behavior change is annoying, but is only going to affect manual installation processes and can be corrected or worked around by simply installing a package. The error message is detailed, the change is minor, all that needs to happen is a minor adjustment in logic. It is not an intentional API change, it is a conditional logic issue. |
Hm note that there actually is no problem with the exception logic and it is accurately raising an exception about a missing pipfile, which just failed to generate due to a completely separate issue. So the error occurs downstream of the creation, and is completely unrelated to and separate from it. |
Any update on this? I'm encountering the same error when installing pipenv in a fresh alpine dockerfile:
Running this causes the error:
|
Issue description
When attempting to run
pipenv install --dev
in the wrong spot I got this error below (not a bug I assume).Expected result
I would expect something about missing a Pipfile or some such. Probaly something along these lines.
Actual result
Instead I just got
AssertionError()
.Steps to replicate
$ pipenv --support
Pipenv version:
'2018.7.1'
Pipenv location:
'/usr/local/lib/python3.4/site-packages/pipenv'
Python location:
'/usr/local/bin/python'
Other Python installations in
PATH
:3.4
:/usr/local/bin/python3.4m
3.4
:/usr/local/bin/python3.4
3.4
:/usr/local/bin/python3.4
3.4.9
:/usr/local/bin/python
3.4.9
:/usr/local/bin/python
3.4.9
:/usr/local/bin/python3
3.4.9
:/usr/local/bin/python3
PEP 508 Information:
System environment variables:
PYTHONDONTWRITEBYTECODE
https_proxy
http_proxy
HOME
HTTPS_PROXY
LANG
PWD
no_proxy
PATH
HOSTNAME
PIP_PYTHON_PATH
OLDPWD
NO_PROXY
GPG_KEY
HTTP_PROXY
TERM
PYTHON_PIP_VERSION
SHLVL
PYTHON_VERSION
Pipenv–specific environment variables:
Debug–specific environment variables:
PATH
:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
LANG
:C.UTF-8
PWD
:/
Contents of
Pipfile
('/Pipfile'):The text was updated successfully, but these errors were encountered: