Some test text!

menu
"undefined symbol: PyUnicodeUCS4\_..." or "undefined symbol: PyUnicodeUCS2\_..." errorskeyboard_arrow_down

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

close

Free Trial

Get unlimited trial usage of PDFTron SDK to bring accurate, reliable, and fast document processing capabilities to any application or workflow.

Select a platform to get started with your free trial.

Unlimited usage. No email address required.