[Paraview] using paraview with ompi and grid engine queue system

Thomas Førde thomas.forde at ulstein.com
Fri Jan 8 09:25:31 EST 2016


Im not able to disabled Wrapping\PythonCore in cmake it seems, so im not able to continue there.


Is this a problem related to my version of python 2.6?

Linking CXX shared library ../../../lib/libvtkWrappingPython26Core-pv4.4.so
CMakeFiles/vtkWrappingPythonCore.dir/vtkPythonArgs.cxx.o: In function `vtkPythonGetValue':
/root/paraview_make/ParaView-v4.4.0-source/VTK/Wrapping/PythonCore/vtkPythonArgs.cxx:187: undefined reference to `PyObject_GetBuffer'

Lots of these undefined there, and ends with the following:

CMakeFiles/vtkWrappingPythonCore.dir/PyVTKTemplate.cxx.o: In function `PyVTKTemplate_AddItem':
/root/paraview_make/ParaView-v4.4.0-source/VTK/Wrapping/PythonCore/PyVTKTemplate.cxx:427: undefined reference to `PyExc_TypeError'
/root/paraview_make/ParaView-v4.4.0-source/VTK/Wrapping/PythonCore/PyVTKTemplate.cxx:427: undefined reference to `PyErr_SetString'
/root/paraview_make/ParaView-v4.4.0-source/VTK/Wrapping/PythonCore/PyVTKTemplate.cxx:437: undefined reference to `PyExc_TypeError'
/root/paraview_make/ParaView-v4.4.0-source/VTK/Wrapping/PythonCore/PyVTKTemplate.cxx:437: undefined reference to `PyErr_SetString'
/root/paraview_make/ParaView-v4.4.0-source/VTK/Wrapping/PythonCore/PyVTKTemplate.cxx:444: undefined reference to `PyExc_TypeError'
/root/paraview_make/ParaView-v4.4.0-source/VTK/Wrapping/PythonCore/PyVTKTemplate.cxx:444: undefined reference to `PyErr_SetString'
/root/paraview_make/ParaView-v4.4.0-source/VTK/Wrapping/PythonCore/PyVTKTemplate.cxx:456: undefined reference to `PyExc_TypeError'
/root/paraview_make/ParaView-v4.4.0-source/VTK/Wrapping/PythonCore/PyVTKTemplate.cxx:456: undefined reference to `PyErr_SetString'
/root/paraview_make/ParaView-v4.4.0-source/VTK/Wrapping/PythonCore/PyVTKTemplate.cxx:460: undefined reference to `PyInt_FromLong'
/root/paraview_make/ParaView-v4.4.0-source/VTK/Wrapping/PythonCore/PyVTKTemplate.cxx:525: undefined reference to `PyExc_TypeError'
/root/paraview_make/ParaView-v4.4.0-source/VTK/Wrapping/PythonCore/PyVTKTemplate.cxx:525: undefined reference to `PyErr_SetString'
/root/paraview_make/ParaView-v4.4.0-source/VTK/Wrapping/PythonCore/PyVTKTemplate.cxx:548: undefined reference to `PyExc_TypeError'
/root/paraview_make/ParaView-v4.4.0-source/VTK/Wrapping/PythonCore/PyVTKTemplate.cxx:548: undefined reference to `PyErr_SetString'
/root/paraview_make/ParaView-v4.4.0-source/VTK/Wrapping/PythonCore/PyVTKTemplate.cxx:551: undefined reference to `PyString_FromStringAndSize'
/root/paraview_make/ParaView-v4.4.0-source/VTK/Wrapping/PythonCore/PyVTKTemplate.cxx:562: undefined reference to `PyTuple_New'
/root/paraview_make/ParaView-v4.4.0-source/VTK/Wrapping/PythonCore/PyVTKTemplate.cxx:569: undefined reference to `PyDict_SetItem'
CMakeFiles/vtkWrappingPythonCore.dir/PyVTKTemplate.cxx.o:(.data.rel+0x8): undefined reference to `PyType_Type'
CMakeFiles/vtkWrappingPythonCore.dir/PyVTKTemplate.cxx.o:(.data.rel+0x90): undefined reference to `PyObject_GenericGetAttr'
collect2: ld returned 1 exit status
make[2]: *** [lib/libvtkWrappingPython26Core-pv4.4.so.1] Error 1
make[1]: *** [VTK/Wrapping/PythonCore/CMakeFiles/vtkWrappingPythonCore.dir/all] Error 2
make: *** [all] Error 2




From: David E DeMarle [mailto:dave.demarle at kitware.com]
Sent: 7. januar 2016 16:25
To: Thomas Førde <thomas.forde at ulstein.com>
Cc: Utkarsh Ayachit <utkarsh.ayachit at kitware.com>; paraview at paraview.org
Subject: Re: [Paraview] using paraview with ompi and grid engine queue system

Turn this:
PARAVIEW_ENABLE_WEB:BOOL=ON
to this:
PARAVIEW_ENABLE_WEB:BOOL=OFF
I think the web features require more recent python than your system has.


David E DeMarle
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909

On Thu, Jan 7, 2016 at 9:57 AM, Thomas Førde <thomas.forde at ulstein.com<mailto:thomas.forde at ulstein.com>> wrote:
Once added all the python libs and include dirs., it fails atm right now with the following.

Linking CXX shared library ../../../lib/libvtkWebCore-pv4.4.so<http://libvtkWebCore-pv4.4.so>
CMakeFiles/vtkWebCore.dir/vtkWebUtilities.cxx.o: In function `vtkWebUtilities::ProcessRMIs(int, int)':
/root/paraview_make/ParaView-v4.4.0-source/VTK/Web/Core/vtkWebUtilities.cxx:131: undefined reference to `PyEval_SaveThread'
/root/paraview_make/ParaView-v4.4.0-source/VTK/Web/Core/vtkWebUtilities.cxx:133: undefined reference to `PyEval_RestoreThread'
collect2: ld returned 1 exit status

so ill have to dig into it and see what this one is about.

-----Original Message-----
From: Utkarsh Ayachit [mailto:utkarsh.ayachit at kitware.com<mailto:utkarsh.ayachit at kitware.com>]
Sent: 7. januar 2016 15:40
To: Thomas Førde <thomas.forde at ulstein.com<mailto:thomas.forde at ulstein.com>>
Cc: paraview at paraview.org<mailto:paraview at paraview.org>
Subject: Re: [Paraview] using paraview with ompi and grid engine queue system
> As you suspect is was not enabled in the cmake.

I assume you're referring to the PARAVIEW_ENABLE_PYTHON flag? Yes, that'd explain the pvbatch missing issue. However, I you seem to have correctly enabled OSMesa support, so I am a little confused how you'd be getting the X errors.

> But do I really need it?

Yes, you need to enable Python support if you need pvbatch.

For running scripts are you're trying you'd definitely need the pvbatch executable and not the "pvserver". Although that still doesn't explain how you are getting the X errors, let's start by enabling Python and then let's see.

Utkarsh
_______________________________________________
Powered by www.kitware.com<http://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:
http://public.kitware.com/mailman/listinfo/paraview

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20160108/4685820e/attachment.html>


More information about the ParaView mailing list