poetry install fails without clear error while poetry export ... pip install -r requirements.txt works
See original GitHub issueI tried to use poetry install on Gitlab CI.
It fails to produce the virtual environment but no clear error message is given.
Just some
Connection pool is full, discarding connection: pypi.org. Connection pool size: 10
and then
/builds/master-tma/num-methods-turb/num_methods_turb does not contain any element
In contrast, pip install -r requirements.txt (with requirements.txt produced with poetry export) works well.
The results of a call of poetry install -vvv is there : https://gricad-gitlab.univ-grenoble-alpes.fr/master-tma/num-methods-turb/-/jobs/395825
Issue Analytics
- State:
- Created 10 months ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
'poetry install' command fails; *.whl files are not found
Specifically I found that deleting the AppData\Local\pypoetry\Cache\artifacts folder (I'm on Windows 10) worked for me. virtualenvs for ...
Read more >Commands | Documentation | Poetry - Python dependency ...
The install command reads the pyproject.toml file from the current project, resolves the dependencies, and installs them. poetry install. If there is a...
Read more >Python Requirements - Serverless Framework: Plugins
Poetry by default generates the exported requirements.txt file with -e and that breaks pip with -t parameter (used to install all requirements in...
Read more >A Poetic Apology. Or Why Should You Use Poetry to Manage…
pip freeze > requirements.txt. which lets anyone use your project by simply installing the needed dependencies with $> pip install -r requirements.txt.
Read more >Poetry Advance - Python Biella Group
This problem can occur as soon as you run a library installation or do poetry install or poetry update . ⚠ Attention ⚠...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Not a bug; in the future, please follow the issue template. It is important to do so to avoid wasting your time on a report that will never be actioned/is a duplicate, and to avoid contributors time trying to reproduce something with inadequate information.
In any case, PRs are welcome to improve the error message, but this was a usage error/is documented.
Nobody is suggesting that there are not real issues uncovered; however, the current behavior is as-designed and as (poorly) documented. You have been encouraged to open new issues, the reasons why that is preferred over this issue are very plainly communicated.
My answer is as long as it is to give historical context, to explain how we got to where we are, and how you can help make Poetry better through your issue reports as an end user. I think I’ve said all that is worth discussing on the topic – please do contribute if you wish, though issues and PRs, and please try to make those issues as clear and descriptive as possible.