'FileNotFoundError: WinError2 - tree-sitter-parsers-Windows - Python

I was trying the python tool Infercode but when I try to run the example on their github page I always got this error. I don't know how to fix this.

The code:

 from infercode.client.infercode_client import InferCodeClient
import os
import logging
logging.basicConfig(level=logging.INFO)

# Change from -1 to 0 to enable GPU
os.environ['CUDA_VISIBLE_DEVICES'] = "-1"

infercode = InferCodeClient(language="c")
infercode.init_from_config()
vectors = infercode.encode(["for (i = 0; i < n; i++)", "struct book{ int num; char s[27]; }shu[1000];"])

print(vectors)

The error:

2021-11-22 10:47:17.113777: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library cudart64_110.dll
WARNING:tensorflow:From C:\Users\User\PycharmProjects\TesiLucaCastricini\venv2\lib\site-packages\tensorflow\python\compat\v2_compat.py:96: disable_resource_variables (from tensorflow.python.ops.variable_scope) is deprecated and will be removed in a future version.
Instructions for updating:
non-resource variables are not supported in the long term
FileNotFoundError: [WinError 2] Impossibile trovare il file specificato: 'C:\\Users\\User\\.tree-sitter\\tree-sitter-parsers-Windows'


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source