-
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
poetry seems to ignore virtualenvs.create #4187
Comments
I reverted the install script to
|
Hello @cicuz, the new installer script The downside of the isolation of poetry running in its own venv is, that it is hard to find out which python is currently activated in the shell and therefore where the global place for installing packages is. I've already start talking about this topic with @sdispater . fin swimmer |
Hello fin, thanks for getting back to me! I'm not sure I understand all the implications of the issues you're rising though; is the discussion you mentioned a public one? |
At the moment this is just a private discussion on our discord server. But you can join the public channel if you like to discuss there. |
@cicuz Your use case should be fixed by #4192. Could you try by installing Poetry from the python install-poetry.py --git https://github.com/python-poetry/poetry.git@1.1 |
It seems to be behaving the same way, i.e. still ignoring the "not create virtualenv" directive. This is the code I used
|
We encountered the same issue with the new installer script. |
@sandpipersburg We don't use pyenv in the container, so I think that this is a different issue. Could you delete the comment and create a separate one to not pollute this one? |
|
I confirm the bug |
I still encounter this problem with the latest 1.2.0a2 release, which should contain the fix?
when doing poetry install, poetry says that it skips virtual env creation (as defined by the config), but still installs all packages to running |
@TheGreatRefrigerator Could you test if the |
@sdispater Yes, version 1.1.8 fixes the issue, thanks. |
get-poetry.py is deprecated and will be removed in the future. Currently update to poetry 1.2 is still not possible. See python-poetry/poetry#4187 Closes https://gitlab.gistools.geog.uni-heidelberg.de/giscience/heigit-disaster-portal/-/issues/20
@TheGreatRefrigerator @sdispater I am using the same tiangolo codebase / project / dockerfile and have wasted a fair amount of time trying to fix this / trying to understand. Can someone provide instructions or ideally @TheGreatRefrigerator an updated docker file. Apologies Ive tried everything now and I feel like I need explaining to me like im a 5 year old to get it to work. I can see virtualenvs.create is being ignored and that site packages are ending up in /usr/lib/python3.9/site-packages which is not in my PATH. |
@varneyo just follow the linked commit above. In that repo the setup is working. Although i think poetry switched to a different location for the install script already, which is not yet reflected. |
This is still an issue with |
@iSplasher please open a new issue with steps to reproduce. |
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).python:3.6
)Issue
I recently recreated my Docker images, and replaced the old
get-poetry.py
withinstall-poetry.py
, and suddenly my entry command was not working anymore, failing withModuleNotFoundError
.My
poetry install
invocations correctly outputSkipping virtualenv creation, as specified in config file.
, which is what I asked viapoetry config virtualenvs.create false
, but by looking around I found them being placed in thePOETRY_HOME/venv
folder, and therefore not being found by my simplepython -m
entrypoint:Am I doing something wrong, or did something break with some of the updates I skipped?
Thanks
The text was updated successfully, but these errors were encountered: