google-research / perch

Apache License 2.0
188 stars 42 forks source link

poetry install fails on mac with python 3.10 #689

Closed sammlapp closed 1 month ago

sammlapp commented 2 months ago

I'm on mac os in a conda environment with Python 3.10.14. I cloned the repo and ran poetry install, but scann package is not available:

Configuration file exists at /Users/SML161/Library/Preferences/pypoetry, reusing this directory.

Consider moving TOML configuration files to /Users/SML161/Library/Application Support/pypoetry, as support for the legacy directory will be removed in an upcoming release.
[09/11/24 12:00:36] WARNING  pyproject.toml does not contain a tool.setuptools_scm section                      setuptools.py:119
Installing dependencies from lock file

Package operations: 1 install, 0 updates, 0 removals

  • Installing scann (1.3.2): Failed

  RuntimeError

  Unable to find installation candidates for scann (1.3.2)

  at ~/miniconda3/lib/python3.9/site-packages/poetry/installation/chooser.py:76 in choose_for
       72│ 
       73│             links.append(link)
       74│ 
       75│         if not links:
    →  76│             raise RuntimeError(f"Unable to find installation candidates for {package}")
       77│ 
       78│         # Get the best link
       79│         chosen = max(links, key=lambda link: self._sort_key(package, link))
       80│ 
sdenton4 commented 1 month ago

Hey, Samm! We made SCANN an optional dependency not so long ago; hopefully this is working now.