Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
laoshaw opened this issue Oct 3, 2021 · 4 comments
Closed

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

laoshaw opened this issue Oct 3, 2021 · 4 comments
Labels
kind/bug Something isn't working as expected

Comments

@laoshaw
Copy link

laoshaw commented Oct 3, 2021

  • [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.
@laoshaw laoshaw added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Oct 3, 2021
@laoshaw
Copy link
Author

laoshaw commented Oct 3, 2021

This same errors(decoder.py:355 in raw_code) seems happening with many other packages(isort, marshmellow,etc)

@cpressland
Copy link

cpressland commented Nov 30, 2021

I'm running into the same thing on macOS Monterey /w pipx installed Poetry on 3.10.0.

EDIT: Running poetry install over and over eventually successfully installs all packages.

@mkniewallner mkniewallner removed the status/triage This issue needs to be triaged label Jun 11, 2022
@mkniewallner
Copy link
Member

It seems that this issue was fixed by #4592, so closing it.

Copy link

github-actions bot commented Mar 2, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Something isn't working as expected
Projects
None yet
Development

No branches or pull requests

3 participants