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.

JSONDecodeError on Python 3.10

See original GitHub issue

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:closed
  • Created 2 years ago
  • Reactions:56
  • Comments:39 (11 by maintainers)

github_iconTop GitHub Comments

104reactions
hoeflingcommented, Jul 11, 2021

BTW disabling poetry’s experimental new installer may be a workaround for now:

$ poetry config experimental.new-installer false
14reactions
hoeflingcommented, Jul 5, 2021

Reproducible with 3.10 on Linux & Windows as well.

Read more comments on GitHub >

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

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