-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Error Creating New Poetry Environment #6551
Comments
could you try it from CLI? It should work fine. What you are describing seems to be a Pycharm bug, not a Poetry one. |
I did try creating an environment from the CLI, however the project doesn't have an interpreter, nor does it have a poetry.lock file. |
This consistently breaks because of ubuntu packaging: https://bugs.launchpad.net/ubuntu/+source/python-debian/+bug/1926870 This is shit, but it would be good if I could at least work around dist-packages having things poetry can't work with. As it stands I don't think I can solve it at all (e.g. I can't tell it to ignore those packages that don't work). |
I think there are two things going on here -- Pycharm is trying to create a Poetry environment in an odd way that is affected by system packages, and failing. @krageon, I suspect that instead you are hitting #6623, especially if you have In any case, barring a reproduction that doesn't involve PyCharm, I'm closing this for now -- if you can reproduce this occurring with a simple |
I have neither of those things set. I'll attempt to create a docker container that has this issue so you can see what goes wrong. |
I see it is this #4597 (comment) this issue. The workaround there works as well. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
-vvv
option).Issue
This is my first time using Poetry. When using PyCharm to configure a poetry interpreter, it says
When I try again to configure the interpreting using the environment that was created, it says Error Running Poetry. The command output is:
I've seen the same error from the PyCharm forums, and applied the fix
sudo apt install python3-pip pip3 install virtualenv
Which didn't change anything. I've also tried installing python3-venv too.
The text was updated successfully, but these errors were encountered: