[Paraview] Error building ParaView with OSMesa and Python

Ian Krukow i.krukow at tu-braunschweig.de
Wed Jan 9 07:54:11 EST 2013


Ok, I found the problem - and a solution.

There are two versions of Python installed on the cluster, 2.4 and 2.7. 
CCMake automatically found Python 2.7, but there is obviously no 
libpython2.7.so, only libpython2.7.a. So CCMake took the library of 
Python 2.4, but everything else from Python 2.7.
Now, I use a seperately built Python 2.7 of a colleague, and everything 
is fine.

Sorry for the disturbance!
Ian


Am 09.01.2013 09:58, schrieb Ian Krukow:
> How can I find out, whether Unicode support is included? The function
> 'unicode' is working. Is that enough?
>
> Ian
>
>
> Am 08.01.2013 22:31, schrieb Utkarsh Ayachit:
>> I wonder if the problem is because the Python on RedHat is not built
>> with Unicode support. Can anyone confirm that? If so, I am assuming
>> there must be mechanisms of skipping corresponding code in
>> VTK/ParaView.
>>
>> Utkarsh
>>
>> On Tue, Jan 8, 2013 at 5:19 AM, Ian
>> Krukow<i.krukow at tu-braunschweig.de> wrote:
>>> Hello,
>>>
>>> I am trying to build ParaView 3.98.0 with OSMesa and Python 2.7 on a
>>> Linux
>>> cluster (Red Hat Enterprise). According to the Wiki
>>> (http://paraview.org/Wiki/ParaView/ParaView_And_Mesa_3D), I do the
>>> following:
>>>
>>> ccmake -D PARAVIEW_BUILD_QT_GUI:BOOL=OFF -D VTK_USE_X:BOOL=OFF -D
>>> VTK_OPENGL_HAS_OSMESA:BOOL=ON {PARAVIEW_SOURCE_DIR}
>>> Specify OSMesa paths
>>> configure
>>> generate
>>> make
>>>
>>> So far, Python is disabled, and everything works fine. Then I turn on
>>> the
>>> parameter PARAVIEW_ENABLE_PYTHON. On my laptop (Ubuntu 12.04),
>>> everything is
>>> still fine. But on the cluster, I run into the following error with
>>> the make
>>> command:
>>>
>>> [iankruko at dnode192 ParaView-3.98.0-OSMesa]$ make
>>> [ 0%] Built target vtksys
>>> [ 0%] Built target vtkWrappingTools
>>> [ 0%] Built target vtkWrapHierarchy
>>> [ 1%] Built target vtkCommonCore
>>> [ 1%] Built target vtkWrapPythonInit
>>> Linking CXX shared library ../../../lib/libvtkWrappingPython27-pv3.98.so
>>> CMakeFiles/vtkWrappingPython.dir/vtkPythonArgs.cxx.o: In function
>>> `vtkPythonArgs::BuildValue(vtkUnicodeString const&)':
>>> /home/iankruko/sources/ParaView-3.98.0-src/VTK/Wrapping/Python/vtkPythonArgs.h:692:
>>>
>>> undefined reference to `PyUnicodeUCS2_DecodeUTF8'
>>> CMakeFiles/vtkWrappingPython.dir/vtkPythonArgs.cxx.o: In function `bool
>>> vtkPythonGetUnsignedLongLongValue<unsigned long long>(_object*, unsigned
>>> long long&)':
>>> /home/iankruko/sources/ParaView-3.98.0-src/VTK/Wrapping/Python/vtkPythonArgs.cxx:106:
>>>
>>> undefined reference to `PyErr_WarnEx'
>>> CMakeFiles/vtkWrappingPython.dir/vtkPythonArgs.cxx.o: In function
>>> `vtkPythonGetValue(_object*, long&)':
>>> /home/iankruko/sources/ParaView-3.98.0-src/VTK/Wrapping/Python/vtkPythonArgs.cxx:50:
>>>
>>> undefined reference to `PyErr_WarnEx'
>>> CMakeFiles/vtkWrappingPython.dir/vtkPythonArgs.cxx.o: In function `bool
>>> vtkPythonGetLongLongValue<long long>(_object*, long long&)':
>>> /home/iankruko/sources/ParaView-3.98.0-src/VTK/Wrapping/Python/vtkPythonArgs.cxx:92:
>>>
>>> undefined reference to `PyErr_WarnEx'
>>> CMakeFiles/vtkWrappingPython.dir/vtkPythonArgs.cxx.o: In function
>>> `vtkPythonGetValue(_object*, unsigned long&)':
>>> /home/iankruko/sources/ParaView-3.98.0-src/VTK/Wrapping/Python/vtkPythonArgs.cxx:59:
>>>
>>> undefined reference to `PyErr_WarnEx'
>>> CMakeFiles/vtkWrappingPython.dir/vtkPythonArgs.cxx.o: In function `bool
>>> vtkPythonGetStringValue<char const>(_object*, char const*&, char
>>> const*)':
>>> /home/iankruko/sources/ParaView-3.98.0-src/VTK/Wrapping/Python/vtkPythonArgs.cxx:161:
>>>
>>> undefined reference to `_PyUnicodeUCS2_AsDefaultEncodedString'
>>> CMakeFiles/vtkWrappingPython.dir/vtkPythonArgs.cxx.o: In function `bool
>>> vtkPythonGetStringValue<char>(_object*, char*&, char const*)':
>>> /home/iankruko/sources/ParaView-3.98.0-src/VTK/Wrapping/Python/vtkPythonArgs.cxx:161:
>>>
>>> undefined reference to `_PyUnicodeUCS2_AsDefaultEncodedString'
>>> CMakeFiles/vtkWrappingPython.dir/vtkPythonArgs.cxx.o: In function
>>> `vtkPythonGetValue(_object*, vtkUnicodeString&)':
>>> /home/iankruko/sources/ParaView-3.98.0-src/VTK/Wrapping/Python/vtkPythonArgs.cxx:311:
>>>
>>> undefined reference to `PyUnicodeUCS2_AsUTF8String'
>>> CMakeFiles/vtkWrappingPython.dir/vtkPythonArgs.cxx.o: In function
>>> `vtkPythonGetStdStringValue(_object*, std::basic_string<char,
>>> std::char_traits<char>, std::allocator<char> >&, char const*)':
>>> /home/iankruko/sources/ParaView-3.98.0-src/VTK/Wrapping/Python/vtkPythonArgs.cxx:196:
>>>
>>> undefined reference to `_PyUnicodeUCS2_AsDefaultEncodedString'
>>> CMakeFiles/vtkWrappingPython.dir/vtkPythonUtil.cxx.o: In function
>>> `vtkPythonUtil::VariantHash(vtkVariant const*)':
>>> /home/iankruko/sources/ParaView-3.98.0-src/VTK/Wrapping/Python/vtkPythonUtil.cxx:850:
>>>
>>> undefined reference to `PyUnicodeUCS2_DecodeUTF8'
>>> CMakeFiles/vtkWrappingPython.dir/PyVTKMutableObject.cxx.o: In function
>>> `PyVTKMutableObject_Index':
>>> /home/iankruko/sources/ParaView-3.98.0-src/VTK/Wrapping/Python/PyVTKMutableObject.cxx:464:
>>>
>>> undefined reference to `PyNumber_Index'
>>> CMakeFiles/vtkWrappingPython.dir/PyVTKMutableObject.cxx.o: In function
>>> `PyVTKMutableObject_Hex':
>>> /home/iankruko/sources/ParaView-3.98.0-src/VTK/Wrapping/Python/PyVTKMutableObject.cxx:385:
>>>
>>> undefined reference to `PyNumber_ToBase'
>>> CMakeFiles/vtkWrappingPython.dir/PyVTKMutableObject.cxx.o: In function
>>> `PyVTKMutableObject_Oct':
>>> /home/iankruko/sources/ParaView-3.98.0-src/VTK/Wrapping/Python/PyVTKMutableObject.cxx:403:
>>>
>>> undefined reference to `PyNumber_ToBase'
>>> CMakeFiles/vtkWrappingPython.dir/PyVTKMutableObject.cxx.o:(.data.rel+0x78):
>>>
>>> undefined reference to `PyObject_HashNotImplemented'
>>> collect2: ld gab 1 als Ende-Status zurück
>>> make[2]: *** [lib/libvtkWrappingPython27-pv3.98.so.1] Fehler 1
>>> make[1]: *** [VTK/Wrapping/Python/CMakeFiles/vtkWrappingPython.dir/all]
>>> Fehler 2
>>> make: *** [all] Fehler 2
>>>
>>> I do not know, where the essential difference between the two systems
>>> is,
>>> neither where to look for it. Can anybody help me?
>>>
>>> Thanks,
>>> Ian
>>> _______________________________________________
>>> 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
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> http://www.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
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview


More information about the ParaView mailing list