Closed proycon closed 6 years ago
python-frog and python-ucto compile but fail during module import, most likely related to issue LanguageMachines/libfolia#3
>>> import ucto
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: dlopen(/Users/proycon/LaMachine/lamachine/lib/python3.4/site-packages/ucto.so, 2): Symbol not found: __ZNK5folia9FoliaImpl10element_idEv
Referenced from: /Users/proycon/LaMachine/lamachine/lib/libucto.2.dylib
Expected in: flat namespace
in /Users/proycon/LaMachine/lamachine/lib/libucto.2.dylib
python-ucto now works, python-frog breaks still with same error as in first message
Removed gecco from LaMachine entirely... python-frog still fails:
Details for failed test [python] frog: Traceback (most recent call last): File "
", line 1, in ImportError: dlopen(/Users/proycon/work/LaMachine/lamachine/lib/python3.5/site-packages/frog.cpython-35m-darwin.so, 2): Symbol not found: ZNSt31lsIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS_13basic_ostreamIT_T0_EES9_RKNS_12basic_stringIS6_S7_T1_EE Referenced from: /Users/proycon/work/LaMachine/lamachine/lib/libfrog.1.dylib Expected in: flat namespace in /Users/proycon/work/LaMachine/lamachine/lib/libfrog.1.dylib
Hi @proycon, I still have error importing python-ucto
on macOS.
The error is similar to the last one.
>>> import ucto Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: dlopen(/Users/u1/anaconda2/envs/py3/lib/python3.5/site-packages/ucto.cpython-35m-darwin.so, 2): Symbol not found: __ZN9Tokenizer14TokenizerClass12tokenizeLineERKSsS2_ Referenced from: /Users/u1/anaconda2/envs/py3/lib/python3.5/site-packages/ucto.cpython-35m-darwin.so Expected in: flat namespace in /Users/u1/anaconda2/envs/py3/lib/python3.5/site-packages/ucto.cpython-35m-darwin.so
Sorry for the delay, this is indeed a rather persistent problem that we don't really know the cause of :(
I am also stuck on this last error... Any progress in the meanwhile?
Not really no. I would have to dive into this again. It's very mac-specific..
I'm digging into the Mac OS X compilation issues again in the scope of the new LaMachine v2 developments where I run into similar issues. python-timbl
and colibricore
compile and import fine.
One issue on Mac OS X is that libstdc++
is deprecated and libc++
should be used instead, so I pass the necessary -stdlib
flag now in LaMachine v2.
python-ucto
and python-frog
compile but fail with a missing symbol (the same one, albeit different ones than in the original posts of this issue):
>>> import ucto
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: dlopen(/Users/proycon/.conda/envs/lamachine-conda-dev-mac/lib/python3.6/site-packages/ucto.cpython-36m-darwin.so, 2): Symbol not found: __ZN4TiCC17UnicodeNormalizer9normalizeERKN6icu_5813UnicodeStringE
Referenced from: /Users/proycon/lamachine-conda-dev-mac/lib/libfolia.8.dylib
Expected in: flat namespace
in /Users/proycon/lamachine-conda-dev-mac/lib/libfolia.8.dylib
ticcutils was not explicitly linked (otool -L
), but adding that didn't help things either. After investigation with nm libticcutils.4.dylib
I found that the icu version in the symbol name is different!
0000000000032760 T __ZN4TiCC17UnicodeNormalizer9normalizeERKN6icu_6013UnicodeStringE
So I'm guessing during compilation the wrong icu version is found? Investigating..
Finally solved now in upcoming LaMachine v2
Thanks!
During install:
Python-timbl compilation, no pthread on Mac OS X?
Python-frog compilation:
Gecco setup, error in 3rd party dependency hunspell.
From python interpreter: