Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

broken on Mac (Apple Silicon, Python) #855

Open
RedemptionC opened this issue Apr 24, 2024 · 0 comments
Open

broken on Mac (Apple Silicon, Python) #855

RedemptionC opened this issue Apr 24, 2024 · 0 comments

Comments

@RedemptionC
Copy link

[ins] In [1]: import opencc
---------------------------------------------------------------------------
OSError                                   Traceback (most recent call last)
Cell In[1], line 1
----> 1 import opencc

File /opt/homebrew/Caskroom/miniconda/base/lib/python3.11/site-packages/opencc.py:24
     22     libopencc = CDLL(_libopenccfile, use_errno=True)
     23 else:
---> 24     libopencc = CDLL('libopencc.so.1', use_errno=True)
     27 libc.free.argtypes = [c_void_p]
     29 libopencc.opencc_open.restype = c_void_p

File /opt/homebrew/Caskroom/miniconda/base/lib/python3.11/ctypes/__init__.py:376, in CDLL.__init__(self, name, mode, handle, use_errno, use_last_error, winmode)
    373 self._FuncPtr = _FuncPtr
    375 if handle is None:
--> 376     self._handle = _dlopen(self._name, mode)
    377 else:
    378     self._handle = handle

OSError: dlopen(libopencc.so.1, 0x0006): tried: 'libopencc.so.1' (no such file), '/System/Volumes/Preboot/Cryptexes/OSlibopencc.so.1' (no such file), '/opt/homebrew/Caskroom/miniconda/base/lib/python3.11/lib-dynload/../../libopencc.so.1' (no such file), '/opt/homebrew/Caskroom/miniconda/base/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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant