<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><div><div dir="ltr">Dear all,<div>What i have to do to link the paraview libraries to phyton libraries ?</div><div><br></div><div>I try to tun a paraview scrip invocing phyton in a Windos batch file and i have the following error:</div><div><br></div><div><div>C:\Users\madalenasantos\Desktop\Paraview>python Cone.py"</div><div>Error: Could not import vtkCommonComputationalGeometryPython</div><div>Traceback (most recent call last):</div><div> File "Cone.py", line 2, in <module></div><div> from paraview.simple import *</div><div> File "C:\Python27\lib\site-packages\paraview\simple.py", line 39, in <module></div><div> import servermanager</div><div> File "C:\Python27\lib\site-packages\paraview\servermanager.py", line 48, in <m</div><div>odule></div><div> import paraview, re, os, os.path, new, sys, atexit, vtk</div><div> File "C:\Python27\lib\site-packages\paraview\vtk\__init__.py", line 7, in <mod</div><div>ule></div><div> from vtkCommonCorePython import *</div><div>ImportError: No module named vtkCommonCorePython</div><div><br></div><div>C:\Users\madalenasantos\Desktop\Paraview>Pause</div><div>Press any key to continue . . .</div><div><br></div></div><div><br></div><div><br></div><div>Madalena<br><br><div><hr id="ecxstopSpelling">From: g.brito@aia.rwth-aachen.de<br>Date: Thu, 5 Feb 2015 13:03:35 +0100<br>To: paraview@paraview.org<br>Subject: [Paraview] CMake warning when linking plugin with library<br><br><div dir="ltr">When using the following CMake code to link a library to a paraview plugin:<br><br>> add_paraview_plugin(Reader "v1.0"<br>> SERVER_MANAGER_XML vtkReaderServConf.xml<br>> GUI_INTERFACES ${interfaces}<br>> SERVER_MANAGER_SOURCES vtkReader.cxx<br>> SOURCES ${sources}<br>> REQUIRED_ON_SERVER)<br>><br>> target_link_libraries(Reader ${READER_LIBS})<br><br>I get from CMake the following warning.<br><br>CMake Warning (dev) at reader/CMakeLists.txt:22 (target_link_libraries): <br><br>> PolicyCMP0023 is not set: Plain and keyword target_link_libraries<br>> signatures cannot be mixed. Run "cmake --help-policy CMP0023" for policy<br>> details. Use the cmake_policy command to set the policy and suppress this<br>> warning.<br>> The keyword signature for target_link_libraries has already been used with<br>> the target "Reader". All uses of target_link_libraries with a target<br>> should be either all-keyword or all-plain.<br>><br>> The uses of the keyword signature are here:<br>> * paraview_src/CMake/ParaViewPlugins.cmake:1096 (target_link_libraries)<br>> * paraview_src/CMake/ParaViewPlugins.cmake:1099 (target_link_libraries)<br>><br>> This warning is for project developers. Use -Wno-dev to suppress it.<br><br>What am I doing wrong and how do I fix it?<br>-- <div><div class="ecxgmail_signature"><div dir="ltr">Dipl.-Ing. Gonzalo Brito Gadeschi<br>Institute of Aerodynamics and Chair of Fluid Mechanics<br>RWTH Aachen University<br>Wuellnerstraße 5a<br>D-52062 Aachen<br>Germany<br>Phone: ++49-(0)241-80-94821<br>Fax: ++49-(0)241-80-92257<br>E-mail: <a href="mailto:g.brito@aia.rwth-aachen.de" target="_blank">g.brito@aia.rwth-aachen.de</a><br>Internet: <a href="http://www.aia.rwth-aachen.de" target="_blank">www.aia.rwth-aachen.de</a></div></div>
</div></div>
<br>_______________________________________________
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:
http://public.kitware.com/mailman/listinfo/paraview</div></div> </div></div><style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}
.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}
--></style> </div></body>
</html>