<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
You also have to prepend the paths with the .so's to LD_LIBRARY_PATH
before starting python.<br>
<br>
Burlen<br>
<br>
<div class="moz-cite-prefix">On 06/16/2015 07:19 PM, Felix Salazar
wrote:<br>
</div>
<blockquote
cite="mid:CACsb-XmgwMu0JJ+Wj0z5XpsMYUikj+N=ukDsDKgjooCSYSVUqA@mail.gmail.com"
type="cite">
<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 moz-do-not-send="true"
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>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Powered by <a class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a>
Visit other Kitware open-source projects at <a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>
Please keep messages on-topic and check the ParaView Wiki at: <a class="moz-txt-link-freetext" href="http://paraview.org/Wiki/ParaView">http://paraview.org/Wiki/ParaView</a>
Search the list archives at: <a class="moz-txt-link-freetext" href="http://markmail.org/search/?q=ParaView">http://markmail.org/search/?q=ParaView</a>
Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://public.kitware.com/mailman/listinfo/paraview">http://public.kitware.com/mailman/listinfo/paraview</a>
</pre>
</blockquote>
<br>
</body>
</html>