Currently, it appears the ParaView’s Python (Linux only) is built with 2 Unicode width which is incompatible with just about every Linux python distribution I have encountered. I noticed this when trying to import pandas installed via pip under the PYTHONPATH and received an error:
>>> import pandas
...
ImportError: C extension ..../pandas/_libs/tslib.so: undefined symbol: PyUnicodeUCS4_DecodeUTF8 not built. ...
It appears to me that this could be fixed by building pvpython with 4 Unicode widths, so I am curious if there is any reason why ParaView is width 2 on Linux (Windows and Mac are width 4)?
What do I do?
I’m curious if anyone is aware of any way to address this issue. Any help would be much appreciated!
Thanks, @Daan_van_Vugt, that’s a neat fix! I haven’t had any luck building PV from source against a Python env, but I think this would work if I set up the PYTHONPATH that PV sees to this environment! I’ll have to give this a try and also see if I can find a way for anaconda to do this in a similar manner.