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

ImportError : undefined symbol: _ZNSt15__ #68

Closed
allianceai opened this issue Jan 10, 2023 · 1 comment
Closed

ImportError : undefined symbol: _ZNSt15__ #68

allianceai opened this issue Jan 10, 2023 · 1 comment

Comments

@allianceai
Copy link

I'm excited to start working with CTCWordBeamSearch, but I encountered this error while running the pytest after installing it. Any insight on the below error would be greatly appreciated!
python: 3.9.7
tensorflow: 2.11.0
cuda 11.5

_______```
____ ERROR collecting tests/test_word_beam_search.py ________________
ImportError while importing test module '/home/cameron/CTCWordBeamSearch/tests/test_word_beam_search.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
../../anaconda3/lib/python3.9/importlib/init.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
test_word_beam_search.py:4: in
from word_beam_search import WordBeamSearch
E ImportError: /home/cameron/anaconda3/lib/python3.9/site-packages/word_beam_search.cpython-39-x86_64-linux-gnu.so: undefined symbol: _ZNSt15__exception_ptr13exception_ptr10_M_releaseEv

@githubharald
Copy link
Owner

githubharald commented Jan 16, 2023

Hi, seems to be some mismatch between anaconda C++ libs and the ones compiled with word beam search.

Quickly googling shows entries like these:

However, I'm currently not sure how to fix this as I'm not using anaconda (but classic venv + pip).
Is there any chance you could try without anaconda, e.g. using the default Python installation and then trying to import word beam search?

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

2 participants