Closed pbzweihander closed 4 years ago
I have a similar problem with poetry 1.0.0b1 in CircleCI when running poetry --version
:
[ValueError]
invalid width -1 (must be > 0)
@pbzweihander @shamrin Hi! I am having a different poetry
problem (that looks like a clikit
problem) on CircleCI. Here's what I found and how I "fixed" the issue:
poetry show
automatically in CirleCI was cutting off everything but the first column (the package names). When I SSH'ed into the container manually and ran poetry show
everything was fine (all columns, etc).TERM
environment variable in my Python image was set to dumb
when running on CircleCI automatically, but SSH'ing in the container sets the TERM
environment variable to xterm-256color
.COLUMNS
environment variable is not set when running automatically, but when SSH'ing it, it's set to something reasonable (e.g. 150
).In my run
section, I added:
run:
name: Something With Poetry
command: |
export TERM=xterm-256color
export COLUMNS=150
poetry show
and everything seems fine now.
Error output:
CircleCI setting:
I think clikit evaluate terminal width as 0 when in the circleci