"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:

sh

1pyenv uninstall 2.7.16

followed by

sh

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

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

Did you find this helpful?

Trial setup questions?

Ask experts on Discord

Need other help?

Contact Support

Pricing or product questions?

Contact Sales