Skip to content

failed to poetry add -D black using python 3.10-rc2, 3.9 works well #4586

@laoshaw

Description

@laoshaw
  • [X ] I am on the latest Poetry version.

  • [ x] I have searched the issues of this repo and believe that this is not a duplicate.

  • [ x] If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).

  • OS version and name: ubuntu 20.04

  • Poetry version: 1.1.10

  • Link of a Gist with the contents of your pyproject.toml file: the initial default one right after poetry new

Issue

Works for 3.8/3.9 but not 3.10-rc2:

poetry new X; cd X; poetry add -D -vvv black

Finding the necessary packages for the current system

Package operations: 15 installs, 0 updates, 0 removals, 3 skipped

  • Removing atomicwrites (1.4.0): Pending...
  • Removing atomicwrites (1.4.0): Skipped for the following reason: Not currently installed
  • Removing colorama (0.4.4): Pending...
  • Removing colorama (0.4.4): Skipped for the following reason: Not currently installed
  • Removing typing-extensions (3.10.0.2): Pending...
  • Removing typing-extensions (3.10.0.2): Skipped for the following reason: Not currently installed
  • Installing pyparsing (2.4.7): Pending...
  • Installing pyparsing (2.4.7): Failed

  JSONDecodeError

  Expecting value: line 1 column 1 (char 0)

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


Failed to add packages, reverting the pyproject.toml file to its original content.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working as expected

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions