Hi,
When I import pysmile, I get the following error:
undefined symbol: PyUnicodeUCS4_FromStringAndSize
From my understanding, this is due to a mismatch between the compiled pysmile.so file and my python build in the number of bits used to store unicode characters. Is there a build of pysmile that uses a UCS2 unicode definition? Or is there another way around this issue?
Thank you,
Matt
Issue importing pysmile: "undefined symbol: PyUnicodeUCS4_FromStringAndSize"
-
- Site Admin
- Posts: 61
- Joined: Mon Nov 06, 2017 6:41 pm
Re: Issue importing pysmile: "undefined symbol: PyUnicodeUCS4_FromStringAndSize"
Hello,
I need some informations first, if you want me to help you.
1. Which OS you have?
2. Which Python you are using? (python -V)
3. Your Python Unicode config (print sys.maxunicode)
Best regards,
Piotr
I need some informations first, if you want me to help you.
1. Which OS you have?
2. Which Python you are using? (python -V)
3. Your Python Unicode config (print sys.maxunicode)
Best regards,
Piotr
Re: Issue importing pysmile: "undefined symbol: PyUnicodeUCS4_FromStringAndSize"
Thank you for your help. My specs are as follows:
1. Scientific Linux
2. Python 2.7.9
3. The output of "print sys.maxunicode": 65535
1. Scientific Linux
2. Python 2.7.9
3. The output of "print sys.maxunicode": 65535
-
- Site Admin
- Posts: 61
- Joined: Mon Nov 06, 2017 6:41 pm
Re: Issue importing pysmile: "undefined symbol: PyUnicodeUCS4_FromStringAndSize"
As you said - it's mismatch between unicode used to Python compilation. Unfortunately, we don't have build dedicated for Python builded with UCS2. At this moment, only way to use PySmile is to have Python compiled with UCS4.