Some test text!

Search
Hamburger Icon

Mac / FAQ / "undefined symbol: PyUnicodeUCS4\_..." or "undefined symbol: PyUnicodeUCS2\_..." errors

"undefined symbol: PyUnicodeUCS4\_..." or "undefined symbol: PyUnicodeUCS2\_..." errors

This error means there is a mismatch between the byte size of Unicode characters used by the environment used to build the wrappers and the environment used to run them. Read this for more information.

If this error occured when using python environments with pyenv, you can simply reinstall the python version used to run the tests with the required Unicode character size. For example, if your Python version was 2.7.16 and you received the undefined symbol: PyUnicodeUCS2_ error when running the samples, execute:

pyenv uninstall 2.7.16

followed by

PYTHON_CONFIGURE_OPTS="--enable-unicode=ucs2" pyenv install 2.7.16

then set your pyenv environment to 2.7.16 and rerun the samples.

Get the answers you need: Chat with us