imagededup icon indicating copy to clipboard operation
imagededup copied to clipboard

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

Open Stijnp opened this issue 1 year ago • 2 comments

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

Stijnp avatar Nov 15 '23 03:11 Stijnp

Another possible workaround is to install from git:

imagededup = { git = "https://github.com/idealo/imagededup", rev = "4e0b15f4cd82bcfa321eb280b843e57ebc5ff154" }

I can confirm I have the same issue on ubuntu 20, python3.11.

OlivierLDff avatar Dec 18 '23 15:12 OlivierLDff

Similar issue, only that pdm breaks, but don't with the 0.3.1.

AM-I-Human avatar May 09 '24 14:05 AM-I-Human