Issue
I've got a problem using poetry install
in my CI/CD pipeline (Github Actions), on any GitHub runner, since I migrated from Python 3.8 to Python 3.10.
Installing dependencies from lock file
Package operations: 79 installs, 0 updates, 0 removals
• Installing pyparsing (3.0.9)
JSONDecodeError
Expecting value: line 1 column 1 (char 0)
at /opt/hostedtoolcache/Python/3.10.0/x64/lib/python3.10/json/decoder.py:355 in raw_decode
351│ """
352│ try:
353│ obj, end = self.scan_once(s, idx)
354│ except StopIteration as err:
→ 355│ raise JSONDecodeError("Expecting value", s, err.value) from None
356│ return obj, end
357│
Error: Process completed with exit code 1.
I didn't change any lib configuration in my pyproject.toml
file, but as you can see above: Poetry hides most of the StackTrace.
What I tried
- Recreating the
poetry.lock
file. - Removing the Poetry cache using
rm -r ~/.cache/pypoetry/cache/
(andrm -r ~/.cache/pypoetry/
). - Removing the lib that was returning an error (actually, the issue seems to happen with any lib, so that's the reason why I understand it's probably related to poetry and python)
Question
Any idea how to resolve this issue in my CI/CD pipeline?