Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1970361 - poetry fails to install packages with Python 3.10: Gets JSONDecodeError
Summary: poetry fails to install packages with Python 3.10: Gets JSONDecodeError
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: poetry
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Tomáš Hrnčiar
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.10
TreeView+ depends on / blocked
 
Reported: 2021-06-10 11:20 UTC by Miro Hrončok
Modified: 2021-06-15 17:06 UTC (History)
4 users (show)

Fixed In Version: poetry-1.1.6-4.fc35
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-06-15 17:06:22 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Miro Hrončok 2021-06-10 11:20:33 UTC
The Fedora CI test of poetry fail with:



Created package smoke in smoke

Creating virtualenv smoke-VxOKDNGX-py3.10 in /root/.cache/pypoetry/virtualenvs

Updating dependencies

Resolving dependencies...


Writing lock file


Package operations: 8 installs, 0 updates, 0 removals


  • Installing pyparsing (2.4.7)


  JSONDecodeError


  Expecting value: line 1 column 1 (char 0)


  at /usr/lib64/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│ 


I'll try to reproduce locally and adapt the bugzilla accordingly.

Comment 1 Miro Hrončok 2021-06-10 11:48:37 UTC
<mock-chroot> sh-5.1$ rpm -q poetry
poetry-1.1.6-2.fc35.noarch

<mock-chroot> sh-5.1$ poetry new smoke
Created package smoke in smoke

<mock-chroot> sh-5.1$ cd smoke

<mock-chroot> sh-5.1$ poetry install
Creating virtualenv smoke-1bXlZ0EB-py3.10 in /builddir/.cache/pypoetry/virtualenvs
Updating dependencies
Resolving dependencies... (3.1s)

Writing lock file

Package operations: 8 installs, 0 updates, 0 removals

  • Installing pyparsing (2.4.7): Failed

  JSONDecodeError

  Expecting value: line 1 column 1 (char 0)

  at /usr/lib64/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│

Comment 2 Fedora Update System 2021-06-15 17:05:00 UTC
FEDORA-2021-eaa9bd4c2a has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2021-eaa9bd4c2a

Comment 3 Fedora Update System 2021-06-15 17:06:22 UTC
FEDORA-2021-eaa9bd4c2a has been pushed to the Fedora 35 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.