Skip to content

Poetry add imagededup failed for latest version, pip will automatically revert to 0.3.1 #209

@Stijnp

Description

@Stijnp

Imagededup was a dependency of another package, adding the package to my Poetry project failed due to the following error.

Currently only tested on MacOS M2 Pro chip with Python 3.10, can test on ubuntu if required.

  • Installing imagededup (0.3.2): Failed

  RuntimeError

  Unable to find installation candidates for imagededup (0.3.2)

  at ~/Library/Application Support/pypoetry/venv/lib/python3.10/site-packages/poetry/installation/chooser.py:73 in choose_for
       69│ 
       70│             links.append(link)
       71│ 
       72│         if not links:
    →  73│             raise RuntimeError(f"Unable to find installation candidates for {package}")
       74│ 
       75│         # Get the best link
       76│         chosen = max(links, key=lambda link: self._sort_key(package, link))
       77│ 

Cannot install imagededup.

When trying to add imagededup isolated I'm running into the same issue

Workarounds:

  1. pip install imagededup works and will install 0.3.1 on my env but not the preferred solution when using Poetry
  2. pinning the version to 0.3.1 in poetry works - poetry add imagededup==0.3.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions