Skip to content

Instantly share code, notes, and snippets.

@Ismael-VC
Created November 11, 2025 17:37
Show Gist options
  • Select an option

  • Save Ismael-VC/4822cf9c07a9d07f9fe1f0b7685c70bc to your computer and use it in GitHub Desktop.

Select an option

Save Ismael-VC/4822cf9c07a9d07f9fe1f0b7685c70bc to your computer and use it in GitHub Desktop.
tree-sitter issue
➜ tst python -m venv .venv ➜ tst source .venv/bin/activate ((.venv) ) ➜ tst pip install "textual[syntax]"
Collecting textual[syntax] Using cached textual-6.6.0-py3-none-any.whl.metadata (9.1 kB)
Collecting markdown-it-py>=2.1.0 (from markdown-it-py[linkify]>=2.1.0->textual[syntax]) Using cached markdown_it_py-4.0.0-py3-none-any.whl.metadata (7.3 kB)
Collecting mdit-py-plugins (from textual[syntax])
Using cached mdit_py_plugins-0.5.0-py3-none-any.whl.metadata (2.8 kB)
Collecting platformdirs<5,>=3.6.0 (from textual[syntax])
Using cached platformdirs-4.5.0-py3-none-any.whl.metadata (12 kB)
Collecting pygments<3.0.0,>=2.19.2 (from textual[syntax])
Using cached pygments-2.19.2-py3-none-any.whl.metadata (2.5 kB)
Collecting rich>=14.2.0 (from textual[syntax])
Using cached rich-14.2.0-py3-none-any.whl.metadata (18 kB)
Collecting tree-sitter>=0.25.0 (from textual[syntax])
Using cached tree_sitter-0.25.2-cp312-cp312-linux_aarch64.whl
Collecting tree-sitter-bash>=0.23.0 (from textual[syntax])
Using cached tree_sitter_bash-0.25.0-cp310-abi3-linux_aarch64.whl
Collecting tree-sitter-css>=0.23.0 (from textual[syntax])
Using cached tree_sitter_css-0.25.0-cp310-abi3-linux_aarch64.whl
Collecting tree-sitter-go>=0.23.0 (from textual[syntax])
Using cached tree_sitter_go-0.25.0-cp310-abi3-linux_aarch64.whl
Collecting tree-sitter-html>=0.23.0 (from textual[syntax])
Using cached tree_sitter_html-0.23.2.tar.gz (13 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting tree-sitter-java>=0.23.0 (from textual[syntax])
Using cached tree_sitter_java-0.23.5.tar.gz (138 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting tree-sitter-javascript>=0.23.0 (from textual[syntax])
Using cached tree_sitter_javascript-0.25.0-cp310-abi3-linux_aarch64.whl
Collecting tree-sitter-json>=0.24.0 (from textual[syntax])
Using cached tree_sitter_json-0.24.8.tar.gz (8.2 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting tree-sitter-markdown>=0.3.0 (from textual[syntax])
Using cached tree_sitter_markdown-0.5.1.tar.gz (250 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting tree-sitter-python>=0.23.0 (from textual[syntax])
Using cached tree_sitter_python-0.25.0-cp310-abi3-linux_aarch64.whl
Collecting tree-sitter-regex>=0.24.0 (from textual[syntax])
Using cached tree_sitter_regex-0.25.0-cp310-abi3-linux_aarch64.whl
Collecting tree-sitter-rust>=0.23.0 (from textual[syntax])
Using cached tree_sitter_rust-0.24.0.tar.gz (335 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting tree-sitter-sql>=0.3.11 (from textual[syntax])
Using cached tree_sitter_sql-0.3.11-cp310-abi3-linux_aarch64.whl
Collecting tree-sitter-toml>=0.6.0 (from textual[syntax])
Using cached tree_sitter_toml-0.7.0.tar.gz (16 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting tree-sitter-xml>=0.7.0 (from textual[syntax])
Using cached tree_sitter_xml-0.7.0.tar.gz (54 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting tree-sitter-yaml>=0.6.0 (from textual[syntax])
Using cached tree_sitter_yaml-0.7.2-cp310-abi3-linux_aarch64.whl
Collecting typing-extensions<5.0.0,>=4.4.0 (from textual[syntax])
Using cached typing_extensions-4.15.0-py3-none-any.whl.metadata (3.3 kB)
Collecting mdurl~=0.1 (from markdown-it-py>=2.1.0->markdown-it-py[linkify]>=2.1.0->textual[syntax])
Using cached mdurl-0.1.2-py3-none-any.whl.metadata (1.6 kB)
Collecting linkify-it-py<3,>=1 (from markdown-it-py[linkify]>=2.1.0->textual[syntax])
Using cached linkify_it_py-2.0.3-py3-none-any.whl.metadata (8.5 kB)
Collecting uc-micro-py (from linkify-it-py<3,>=1->markdown-it-py[linkify]>=2.1.0->textual[syntax])
Using cached uc_micro_py-1.0.3-py3-none-any.whl.metadata (2.0 kB)
Using cached markdown_it_py-4.0.0-py3-none-any.whl (87 kB)
Using cached platformdirs-4.5.0-py3-none-any.whl (18 kB)
Using cached pygments-2.19.2-py3-none-any.whl (1.2 MB)
Using cached rich-14.2.0-py3-none-any.whl (243 kB)
Using cached typing_extensions-4.15.0-py3-none-any.whl (44 kB)
Using cached mdit_py_plugins-0.5.0-py3-none-any.whl (57 kB)
Using cached textual-6.6.0-py3-none-any.whl (712 kB)
Using cached linkify_it_py-2.0.3-py3-none-any.whl (19 kB)
Using cached mdurl-0.1.2-py3-none-any.whl (10.0 kB)
Using cached uc_micro_py-1.0.3-py3-none-any.whl (6.2 kB)
Building wheels for collected packages: tree-sitter-html, tree-sitter-java, tree-sitter-json, tree-sitter-markdown, tree-sitter-rust, tree-sitter-toml, tree-sitter-xml
Building wheel for tree-sitter-html (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for tree-sitter-html (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [67 lines of output]
/data/data/com.termux/files/usr/tmp/pip-build-env-g5q4u242/overlay/lib/python3.12/site-packages/setuptools/config/_apply_pyprojecttoml.py:82: SetuptoolsDeprecationWarning: `project.license` as a TOML table is deprecated
!!
********************************************************************************
Please use a simple string containing a SPDX expression for `project.license`. You can also use `project.license-files`. (Both options available on setuptools>=77.0.0).
By 2026-Feb-18, you need to update your project and remove deprecated calls
or your builds will no longer be supported.
See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
********************************************************************************
!!
corresp(dist, value, root_dir)
/data/data/com.termux/files/usr/tmp/pip-build-env-g5q4u242/overlay/lib/python3.12/site-packages/setuptools/config/_apply_pyprojecttoml.py:61: SetuptoolsDeprecationWarning: License classifiers are deprecated.
!!
********************************************************************************
Please consider removing the following classifiers in favor of a SPDX license expression:
License :: OSI Approved :: MIT License
See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
********************************************************************************
!!
dist._finalize_license_expression()
/data/data/com.termux/files/usr/tmp/pip-build-env-g5q4u242/overlay/lib/python3.12/site-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
!!
********************************************************************************
Please consider removing the following classifiers in favor of a SPDX license expression:
License :: OSI Approved :: MIT License
See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
********************************************************************************
!!
self._finalize_license_expression()
running bdist_wheel
running build
running build_py
creating build/lib.linux-aarch64-cpython-312/tree_sitter_html
copying bindings/python/tree_sitter_html/__init__.py -> build/lib.linux-aarch64-cpython-312/tree_sitter_html
running egg_info
writing bindings/python/tree_sitter_html.egg-info/PKG-INFO
writing dependency_links to bindings/python/tree_sitter_html.egg-info/dependency_links.txt
writing requirements to bindings/python/tree_sitter_html.egg-info/requires.txt
writing top-level names to bindings/python/tree_sitter_html.egg-info/top_level.txt
reading manifest file 'bindings/python/tree_sitter_html.egg-info/SOURCES.txt'
adding license file 'LICENSE'
writing manifest file 'bindings/python/tree_sitter_html.egg-info/SOURCES.txt'
copying bindings/python/tree_sitter_html/__init__.pyi -> build/lib.linux-aarch64-cpython-312/tree_sitter_html
copying bindings/python/tree_sitter_html/binding.c -> build/lib.linux-aarch64-cpython-312/tree_sitter_html
copying bindings/python/tree_sitter_html/py.typed -> build/lib.linux-aarch64-cpython-312/tree_sitter_html
running build_ext
building '_binding' extension
creating build/temp.linux-aarch64-cpython-312/bindings/python/tree_sitter_html
creating build/temp.linux-aarch64-cpython-312/src
aarch64-linux-android-clang -fno-strict-overflow -Wsign-compare -Wunreachable-code -DNDEBUG -g -O3 -Wall -fstack-protector-strong -O3 -fstack-protector-strong -O3 -fPIC -DPy_LIMITED_API=0x03090000 -DPY_SSIZE_T_CLEAN -DTREE_SITTER_HIDE_SYMBOLS -Isrc -I/data/data/com.termux/files/home/tst/.venv/include -I/data/data/com.termux/files/usr/include/python3.12 -c bindings/python/tree_sitter_html/binding.c -o build/temp.linux-aarch64-cpython-312/bindings/python/tree_sitter_html/binding.o -std=c11 -fvisibility=hidden
aarch64-linux-android-clang -fno-strict-overflow -Wsign-compare -Wunreachable-code -DNDEBUG -g -O3 -Wall -fstack-protector-strong -O3 -fstack-protector-strong -O3 -fPIC -DPy_LIMITED_API=0x03090000 -DPY_SSIZE_T_CLEAN -DTREE_SITTER_HIDE_SYMBOLS -Isrc -I/data/data/com.termux/files/home/tst/.venv/include -I/data/data/com.termux/files/usr/include/python3.12 -c src/parser.c -o build/temp.linux-aarch64-cpython-312/src/parser.o -std=c11 -fvisibility=hidden
src/parser.c:1:10: fatal error: 'tree_sitter/parser.h' file not found
1 | #include "tree_sitter/parser.h"
| ^~~~~~~~~~~~~~~~~~~~~~
1 error generated.
error: command '/data/data/com.termux/files/usr/bin/aarch64-linux-android-clang' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for tree-sitter-html
Building wheel for tree-sitter-java (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for tree-sitter-java (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [67 lines of output]
/data/data/com.termux/files/usr/tmp/pip-build-env-izdau0du/overlay/lib/python3.12/site-packages/setuptools/config/_apply_pyprojecttoml.py:82: SetuptoolsDeprecationWarning: `project.license` as a TOML table is deprecated
!!
********************************************************************************
Please use a simple string containing a SPDX expression for `project.license`. You can also use `project.license-files`. (Both options available on setuptools>=77.0.0).
By 2026-Feb-18, you need to update your project and remove deprecated calls
or your builds will no longer be supported.
See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
********************************************************************************
!!
corresp(dist, value, root_dir)
/data/data/com.termux/files/usr/tmp/pip-build-env-izdau0du/overlay/lib/python3.12/site-packages/setuptools/config/_apply_pyprojecttoml.py:61: SetuptoolsDeprecationWarning: License classifiers are deprecated.
!!
********************************************************************************
Please consider removing the following classifiers in favor of a SPDX license expression:
License :: OSI Approved :: MIT License
See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
********************************************************************************
!!
dist._finalize_license_expression()
/data/data/com.termux/files/usr/tmp/pip-build-env-izdau0du/overlay/lib/python3.12/site-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
!!
********************************************************************************
Please consider removing the following classifiers in favor of a SPDX license expression:
License :: OSI Approved :: MIT License
See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
********************************************************************************
!!
self._finalize_license_expression()
running bdist_wheel
running build
running build_py
creating build/lib.linux-aarch64-cpython-312/tree_sitter_java
copying bindings/python/tree_sitter_java/__init__.py -> build/lib.linux-aarch64-cpython-312/tree_sitter_java
running egg_info
writing bindings/python/tree_sitter_java.egg-info/PKG-INFO
writing dependency_links to bindings/python/tree_sitter_java.egg-info/dependency_links.txt
writing requirements to bindings/python/tree_sitter_java.egg-info/requires.txt
writing top-level names to bindings/python/tree_sitter_java.egg-info/top_level.txt
reading manifest file 'bindings/python/tree_sitter_java.egg-info/SOURCES.txt'
adding license file 'LICENSE'
writing manifest file 'bindings/python/tree_sitter_java.egg-info/SOURCES.txt'
copying bindings/python/tree_sitter_java/__init__.pyi -> build/lib.linux-aarch64-cpython-312/tree_sitter_java
copying bindings/python/tree_sitter_java/binding.c -> build/lib.linux-aarch64-cpython-312/tree_sitter_java
copying bindings/python/tree_sitter_java/py.typed -> build/lib.linux-aarch64-cpython-312/tree_sitter_java
running build_ext
building '_binding' extension
creating build/temp.linux-aarch64-cpython-312/bindings/python/tree_sitter_java
creating build/temp.linux-aarch64-cpython-312/src
aarch64-linux-android-clang -fno-strict-overflow -Wsign-compare -Wunreachable-code -DNDEBUG -g -O3 -Wall -fstack-protector-strong -O3 -fstack-protector-strong -O3 -fPIC -DPy_LIMITED_API=0x03090000 -DPY_SSIZE_T_CLEAN -DTREE_SITTER_HIDE_SYMBOLS -Isrc -I/data/data/com.termux/files/home/tst/.venv/include -I/data/data/com.termux/files/usr/include/python3.12 -c bindings/python/tree_sitter_java/binding.c -o build/temp.linux-aarch64-cpython-312/bindings/python/tree_sitter_java/binding.o -std=c11 -fvisibility=hidden
aarch64-linux-android-clang -fno-strict-overflow -Wsign-compare -Wunreachable-code -DNDEBUG -g -O3 -Wall -fstack-protector-strong -O3 -fstack-protector-strong -O3 -fPIC -DPy_LIMITED_API=0x03090000 -DPY_SSIZE_T_CLEAN -DTREE_SITTER_HIDE_SYMBOLS -Isrc -I/data/data/com.termux/files/home/tst/.venv/include -I/data/data/com.termux/files/usr/include/python3.12 -c src/parser.c -o build/temp.linux-aarch64-cpython-312/src/parser.o -std=c11 -fvisibility=hidden
src/parser.c:1:10: fatal error: 'tree_sitter/parser.h' file not found
1 | #include "tree_sitter/parser.h"
| ^~~~~~~~~~~~~~~~~~~~~~
1 error generated.
error: command '/data/data/com.termux/files/usr/bin/aarch64-linux-android-clang' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for tree-sitter-java
Building wheel for tree-sitter-json (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for tree-sitter-json (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [67 lines of output]
/data/data/com.termux/files/usr/tmp/pip-build-env-cli1oqzv/overlay/lib/python3.12/site-packages/setuptools/config/_apply_pyprojecttoml.py:82: SetuptoolsDeprecationWarning: `project.license` as a TOML table is deprecated
!!
********************************************************************************
Please use a simple string containing a SPDX expression for `project.license`. You can also use `project.license-files`. (Both options available on setuptools>=77.0.0).
By 2026-Feb-18, you need to update your project and remove deprecated calls
or your builds will no longer be supported.
See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
********************************************************************************
!!
corresp(dist, value, root_dir)
/data/data/com.termux/files/usr/tmp/pip-build-env-cli1oqzv/overlay/lib/python3.12/site-packages/setuptools/config/_apply_pyprojecttoml.py:61: SetuptoolsDeprecationWarning: License classifiers are deprecated.
!!
********************************************************************************
Please consider removing the following classifiers in favor of a SPDX license expression:
License :: OSI Approved :: MIT License
See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
********************************************************************************
!!
dist._finalize_license_expression()
/data/data/com.termux/files/usr/tmp/pip-build-env-cli1oqzv/overlay/lib/python3.12/site-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
!!
********************************************************************************
Please consider removing the following classifiers in favor of a SPDX license expression:
License :: OSI Approved :: MIT License
See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
********************************************************************************
!!
self._finalize_license_expression()
running bdist_wheel
running build
running build_py
creating build/lib.linux-aarch64-cpython-312/tree_sitter_json
copying bindings/python/tree_sitter_json/__init__.py -> build/lib.linux-aarch64-cpython-312/tree_sitter_json
running egg_info
writing bindings/python/tree_sitter_json.egg-info/PKG-INFO
writing dependency_links to bindings/python/tree_sitter_json.egg-info/dependency_links.txt
writing requirements to bindings/python/tree_sitter_json.egg-info/requires.txt
writing top-level names to bindings/python/tree_sitter_json.egg-info/top_level.txt
reading manifest file 'bindings/python/tree_sitter_json.egg-info/SOURCES.txt'
adding license file 'LICENSE'
writing manifest file 'bindings/python/tree_sitter_json.egg-info/SOURCES.txt'
copying bindings/python/tree_sitter_json/__init__.pyi -> build/lib.linux-aarch64-cpython-312/tree_sitter_json
copying bindings/python/tree_sitter_json/binding.c -> build/lib.linux-aarch64-cpython-312/tree_sitter_json
copying bindings/python/tree_sitter_json/py.typed -> build/lib.linux-aarch64-cpython-312/tree_sitter_json
running build_ext
building '_binding' extension
creating build/temp.linux-aarch64-cpython-312/bindings/python/tree_sitter_json
creating b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment