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 + PyCharm issues #1412
Comments
do you have a step by step reproduction, it's unclear what bshibs was saying there and I don't know what your issue is and whether it is the same one or ? |
This is a similar case: pypa/pipenv#2850 The short version:
|
show your configuration? |
aka: give me something to copy and paste and run -- "create project, using pipenv for dependencies" doesn't help me because I stay as far away from pipenv as possible |
Everything related to my problem is contained in https://github.com/ModischFabrications/CutSolver, I have not created a minimal working example yet. I know it's a pain to reproduce it, sorry :/ The following assumes PyCharm and no pytest in your global python installation: Check it out and use Push using pycharm's push button: Open console ( Don't be alarmed if the created tag is not actually pushed, it's not working right now due to #1411. |
These are pycharm issues and would fix the root cause:
Being able to call |
oh ok I see -- next time you make a bug report please include the necessary information such that we can understand your problem. This usually involves: some way to reproduce the problem, what you're seeing exactly (output, screenshot, command you ran, etc.), and what you expect to see. without that information it is very difficult to guess at what your problem is.
it seems that you're expecting your virtualenv to be globally activated, which it isn't if you'd like to continue in unsupported territory, I'd suggest you instead use if you'd like to continue in supported territory, I'd suggest you stop using |
since this is not a pre-commit issue ( |
|
…, sorry asottile)
…ommit#1412, sorry asottile)" This reverts commit 9b6d8f9
Thanks for your help, I get that solving it here might be out of the scope of this tool. I am currently trying out both ways. The supported way would need every single dependency listed as [additional dependency] as pytest is calling into the program. The unsupported way (prefixing every entry with It's still not perfect, but it's a workaround until the core issue is resolved. Thank's again! |
I have come across the same problem as @bshibs in #950 .
PyCharm's "push" seems to be outside of the pipenv shell, leading to a whole lot of warnings because execution is outside of the virtual environment. Running git push manually in the integrated terminal is fine, since it activates the pipenv automatically, but this is not really a feasible solution.
I experimented around, but I was simply unable to add some kind of "pipenv shell" setup to my configuration.
Is there something I missed? Seems like either PyCharm needs to respect the pipenv shell or pre-commit needs to have a way to find it's way back into the virtual environment by itself. My initial idea would be be to offer some kind of setup to initialise pipenv shell, but I'm open for some other ideas.
The text was updated successfully, but these errors were encountered: