Skip to content

Support for icu4c version 74+ (Mac OS X)

Greetings,

I'm using a Mac (OS X), and I've a current project that makes use of pyicu.

Running unit tests for my project revealed an error in which importing the pyicu module (i.e., import pyicu) failed. I tried erasing and re-installing pyicu to see if it the error would go away, but it didn't

After reading the logs, I noticed that pyicu was trying to use icu4c version 73, but mentioned version 74 in a full path message. I then realized, this was probably happening because recently, I ran a brew update command, which I then noticed that it updated my icu4c version from 73.2 to 74.2.

I had to manually revert to an older version of the icu4c homebrew package (which unfortunately was unnecessarily more difficult than I expected). I currently have my unit tests passing after reverting to icu4c version 73.

This probably means someone following the docs for OS X installation will not be able to get pyicu to work. I'm writing this issue to request support for the new icu4c version 74 which is what brew install icu4c provides now.

Maybe it would be nice to also display which versions of icu4c the pyicu package works with (maybe this exists and I just haven't seen it yet).

Thanks for the great work you all do!