Skip to content

[[tool.poetry.source]] at last line of pyproject.toml causes all poetry commands to hang indefinitely #5592

Closed

Description

@iandesj
  • 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).

Issue

I ran into an issue where if and only if the [[tool.poetry.source]] array of tables was the last element in my pyproject.toml file, any poetry command would hang indefinitely. Anything from poetry config --list to poetry update|install|shell -vvv, like so:
Screen Shot 2022-05-10 at 12 12 32 PM

Once I moved it up a position in the file (or anywhere above the last position) everything began working as expected. I wasn't sure if it had to do with a poor file encoding or phantom character that was throwing the whole thing off, so I deleted and re-wrote the pyproject from scratch several times. All with the same result or a hanging command.

Activity

  1. added
    kind/bugSomething isn't working as expected
    status/triageThis issue needs to be triaged
    on May 11, 2022
  2. abn commented on May 11, 2022

    @abn
    Member

    The root cause here is a buggy tomlkit version being used in core. This should have been fixed via python-poetry/poetry-core#336.

    You can test this using both poetry and poetry-core at master.

    pipx install --suffix=@master 'poetry @ git+https://github.com/python-poetry/poetry@master'
    pipx inject poetry@master 'poetry-core @ git+https://github.com/python-poetry/poetry-core@master'
  3. added
    area/coreRelated to the poetry-core library
    and removed
    status/triageThis issue needs to be triaged
    on May 11, 2022
  4. github-actions commented on Mar 2, 2024

    @github-actions

    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.

  5. locked as resolved and limited conversation to collaborators on Mar 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/coreRelated to the poetry-core librarykind/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