JSONDecodeError on Python 3.10
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: macOS 11.4
-
Poetry version: 1.1.6
-
Link of a Gist with the contents of your pyproject.toml file: https://gist.github.com/robd003/9147c6ec95678bd578b6da828f1b3840
Issue
Poetry crashes whenever it evaluates a package for installation. Running poetry install
will return JSONDecodeError 100% of the time.
$ poetry install
Installing dependencies from lock file
Package operations: 16 installs, 0 updates, 0 removals
• Installing sanic-routing (0.6.2): Failed
JSONDecodeError
Expecting value: line 1 column 1 (char 0)
at /usr/local/Cellar/python@3.10/3.10.0b3/Frameworks/Python.framework/Versions/3.10/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│
Issue Analytics
- State:
- Created 2 years ago
- Reactions:56
- Comments:39 (11 by maintainers)
Top Results From Across the Web
How to solve JSONDecodeError when using Poetry in Github ...
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...
Read more >json — JSON encoder and decoder — Python 3.11.1 ...
Return the Python representation of s (a str instance containing a JSON document). JSONDecodeError will be raised if the given JSON document is...
Read more >1970361 – poetry fails to install packages with Python 3.10
Bug 1970361 - poetry fails to install packages with Python 3.10: Gets JSONDecodeError. Summary: poetry fails to install packages with Python ...
Read more >Igor Davydenko on Twitter: "It (new #Python version) definitely ...
To fix annoying JSONDecodeError on poetry install you need to disable experimental installer: github.com. JSONDecodeError on Python 3.10 ...
Read more >Ecowater python script stopped working after last appdeamon ...
This python script in this topic: Stopped working after the last appdeamon update which upgraded python to python 3.10 The error I get...
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
BTW disabling
poetry
’s experimental new installer may be a workaround for now:Reproducible with 3.10 on Linux & Windows as well.