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

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

Open
Stijnp opened this issue Nov 15, 2023 · 2 comments

Comments

@Stijnp
Copy link

Stijnp commented Nov 15, 2023

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
@OlivierLDff
Copy link

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.

@AM-I-Human
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants