import opencc
Traceback (most recent call last):
File "", line 1, in
File "/Users/danush/anaconda3/envs/test_env/lib/python3.10/site-packages/opencc.py", line 24, in
libopencc = CDLL('libopencc.so.1', use_errno=True)
File "/Users/danush/anaconda3/envs/test_env/lib/python3.10/ctypes/init.py", line 374, in init
self._handle = _dlopen(self._name, mode)
OSError: dlopen(libopencc.so.1, 0x0006): tried: 'libopencc.so.1' (no such file), '/System/Volumes/Preboot/Cryptexes/OSlibopencc.so.1' (no such file), '/Users/danush/anaconda3/envs/test_env/lib/libopencc.so.1' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/danush/anaconda3/envs/test_env/lib/libopencc.so.1' (no such file), '/Users/danush/anaconda3/envs/test_env/lib/libopencc.so.1' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/danush/anaconda3/envs/test_env/lib/libopencc.so.1' (no such file), '/Users/danush/anaconda3/envs/test_env/lib/python3.10/lib-dynload/../../libopencc.so.1' (no such file), '/Users/danush/anaconda3/envs/test_env/lib/libopencc.so.1' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/danush/anaconda3/envs/test_env/lib/libopencc.so.1' (no such file), '/Users/danush/anaconda3/envs/test_env/bin/../lib/libopencc.so.1' (no such file), '/usr/lib/libopencc.so.1' (no such file, not in dyld cache), 'libopencc.so.1' (no such file), '/usr/local/lib/libopencc.so.1' (no such file), '/usr/lib/libopencc.so.1' (no such file, not in dyld cache)
Getting OSError on import opencc.
Environment details: OS: MacOS Ventura 13.3.1 Python 3.10.9