From 123517b0200d65bf74575e62a8e9fe1d9e9126d0 Mon Sep 17 00:00:00 2001 From: Theodore Aptekarev Date: Mon, 1 Nov 2021 15:35:15 +0300 Subject: [PATCH] Update poetry troubleshoot docs (#893) * Update poetry troubleshoot docs This includes a guide how to switch off the experimental installer that can break the installation process on macOS * Fix markdown blank lines linting --- TROUBLESHOOT.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/TROUBLESHOOT.md b/TROUBLESHOOT.md index 7657c78ce43..baaeb795035 100644 --- a/TROUBLESHOOT.md +++ b/TROUBLESHOOT.md @@ -95,6 +95,19 @@ If you run into trouble with Poetry, and the advice above did not help, your bes 6. Submit a ticket on GitHub +#### JSONDecodeError during `poetry install` + +Sometimes poetry can throw a `JSONDecodeError` on random packages while running `poetry install`. +This can be observed on macOS 10.14+ running python 3.8+. +This is because of the use of an experimental installer that can be switched off to avoid the mentioned error. +Run + +```bash +poetry config experimental.new-installer false +``` + +as advised [here](https://github.com/python-poetry/poetry/issues/4210) and it should fix the installation process. + ## ModuleNotFoundError Trouble ### General