-
So I'm having a problem for quite some time now using Poetry package managing. I have a Django project where I use Poetry for package managing. All of a sudden adding packages didn't work anymore. I would get error messages saying that the packages didn't exist. I found the problem, namely that poetry was linked to another virtualenv than my project: project: /home/vfs/.cache/pypoetry/virtualenvs/vfs-gOLk6wo--py3.7 I tried changing the poetry config values to the project values. But when doing this and running 'poetry install', it says the packages are installing and I get no errors. But the packages won't get into my virtualenv. And when running 'poetry install' again it will do the same installs. What should I do here? |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 3 replies
-
|
What Poetry version are you using and how was it installed? |
Beta Was this translation helpful? Give feedback.
-
So I took over this project and wasn't involved in the setup. But the current version of Poetry is: In my uwsgi.ini the path is: /home/vfs/.cache/pypoetry/virtualenvs/vfs-gOLk6wo--py3.7 |
Beta Was this translation helpful? Give feedback.
-
|
@Secrus I upgraded to the newest version (1.1.15) and it is still not working. |
Beta Was this translation helpful? Give feedback.
-
|
You are running Poetry as root and the webserver as the The best work-around here is to |
Beta Was this translation helpful? Give feedback.
-
Still doesn't work.... It states that it installs/updates all packages. But when I run poetry install again it does it again. Current set up (uwsgi): poetry: Maybe I can try to remove the virtualenv? And do a fresh poetry install, or is this a bad idea? |
Beta Was this translation helpful? Give feedback.
-
|
Sorry, I thought 'start over clean' was implicit; try starting clean with an in-project venv (or a manually created venv that you activate -- Poetry will respect it) and you should be able to get things working. To reiterate again -- Poetry cannot discover the venv you want it to use as it is being run as two different users, so you need to do something about it (run as the same user, use an in-project venv, externally manage the venv), etc. |
Beta Was this translation helpful? Give feedback.
-
|
Okay I found a solution: removing the virtualenvs and installing them again 'poetry install' fixed it for me for some reason. |
Beta Was this translation helpful? Give feedback.
Okay I found a solution: removing the virtualenvs and installing them again 'poetry install' fixed it for me for some reason.