Closed GandhiNN closed 6 years ago
Managed to solve this by reinstalling icu4c
and building pyicu
from scratch (and cleaned the build cache). I've wrote my workaround in details here https://stackoverflow.com/questions/50217214/import-error-for-icu-in-mac-and-ubuntu-although-pyicu-is-installed-correctly/50364835#50364835
Hi, this might seems like a recurring question regarding package installation, but i still could not run polyglot in my Mac machine after a seemingly successful installation of all the latest packages (from scratch) with the following traceback messages:
I checked the content of
_icu.cpython-36m-darwin.so
(usingcat
) and it seems the symbol are listed there.I am not sure if i have missed something during the installation or if there is any corrupted lib file; can you please help me point it out? Please find them below :
Installed
icu4c
using homebrew (brew install icu4c
)Exported all required environment variables before installing the
pyicu
packageCreated symlinks toward icu4c using
brew link icu4c --force
Installed pyicu using pip (
pip3 install pyicu
)Installed polyglot using pip (
pip3 install polyglot
)Side note : the same tracebacks were also generated when i tried
from icu import Locale
in the interactive shell(does this indicate that theicu4c
installation on my Mac was actually unsuccessful somehow?).FYI, i am using "vanilla" Python 3.6.5 and MacOS High Sierra 10.13.4