[Paraview] PYTHONPATH environmental variable

Felix Salazar felix.salazar at polymtl.ca
Wed Jun 17 13:47:08 EDT 2015


Tried it, but for some reason, it breaks python

$ python
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
ImportError: No module named site

------------------------------------

*Félix Salazar**felix.salazar at polymtl.ca <felix.salazar at polymtl.ca>*
Étudiant au doctorat - PhD Student
*École Polytechnique de Montréal*
*     LADYF*
     Lab. de dynamique des fluides
(514) 340 4711 ext 2489
Local: C-318.21.3
------------------------------------

On Wed, Jun 17, 2015 at 10:19 AM, Burlen Loring <burlen.loring at gmail.com>
wrote:

>  You also have to prepend the paths with the .so's to LD_LIBRARY_PATH
> before starting python.
>
> Burlen
>
>
> On 06/16/2015 07:19 PM, Felix Salazar wrote:
>
> Hello community,
>
>  I normally run my Paraview scripts in pvpython, 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
>
>  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
>
>  *Error: Could not import vtkCommonComputationalGeometryPython*
> Traceback (most recent call last):
>   File "/home/pissarro/fesal/Tools/zReattachment-NP.py", line 4, in
> <module>
>     except: from paraview.simple import *
>   File
> "/apps/local-linux/paraview4.01/lib/paraview-4.0/site-packages/paraview/simple.py",
> line 41, in <module>
>     import servermanager
>   File
> "/apps/local-linux/paraview4.01/lib/paraview-4.0/site-packages/paraview/servermanager.py",
> line 48, in <module>
>     import paraview, re, os, os.path, new, sys, atexit, vtk
>   File
> "/apps/local-linux/paraview4.01/lib/paraview-4.0/site-packages/paraview/vtk/__init__.py",
> line 7, in <module>
>     from vtkCommonCorePython import *
> *ImportError: libvtkCommonCorePython27D-pv4.0.so.1: cannot open shared
> object file: No such file or directory*
>
>  At this point my PYTHONPATH variable is:
>
>  PYTHONPATH=*/apps/local-linux/paraview4.01/lib/paraview-4.0*
> :/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
>
>  And the file libvtkCommonCorePython27D-pv4.0.so.1 is in
> */apps/local-linux/paraview4.01/lib/paraview-4.0/*
>
>  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?
>
>  Also, if I type help('modules') in a python console, I get this error
> message before the list of modules
>
>  Please wait a moment while I gather a list of all available modules...
>
>  Error: Could not import vtkCommonComputationalGeometryPython
>
>  Thanks,
>
>  ------------------------------------
>
> * Félix Salazar **felix.salazar at polymtl.ca <felix.salazar at polymtl.ca>*
> Étudiant au doctorat - PhD Student
> *École Polytechnique de Montréal*
>   ------------------------------------
>
>
> _______________________________________________
> 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
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20150617/87132a5a/attachment.html>


More information about the ParaView mailing list