question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
pepastachcommented, Oct 13, 2020

@abn Fair point. Here is the issue: #3199 Hope that would help someone reproduce it.

0reactions
abncommented, Oct 13, 2020

@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 the requests library recreating connections to pypi.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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found