pytries / marisa-trie

Static memory-efficient Trie-like structures for Python based on marisa-trie C++ library.
https://marisa-trie.readthedocs.io/en/latest/
MIT License
1.03k stars 91 forks source link

ImportError missing symbols on macOS #56

Closed ianthetechie closed 3 years ago

ianthetechie commented 4 years ago

I get the following error when trying to import on macOS Catalina 10.15.4. I have version 0.7.5 installed via pipenv. Super simple Python shell transcript below.

14:40:23 ❯ pipenv run python
Python 3.7.3 (default, Mar  6 2020, 22:34:30)
[Clang 11.0.3 (clang-1103.0.32.29)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import marisa_trie
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: dlopen(/Users/ianthetechie/.local/share/virtualenvs/python-json-apis-b20-K_lB/lib/python3.7/site-packages/marisa_trie.cpython-37m-darwin.so, 2): Symbol not found: __ZN6marisa4Trie4mmapEPKc
  Referenced from: /Users/ianthetechie/.local/share/virtualenvs/python-json-apis-b20-K_lB/lib/python3.7/site-packages/marisa_trie.cpython-37m-darwin.so
  Expected in: flat namespace
 in /Users/ianthetechie/.local/share/virtualenvs/python-json-apis-b20-K_lB/lib/python3.7/site-packages/marisa_trie.cpython-37m-darwin.so
BoboTiG commented 3 years ago

Have a look at #66 ;)