Re: [Paraview] undefined symbol: PyUnicodeUCS2_AsEncodedString

2018-02-02 Thread Fabian Wein

Hi Shawn,

It looks to me like you built against a Python that was configured with UCS2 
unicode objects and are linking to a Python that was configured with UCS4 
unicode objects.  Python is not ABI-compatible with other Pythons that were 
built with a different kind of unicode support.


I aggree with your observation. The point is, that not me is linking but it is 
the paraview-superbuild which failes. With USE_SYSTEM_python=OFF I would expect 
that my system python is not touched?!

BTW, I can confirm that it works with USE_SYSTEM_python=ON, so a trivial 
workaround exists.

Fabian
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
https://paraview.org/mailman/listinfo/paraview


Re: [Paraview] undefined symbol: PyUnicodeUCS2_AsEncodedString

2018-02-02 Thread Shawn Waldon
Hi Fabian,

It looks to me like you built against a Python that was configured with
UCS2 unicode objects and are linking to a Python that was configured with
UCS4 unicode objects.  Python is not ABI-compatible with other Pythons that
were built with a different kind of unicode support.

Shawn

On Fri, Feb 2, 2018 at 10:55 AM, Fabian Wein  wrote:

> It get's (for me) strange:
>
> nm /home/fwein/code/cfs_paraview/build_python/build/install/lib
> 64/python2.7/lib-dynload/_struct.so | grep PyUni
>  U PyUnicodeUCS2_AsEncodedString
>
> nm -D /usr/lib64/python2.7/lib-dynload/_struct.so | grep PyUnico
>  U PyUnicodeUCS4_AsEncodedString
>
> This is as I would expect it. So, I don't understand the error message:
>
> ImportError: /home/fwein/code/cfs_paraview/build_python/build/install/lib
> 64/python2.7/lib-dynload/_struct.so: undefined symbol:
> PyUnicodeUCS2_AsEncodedString
>
> Is the error message wrong with the filename?
>
> Mabye the path are set wrong?!
>
>
> Fabian
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensou
> rce/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> https://paraview.org/mailman/listinfo/paraview
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
https://paraview.org/mailman/listinfo/paraview