-
-
Notifications
You must be signed in to change notification settings - Fork 195
Open
Labels
Description
Did you check existing issues?
- I have read all the tree-sitter docs if it relates to using the parser
- I have searched the existing issues of tree-sitter-python
Tree-Sitter CLI Version, if relevant (output of tree-sitter --version)
0.25.0
Describe the bug
The tree-sitter-python package is missing "src/scanner.c" in source distribution. This was identified when I tried to build the package from source and import it.
Steps To Reproduce/Bad Parse Tree
- Build the package from source and install it
- import the package using python3 -c "import tree_sitter_python"
- The error is as follows
python3 -c "import tree_sitter_python"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/opt/app-root/lib64/python3.12/site-packages/tree_sitter_python/__init__.py", line 5, in <module>
from ._binding import language
ImportError: /opt/app-root/lib64/python3.12/site-packages/tree_sitter_python/_binding.abi3.so: undefined symbol: tree_sitter_python_external_scanner_create
Expected Behavior/Parse Tree
No error after building tree-sitter-python from source and importing it.
Repro
# Example code that causes the issue
def foo():
# Code that fails to parse, or causes an error
...