<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    are you by chance mixing two python installs? like one from a
    paraview binary you didn't build yourself, and your system python?<br>
    <br>
    <div class="moz-cite-prefix">On 06/17/2015 10:47 AM, Felix Salazar
      wrote:<br>
    </div>
    <blockquote
cite="mid:CACsb-X=weSaRvhY0RYw+xSFqHTQrrppd1AoOGdTurxXpqkkK6w@mail.gmail.com"
      type="cite">
      <div dir="ltr">Tried it, but for some reason, it breaks python<br>
        <br>
        <div><font face="monospace, monospace">$ python</font></div>
        <div><font face="monospace, monospace">Could not find platform
            independent libraries <prefix></font></div>
        <div><font face="monospace, monospace">Could not find platform
            dependent libraries <exec_prefix></font></div>
        <div><font face="monospace, monospace">Consider setting
            $PYTHONHOME to <prefix>[:<exec_prefix>]</font></div>
        <div><font face="monospace, monospace">ImportError: No module
            named site</font></div>
      </div>
      <div class="gmail_extra"><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><i><font face="arial, helvetica, sans-serif">     </font><font
                  face="'times new roman', serif">LADYF</font></i></div>
            <div><i style="font-family:arial,helvetica,sans-serif">     </i><font
                face="'times new roman', serif"><span
                  style="font-size:x-small">Lab. de dynamique </span><span
                  style="font-size:x-small">des fluides</span></font></div>
            <div>
              <div>
                <div>
                  <div>(514) 340 4711 ext 2489<br>
                    Local: C-318.21.3<b><br>
                    </b>------------------------------------<br>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
        <br>
        <div class="gmail_quote">On Wed, Jun 17, 2015 at 10:19 AM,
          Burlen Loring <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:burlen.loring@gmail.com" target="_blank">burlen.loring@gmail.com</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div 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
              <div>
                <div class="h5"><br>
                  <br>
                  <div>On 06/16/2015 07:19 PM, Felix Salazar wrote:<br>
                  </div>
                </div>
              </div>
              <blockquote type="cite">
                <div>
                  <div class="h5">
                    <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>------------------------------------<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></fieldset>
                    <br>
                  </div>
                </div>
                <pre>_______________________________________________
Powered by <a moz-do-not-send="true" href="http://www.kitware.com" target="_blank">www.kitware.com</a>

Visit other Kitware open-source projects at <a moz-do-not-send="true" href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a>

Please keep messages on-topic and check the ParaView Wiki at: <a moz-do-not-send="true" href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a>

Search the list archives at: <a moz-do-not-send="true" href="http://markmail.org/search/?q=ParaView" target="_blank">http://markmail.org/search/?q=ParaView</a>

Follow this link to subscribe/unsubscribe:
<a moz-do-not-send="true" href="http://public.kitware.com/mailman/listinfo/paraview" target="_blank">http://public.kitware.com/mailman/listinfo/paraview</a>
</pre>
              </blockquote>
              <br>
            </div>
          </blockquote>
        </div>
        <br>
      </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>