<div dir="ltr"><div><div><div><div>Hi,<br><br></div>I haven't tried any of this on a Mac so it's possible that something is amiss there. Have you tried the same examples with the full build of ParaView with Catalyst enabled as well as the Fortran adaptor? If you build the examples with testing enabled you should be able to run ctest to verify that things are working properly. It's not a very thorough test but should run the sample executable along with a Catalyst Python script to generate some kind of output.<br><br></div>If none of that works I'd suggest trying it on a Linux machine to see what's going on there.<br><br></div>Regards,<br></div>Andy<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 6, 2015 at 8:02 AM, Ufuk Utku Turuncoglu (BE) <span dir="ltr"><<a href="mailto:u.utku.turuncoglu@be.itu.edu.tr" target="_blank">u.utku.turuncoglu@be.itu.edu.tr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I am trying to run ParaViewCatalystExampleCode under Mac OS 10.10.2. I have already installed<br>
<br>
Catalyst-base+essentials+<u></u>extras+renderingbase+python-<u></u>Source.tar<br>
<br>
to my machine successfully and i would like to test the example codes. The main problem is that i am getting following error when i try to run the FortranPoissonSolver<br>
<br>
epsilon:FortranPoissonSolver turuncu$ ./FortranPoissonSolver coproc.py<br>
Error: Cannot import vtkPVServerManagerDefaultPytho<u></u>n<br>
Error: Cannot import vtkPVAnimationPython<br>
...<br>
...<br>
<br>
i also created following shell script to run the example<br>
<br>
CATALYST="/Users/turuncu/<u></u>Qsync/progs/catalyst"<br>
export PYTHONHOME="$CATALYST/lib"<br>
export PYTHONPATH="$CATALYST/lib:$<u></u>PYTHONPATH"<br>
export PYTHONPATH="$CATALYST/lib/<u></u>site-packages:$PYTHONPATH"<br>
export PYTHONPATH="$CATALYST/lib/<u></u>site-packages/paraview:$<u></u>PYTHONPATH"<br>
export PYTHONPATH="$CATALYST/lib/<u></u>site-packages/vtk:$PYTHONPATH"<br>
<br>
export LD_LIBRARY_PATH="$CATALYST/<u></u>lib:$LD_LIBRARY_PATH"<br>
export DYLD_LIBRARY_PATH="$CATALYST/<u></u>lib:$DYLD_LIBRARY_PATH"<br>
<br>
./FortranPoissonSolver coproc.py<br>
<br>
but in this case, it complains as "ImportError: No module named site". I think that it might be realted with the definition of PYTHONHOME environment variable and somehow it causes problem in Python side. Anyway, i am using Enthought, Canopy (64bit) for python implementation under Mac OS and i also tried to add PYTHONPATH to shell script to define Canopy related modules<br>
<br>
export PYTHONPATH="/Applications/<u></u>Canopy.app/appdata/canopy-1.4.<u></u>1.1975.macosx-x86_64/Canopy.<u></u>app/Contents/lib/python2.7:$<u></u>PYTHONPATH"<br>
<br>
but again i am getting following error which could be related with the wrong definition of environment variables or their orders because sys has base_prefix method (tested under ipython)<br>
<br>
...<br>
...<br>
    from sysconfig import get_config_var<br>
  File "/Applications/Canopy.app/<u></u>appdata/canopy-1.4.1.1975.<u></u>macosx-x86_64/Canopy.app/<u></u>Contents/lib/python2.7/<u></u>sysconfig.py", line 95, in <module><br>
    _BASE_PREFIX = os.path.normpath(sys.base_<u></u>prefix)<br>
AttributeError: 'module' object has no attribute 'base_prefix'<br>
<br>
So, i just wonder that is there anybody that run these examples under MacOS along with Enthought, Canopy? Is there any custom script to run the example? Do you suggest me to go directly to Linux (i.e. Centos etc.) to solve these problems.<br>
<br>
Thanks,<br>
Best Regards,<br>
<br>
Ufuk Turuncoglu<br>
Istanbul Technical University<br>
Informatics Institute<br>
______________________________<u></u>_________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/<u></u>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/<u></u>ParaView</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" target="_blank">http://markmail.org/search/?q=<u></u>ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview" target="_blank">http://public.kitware.com/<u></u>mailman/listinfo/paraview</a><br>
</blockquote></div><br></div>