docly
docly copied to clipboard
Cryptic "incompatible language" error
Hi,
I am trying to run docly on a WSL instance and I am getting the following error:
Engine Loaded. ✔
Traceback (most recent call last):
File "/mnt/c/Projects/GANDLF/venv_linux/bin/docly-gen", line 8, in <module>
sys.exit(main())
File "/mnt/c/Projects/GANDLF/venv_linux/lib/python3.7/site-packages/docly/cli/docly_gen.py", line 237, in main
table_rows, docstr_loc, ipynb_files = _process(args, model, tokenizer, ts_lib_path, config)
File "/mnt/c/Projects/GANDLF/venv_linux/lib/python3.7/site-packages/halo/halo.py", line 132, in wrapped
return f(*args, **kwargs)
File "/mnt/c/Projects/GANDLF/venv_linux/lib/python3.7/site-packages/docly/cli/docly_gen.py", line 116, in _process
for code_tokens, params, start_index, function_name, ds in process_file(f, ts_lib_path, args.use_old_model):
File "/mnt/c/Projects/GANDLF/venv_linux/lib/python3.7/site-packages/docly/ioutils/__init__.py", line 125, in process_file
result, parser_obj = py_parser.parse(file_path, ts_lib_path)
File "/mnt/c/Projects/GANDLF/venv_linux/lib/python3.7/site-packages/docly/parser/parser.py", line 11, in parse
python_parser = PythonParser(library_loc=tslib_path)
File "/mnt/c/Projects/GANDLF/venv_linux/lib/python3.7/site-packages/tree_hugger/core/parser/python/python_parser.py", line 35, in __init__
super(PythonParser, self).__init__('python', 'python_queries', PythonParser.QUERY_FILE_PATH, library_loc)
File "/mnt/c/Projects/GANDLF/venv_linux/lib/python3.7/site-packages/tree_hugger/core/code_parser.py", line 41, in __init__
self.parser.set_language(self.language)
ValueError: Incompatible Language version 11. Must be between 13 and 13
I followed the installation process on the website, after creating a virtual environment using conda:
conda create -p ./venv_linux python=3.7 -y
Cheers, Sarthak
I am encountering the same issue as Sarthak.
OS: macOS 11.5.1 Python Interpreter: Python 3.9.5
Running against python 2.7 code.
This is a problem with the underlying tree-sitter library. However, I am sorry to inform you guys that Codist is in the process of shutting down. And we do not support any of our products anymore. sorry for the inconvenience