tree-sitter / py-tree-sitter

Python bindings to the Tree-sitter parsing library
https://tree-sitter.github.io/py-tree-sitter/
MIT License
817 stars 96 forks source link

unable to install 0.21.0 on M1 architecture #278

Closed gvwilson closed 3 weeks ago

gvwilson commented 3 weeks ago

I am unable to install tree-sitter-python on an M1 Mac:

$ uname -a
Darwin Greg-Wilson-Gold-Mac.local 23.5.0 Darwin Kernel Version 23.5.0: Wed May  1 20:16:51 PDT 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T8103 arm64

$ python --version
Python 3.12.5

$ uv pip install tree-sitter-python
  × No solution found when resolving dependencies:
  ╰─▶ Because only tree-sitter-python==0.21.0 is available and tree-sitter-python==0.21.0 has no wheels with a matching platform
      tag, we can conclude that all versions of tree-sitter-python cannot be used.
      And because you require tree-sitter-python, we can conclude that the requirements are unsatisfiable.

Note that I am able to install tree-sitter-javascript on the same machine, and that using pip directly rather than uv pip does not make a difference in either case.