[Paraview] PYTHONPATH for prebuilt MAC OSX Paraview
Colin McAuliffe
cjm2176 at columbia.edu
Sat Oct 1 16:55:34 EDT 2011
Yes I am experiencing the same trouble with my system python but
pypython works very nicely
Thanks
Colin
Quoting pat marion <pat.marion at kitware.com>:
> The 'paraview' directory is the module. Python treats directories that
> contain a __init__.py file as modules. So you want your python path to
> contain "/Applications/ParaView 3.10.1.app/Contents/Python", and drop the
> /paraview ending.
>
> But, I recommend you use pvpython instead of python. The paraview python
> modules may not be compatible with your system python. Using pvpython also
> ensures that all paths are set correctly, so you don't need to set
> PYTHONPATH. You can find pvpython at:
>
> /Applications/ParaView\ 3.10.1.app/Contents/bin/pvpython
>
> If you want to try system python, you need to:
>
> export PYTHONPATH=/Applications/ParaView\
> 3.10.1.app/Contents/Python:/Applications/ParaView\
> 3.10.1.app/Contents/Libraries
> export DYLD_LIBRARY_PATH=/Applications/ParaView\
> 3.10.1.app/Contents/Libraries
>
> I'm not sure it will work for you though. On my system, python aborts when
> the modules are loaded.
>
> Pat
>
> On Fri, Sep 30, 2011 at 11:51 AM, Colin McAuliffe
> <cjm2176 at columbia.edu>wrote:
>
>> Hello all,
>>
>> As I understand it, to take advantage of python scripting the PYTHONPATH
>> variable must be set manually. I have added:
>>
>> PYTHONPATH="/Applications/**ParaView 3.10.1.app/Contents/Python/**
>> paraview:${PYTHONPATH}"
>> export PYTHONPATH
>>
>> Which is the location of .py modules. I am not able to locate the module
>> paraview however. Where would this module be located?
>>
>> Thanks
>>
>> --
>> Colin McAuliffe
>> PhD Candidate
>> Columbia University
>> Department of Civil Engineering and Engineering Mechanics
>> ______________________________**_________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at http://www.kitware.com/**
>> opensource/opensource.html<http://www.kitware.com/opensource/opensource.html>
>>
>> Please keep messages on-topic and check the ParaView Wiki at:
>> http://paraview.org/Wiki/**ParaView <http://paraview.org/Wiki/ParaView>
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.paraview.org/**mailman/listinfo/paraview<http://www.paraview.org/mailman/listinfo/paraview>
>>
>
--
Colin McAuliffe
PhD Candidate
Columbia University
Department of Civil Engineering and Engineering Mechanics
More information about the ParaView
mailing list