py-tree-sitter: .so files built now throws error `ValueError: Incompatible Language version 12. Must not be between 9 and 11`
I just built a .so file for Python language (using py-tree-sitter) and now then I am trying to use it, it throws an error -
ValueError: Incompatible Language version 12. Must not be between 9 and 11
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 15 (2 by maintainers)
Hello!
Installing the (current) latest packages as:
and running the following snippet:
results in the following error:
I had the same issue. It was resolved by using tree_sitter version: 0.19.0.
Acutally, 0.19.0 is the latest version in pip right now.
pip install tree_sitter==0.19.0
Thank you for the feedback! I’ve tried the new version, i.e., 0.2.2 but I still get the same error. How can I update the core/submodule?
This is an incompatibility between the latest version of
tree-sitter-pythonand the older version oftree-sitterthat this library was using. I have published a new version,0.2.0, that should fix this.Issue-Label Bot is automatically applying the label
bugto this issue, with a confidence of 0.68. Please mark this comment with 👍 or 👎 to give our bot feedback!Links: app homepage, dashboard and code for this bot.