Poetry fails with KeyError if the PATH environment variable is not present
See original GitHub issue-
I am on the latest Poetry version.
-
I have searched the issues of this repo and believe that this is not a duplicate.
-
If an exception occurs when executing a command, I executed it again in debug mode (
-vvv
option). -
OS version and name: Ubuntu 18.04
-
Poetry version: 1.0.10
Issue
When running in CI using a docker container the PATH
environment variable is not set and causes an issue with poetry. Unfortunately I don’t see any traceback. Here’s a snipped showing the issue:
root@5d1e49d5433c:~/src# unset PATH
root@5d1e49d5433c:~/src# /usr/local/bin/poetry run -vvv pip install pip
[KeyError]
'PATH'
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Getting Keyerror when exporting python path variable
The error I'm getting is : KeyError Traceback (most recent call last) <ipython-input-5-f5b49a56ddb2> in <module> 1 import os ----> 2 ...
Read more >Getting Started with Python Poetry - DEV Community
poetry \bin is on your PATH variable. Search your start menu for "environment" and you should find somthing like "Edit environment variables for ......
Read more >poetry install fails on KeyError even for defined environment ...
It fails really randomly. Different dependencies being installed, different environment variables. Sometimes it does not fail (but most often it ...
Read more >Xonsh Change Log - xonsh 0.13.2 documentation
Fixed error caused by unintialized Xonsh session env when using Xonsh as a ... Environment-variables of no predefined type or path environment variables...
Read more >Dependency Management With Python Poetry
When your Python project relies on external packages, you need to make sure you're using the right version of each package.
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
@abn Fair point. Here is the issue: #3199 Hope that would help someone reproduce it.
@pepastach I am not sure you have provided any actionable information there. Perhaps details on how we can reproduce concern you have raised would be a start,
-vvv
logs would also go a long way to help. Since this issue is already closed, I would recommend creating a new issue if an open one for the errors you are facing does not already exist.@Jihadik @pepastach if you are encountering issues with the new installer, you can refer here on how it can be disabled until it stablises.
@Jihadik Regarding the
Connection pool is full, discarding connection: pypi.org
, that is therequests
library recreating connections topypi.org
, it is a graceful recovery and should not impact functionality under normal circumstances. Regarding the errors, as I mentioned above, more details will be appreciated.