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

"Symbol not found in flat name space" in MacOS (macbook pro M1) when importing ctcdecode #208

Open
JoseEliel opened this issue Oct 6, 2022 · 1 comment

Comments

@JoseEliel
Copy link

Hi!
I've been on a somewhat problematic path of trying to install ctcdecode on MacOS with an M1 MacBook pro.
I had to use GCC 12 instead of clang for the installation to work at all.
After pip seems to install ctcdecode, importing it results in the error:

ImportError: dlopen(/opt/homebrew/Caskroom/miniforge/base/envs/rusocr/lib/python3.8/site-packages/ctcdecode/_ext/ctc_decode.cpython-38-darwin.so, 0x0002): symbol not found in flat namespace '__ZN3c1010TensorImpl17set_autograd_metaESt10unique_ptrINS_21AutogradMetaInterfaceESt14default_deleteIS2_EE'

I have torch, torchvision and torchaudio installed, and I've tried importing torch before importing ctcdecode to no avail.
I tried installing torch from source, but pip can't find the package when I give the no binary option.

@JoseEliel
Copy link
Author

JoseEliel commented Oct 6, 2022

Full Error output for reference:

Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/opt/homebrew/Caskroom/miniforge/base/envs/rusocr/lib/python3.8/site-packages/ctcdecode/__init__.py", line 3, in <module> from ._ext import ctc_decode ImportError: dlopen(/opt/homebrew/Caskroom/miniforge/base/envs/rusocr/lib/python3.8/site-packages/ctcdecode/_ext/ctc_decode.cpython-38-darwin.so, 0x0002): symbol not found in flat namespace '__ZN3c1010TensorImpl17set_autograd_metaESt10unique_ptrINS_21AutogradMetaInterfaceESt14default_deleteIS2_EE'

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