Issue importing pysmile: "undefined symbol: PyUnicodeUCS4_FromStringAndSize"

The engine.
Post Reply
mbernste
Posts: 5
Joined: Sat Jun 30, 2018 8:22 pm

Issue importing pysmile: "undefined symbol: PyUnicodeUCS4_FromStringAndSize"

Post by mbernste » Mon Jul 02, 2018 4:01 pm

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

piotr [BayesFusion]
Site Admin
Posts: 25
Joined: Mon Nov 06, 2017 6:41 pm

Re: Issue importing pysmile: "undefined symbol: PyUnicodeUCS4_FromStringAndSize"

Post by piotr [BayesFusion] » Wed Jul 04, 2018 10:16 am

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

mbernste
Posts: 5
Joined: Sat Jun 30, 2018 8:22 pm

Re: Issue importing pysmile: "undefined symbol: PyUnicodeUCS4_FromStringAndSize"

Post by mbernste » Sun Jul 08, 2018 3:49 pm

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

piotr [BayesFusion]
Site Admin
Posts: 25
Joined: Mon Nov 06, 2017 6:41 pm

Re: Issue importing pysmile: "undefined symbol: PyUnicodeUCS4_FromStringAndSize"

Post by piotr [BayesFusion] » Mon Jul 09, 2018 1:47 pm

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.

Post Reply