[Bug]: conversation_with_RAG_agents/rag_example.py ERROR
AgentScope is an open-source project. To involve a broader community, we recommend asking your questions in English.
Describe the bug rag_example.py 执行至 rag_agents:_prepare_args_from_config:103 附近报错:
To Reproduce Steps to reproduce the behavior: . 示例代码未修改
Expected behavior 继续执行demo
Error messages
2024-05-22 13:44:56.131 | INFO | rag_agents:_prepare_args_from_config:103 - load and build object(<module 'llama_index.core.node_parser' from 'C:\Users\XXX\miniconda3\envs\agentscope\lib\site-packages\llama_index\core\node_parser\init.py'>, <class 'llama_index.core.node_parser.text.code.CodeSplitter'>, {'language': 'python', 'chunk_lines': 100})
Could not get parser for language python. Check https://github.com/grantjenks/py-tree-sitter-languages#license for a list of valid languages.
Traceback (most recent call last):
File "C:\Users\XXX\Documents\workspace\agentscope\examples\conversation_with_RAG_agents\rag_example.py", line 66, in
Environment (please complete the following information):
- AgentScope Version: 0.0.4
- Python Version: 3.9
- OS: windows 11
@czw90130
Please try to downgrade the version of tree-sitter, just as follows:
pip install tree-sitter<=0.21.3
This bug is fixed in #248
Feel free to create a new issue if you have new question. Closing this for now.