Skip to content

Dependency issues installing a third party example not based on poetry #7501

@kevinschaich

Description

@kevinschaich
  • I am on the latest stable Poetry version, installed using a recommended method.
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • I have consulted the FAQ and blog for any relevant entries or release notes.
  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option) and have included the output below.

Issue

I'm trying to follow a really simple example on the Flask docs and encountered multiple issues. After downloading, I navigated to the examples/celery folder and ran poetry install:

[tool.poetry] section not found in /Users/kevinschaich/repositories/flask/examples/celery/pyproject.toml

I searched around and couldn't find anyone else encountering this – it seems like Poetry should support projects using other tooling like pip/conda/mamba and "upgrade" those configs.

I gave up on trying to fix this and deleted the file since there were only two dependencies, and ran poetry init, then poetry add flask and poetry add celery[redis], and got this nonsensical error complaining about a circular dependency of celery itself:

poetry add 'celery[redis]'
Using version ^5.2.7 for celery

Updating dependencies
Resolving dependencies... (0.0s)

Because no versions of celery match >5.2.7,<6.0.0
 and celery (5.2.7) depends on celery (5.2.7), celery (>=5.2.7,<6.0.0) requires celery (5.2.7).
So, because celery depends on celery (^5.2.7)
 and celery is 0.1.0, version solving failed.```

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working as expectedstatus/triageThis issue needs to be triaged

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions