It can't read parser/my-languages.so when I use M1 macbookPro with python 3.8
Is it macbook's problem?
Traceback (most recent call last):
File "calc_code_bleu.py", line 61, in <module>
syntax_match_score = syntax_match.corpus_syntax_match(references, hypothesis, args.lang)
File "/Users/xzm/CodeXGLUE/Code-Code/code-to-code-trans/evaluator/CodeBLEU/syntax_match.py", line 25, in corpus_syntax_match
JAVA_LANGUAGE = Language('parser/my-languages.so', lang)
File "/Users/xzm/miniforge3/envs/pythonProjects/lib/python3.8/site-packages/tree_sitter/__init__.py", line 82, in __init__
self.lib = cdll.LoadLibrary(library_path)
File "/Users/xzm/miniforge3/envs/pythonProjects/lib/python3.8/ctypes/__init__.py", line 451, in LoadLibrary
return self._dlltype(name)
File "/Users/xzm/miniforge3/envs/pythonProjects/lib/python3.8/ctypes/__init__.py", line 373, in __init__
self._handle = _dlopen(self._name, mode)
OSError: dlopen(parser/my-languages.so, 0x0006): tried: 'parser/my-languages.so' (not a mach-o file), '/System/Volumes/Preboot/Cryptexes/OSparser/my-languages.so' (no such file), '/Users/xzm/miniforge3/envs/pythonProjects/lib/python3.8/lib-dynload/../../parser/my-languages.so' (no such file), '/Users/xzm/miniforge3/envs/pythonProjects/bin/../lib/parser/my-languages.so' (no such file), '/usr/lib/parser/my-languages.so' (no such file, not in dyld cache), 'parser/my-languages.so' (not a mach-o file), '/Users/xzm/CodeXGLUE/Code-Code/code-to-code-trans/evaluator/CodeBLEU/parser/my-languages.so' (not a mach-o file), '/System/Volumes/Preboot/Cryptexes/OS/Users/xzm/CodeXGLUE/Code-Code/code-to-code-trans/evaluator/CodeBLEU/parser/my-languages.so' (no such file), '/Users/xzm/CodeXGLUE/Code-Code/code-to-code-trans/evaluator/CodeBLEU/parser/my-languages.so' (not a mach-o file)
It can't read
parser/my-languages.so
when I use M1 macbookPro with python 3.8Is it macbook's problem?