0

I am trying to run a python program that uses pyicu module on a virtual environment. After calling pip install pyicu and successfully downloading the 2.10.2 version, I am getting an error in the __init__.py folder:

class ICUError(Exception):
    messages = {}

    def __str__(self):
        return "%s, error code: %d" %(self.args[1], self.args[0])

    def getErrorCode(self):
        return self.args[0]


class InvalidArgsError(Exception):
    pass


from ._icu_ import *

the error is in the last line, when importing from the ._icu_ package. Please note that this file is automatically downloaded when I installed the module.

The error I am getting is:

python3.10/site-packages/icu/__init__.py", line 37, in <module>
    from ._icu_ import *
ImportError: dlopen(~/parser_env/lib/python3.10/site-packages/icu/_icu_.cpython-310-darwin.so, 0x0002): symbol not found in flat namespace '__ZN6icu_5810DateFormat14createInstanceEv'

I tried reinstalling icu4c but did not work. I have also tried reinstalling the previous version of pyicu but had an error that did not allow me to.

Carla
  • 1

0 Answers0