-
-
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 --py raises exception outside of a Pipenv project #2305
Comments
I can also reproduce on Alpine Linux. See this Dockerfile and the same exception raised in the test suite for my Emacs library that wraps Pipenv. I have not been locking my dependency on Pipenv to a version number, but this behaviour started appearing on automated test runs around 4 months ago. |
Yeah we’ve seen this error quite a lot. I completely reimplemented our python version lookup tooling internally to tackle this and wound up with a cross platform finder that just hasn’t landed yet. Can you run against master and see if we’ve caught this one already? Or have you already tried? |
Oh, it is great to know that this is a known issue and a fix is on the way.
I haven't tried that as I have limited time hacking on pipenv.el at present. I tried just now with |
I don't have access to a mac of any kind so I can't really say anything about brew other than that people seem to have very mixed experiences with the pipenv formula. I have historically been more of a vim person myself so I'm not really sure how to test your code offhand, otherwise I would just clone it and give it a try :p |
Regarding this particular issue, the fix is essentially adding a check in I’m marking this as a good first issue for people interested to work on. Bonus points if you
|
@uranusjr you seem to be suggesting something quite different to @techalchemy who suggests the fix is already on master. If it is, what new issue is there to work on? |
Oops, I should have actually tested this before commenting. There are only the bonus points left then. Basically there are a lot of The error messages are also all standalone at the moment. You get different error messages for I’m going to close this since the title issue is fixed. The refactoring part would be welcomed still! |
@uranusjr the title issue is not confirmed as fixed, and is definitely not fixed in any released version of Pipenv. Seems quite premature to close this issue. |
It is fixed in master. (BTW the Homebrew formula should probably support |
Confirming that master fixes the issue.
Sure, no problem, and I do the same. For the future, it might be good practice to link in to either or both the commit that fixed the issue, or, tests that show the issue is fixed. |
I'm running latest macOS, latest Homebrew-installed Python (2 and 3), and latest Homebrew installed Pipenv.
Compare
with
The text was updated successfully, but these errors were encountered: