<div dir="ltr">Hello community,<div><br></div><div>I normally run my Paraview scripts in <font face="monospace, monospace">pvpython</font>, so far without issues. But I got some problems using specific Python functions (multiprocess), and decided to switch to import paraview libraries directly within Python</div><div><br></div><div>I set my PYTHONPATH variable to the installation library where the files are located. Got a few errors, and added more directories, progressively clearing and decreasing the number of errors, until a point where I'm getting this message</div><div><br></div><div><div><font face="monospace, monospace"><b>Error: Could not import vtkCommonComputationalGeometryPython</b></font></div><div><font face="monospace, monospace">Traceback (most recent call last):</font></div><div><font face="monospace, monospace"> File "/home/pissarro/fesal/Tools/zReattachment-NP.py", line 4, in <module></font></div><div><font face="monospace, monospace"> except: from paraview.simple import *</font></div><div><font face="monospace, monospace"> File "/apps/local-linux/paraview4.01/lib/paraview-4.0/site-packages/paraview/simple.py", line 41, in <module></font></div><div><font face="monospace, monospace"> import servermanager</font></div><div><font face="monospace, monospace"> File "/apps/local-linux/paraview4.01/lib/paraview-4.0/site-packages/paraview/servermanager.py", line 48, in <module></font></div><div><font face="monospace, monospace"> import paraview, re, os, os.path, new, sys, atexit, vtk</font></div><div><font face="monospace, monospace"> File "/apps/local-linux/paraview4.01/lib/paraview-4.0/site-packages/paraview/vtk/__init__.py", line 7, in <module></font></div><div><font face="monospace, monospace"> from vtkCommonCorePython import *</font></div><div><font face="monospace, monospace"><b>ImportError: libvtkCommonCorePython27D-pv4.0.so.1: cannot open shared object file: No such file or directory</b></font></div></div><div><br></div><div>At this point my PYTHONPATH variable is:<br><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">PYTHONPATH=<b>/apps/local-linux/paraview4.01/lib/paraview-4.0</b>:/apps/local-linux/paraview4.01/lib/paraview-4.0/site-packages/paraview/vtk:/apps/local-linux/paraview4.01/lib/paraview-4.0/site-packages:/apps/local-linux/paraview4.01/bin</font></div><div><br></div><div>And the file <font face="monospace, monospace">libvtkCommonCorePython27D-pv4.0.so.1</font> is in <font face="monospace, monospace"><b>/apps/local-linux/paraview4.01/lib/paraview-4.0/</b></font></div><div><br></div><div>Hence, that location is part of the path variable, but for some reason is not recognized. Is there any specific or recommended order to load these directories in the PYTHONPATH variable?</div><div><br></div><div>Also, if I type <font face="monospace, monospace">help('modules')</font> in a python console, I get this error message before the list of modules</div><div><br></div><div><div><font face="monospace, monospace">Please wait a moment while I gather a list of all available modules...</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">Error: Could not import vtkCommonComputationalGeometryPython</font></div></div><div><br></div><div>Thanks,</div><div><br clear="all"><div><div class="gmail_signature">------------------------------------<b><br>Félix Salazar<br></b><i><a href="mailto:felix.salazar@polymtl.ca" target="_blank"><span style="color:rgb(51,102,255)">felix.salazar@polymtl.ca</span></a></i><b><br></b><font size="1">Étudiant au doctorat - PhD Student</font><div><font face="arial, helvetica, sans-serif"><i>École Polytechnique de Montréal</i></font></div><div><div><div><div>------------------------------------<br></div></div></div></div></div></div>
</div></div>