<div dir="ltr"><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Guillermo Suárez</b> <span dir="ltr"><<a href="mailto:guillermo180395@gmail.com">guillermo180395@gmail.com</a>></span><br>Date: 2017-08-23 13:33 GMT-01:00<br>Subject: Re: [Paraview] paraview.simple<br>To: Cory Quammen <<a href="mailto:cory.quammen@kitware.com">cory.quammen@kitware.com</a>><br><br><br><div dir="ltr"><div><div>I usually use:</div><div> ./<the name of the script></div><div><br></div><div>but I also tried with:</div><div>python3 <the name of the script><span class="HOEnZb"><font color="#888888"><br><br></font></span></div><span class="HOEnZb"><font color="#888888">Guillermo<br></font></span><br></div>P.S: With the version 5.0.1 installed and working fine (the script works) I have searched the lib you mentioned to me but I do not have it.<br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2017-08-23 13:15 GMT-01:00 Cory Quammen <span dir="ltr"><<a href="mailto:cory.quammen@kitware.com" target="_blank">cory.quammen@kitware.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>> The problem results when executing the python script from the Ubuntu's<br>
> terminal.<br>
<br>
</span>What command are you using to run the Python script?<br>
<br>
Thanks,<br>
Cory<br>
<div class="m_3062363876952863504HOEnZb"><div class="m_3062363876952863504h5"><br>
> Thank you very much.<br>
><br>
> ASAP I will try to install the v5.3 and I will let you know if I encounter<br>
> any problem.<br>
><br>
> Cheers,<br>
><br>
> Guillermo<br>
><br>
><br>
> On 23/08/17 12:58, Cory Quammen wrote:<br>
><br>
> Guillermo,<br>
><br>
> I'm sorry that my suggestions didn't work out.<br>
><br>
> Could you try one last thing? Please run the following commands:<br>
><br>
> cd /opt/ParaView-5.3.0-Qt5-OpenGL<wbr>2-MPI-Linux-64bit/bin<br>
> ./paraview<br>
><br>
> That should work without problem. If it doesn't, we definitely have a<br>
> problem.<br>
><br>
> Cheers,<br>
> Cory<br>
><br>
> On Wed, Aug 23, 2017 at 7:32 AM, Guillermo <<a href="mailto:guillermo180395@gmail.com" target="_blank">guillermo180395@gmail.com</a>><br>
> wrote:<br>
><br>
> Hi Cory,<br>
><br>
> I have made a purge of paraview, reinstalled the 5.3 version, as I indicated<br>
> on the first email, but the result is the same,  it does not work and the<br>
> message is the same as in the beginning. Also, the libs you indicated to me<br>
> are not present.<br>
><br>
> Actually, I really need to use this python script and I do not have too much<br>
> time to spend on it, so I decided to downgrade to 5.0.1 version.<br>
><br>
> In a near future, 1-1.5 month, I will try it again, as I want to upgrade to<br>
> a newer version. I will let you know if I experiment any issue.<br>
><br>
> Sorry for the inconveniences,<br>
><br>
> Really grateful,<br>
><br>
> Guillermo S.<br>
><br>
><br>
> On 22/08/17 13:46, Cory Quammen wrote:<br>
><br>
> Oops, I failed to change the version number in the line I gave you,<br>
> but caught that and corrected it, just not quite to the right version<br>
> number.<br>
><br>
> Try<br>
><br>
> export<br>
> PYTHONPATH=$PYTHONPATH:/opt/Pa<wbr>raView-5.3.0-Qt5-OpenGL2-MPI-<wbr>Linux-64bit/lib/paraview-5.3<br>
><br>
> Basically, you have to set the PYTHONPATH to where the lib*Python.so<br>
> files are located. Make sure<br>
> /opt/ParaView-5.3.0-Qt5-OpenGL<wbr>2-MPI-Linux-64bit/lib/paraview<wbr>-5.3<br>
> exists and confirm that a file starting with libvtkCommonCorePython27<br>
> is there.<br>
><br>
> Stepping back a bit, you wouldn't have to do any of this PYTHONPATH<br>
> stuff if you just add<br>
><br>
> /opt/ParaView-5.3.0-Qt5-OpenGL<wbr>2-MPI-Linux-64bit/bin<br>
><br>
> to your PATH.<br>
><br>
> HTH,<br>
> Cory<br>
><br>
> On Tue, Aug 22, 2017 at 1:38 PM, Guillermo <<a href="mailto:guillermo180395@gmail.com" target="_blank">guillermo180395@gmail.com</a>><br>
> wrote:<br>
><br>
> I forgot to mention that the error message is the same as before.<br>
><br>
><br>
> On 22/08/17 13:24, Cory Quammen wrote:<br>
><br>
> Guillermo,<br>
><br>
> Please CC the mailing list so others can participate and learn from<br>
> the discussion.<br>
><br>
> That looks like progress. Now try adding to your .bashrc:<br>
><br>
> export<br>
> PYTHONPATH=$PYTHONPATH:/opt/Pa<wbr>raView-5.3.0-Qt5-OpenGL2-MPI-<wbr>Linux-64bit/lib/paraview-5.4<br>
><br>
> HTH,<br>
> Cory<br>
><br>
> On Tue, Aug 22, 2017 at 10:19 AM, Guillermo Suárez<br>
> <<a href="mailto:guillermo180395@gmail.com" target="_blank">guillermo180395@gmail.com</a>> wrote:<br>
><br>
> Hi Cory,<br>
><br>
> Thank you very much for your fast response. Unfortunately it didn't work<br>
> (I<br>
> just copied and pasted into the .bashrc the sentence you gave to me).<br>
> However, the new error message is:<br>
><br>
> Error: Could not import vtkCommonComputationalGeometry<br>
> Traceback (most recent call last):<br>
>    File "./<the name of my file>", line XX, in <module><br>
> from paraview.simple import *<br>
>    File<br>
><br>
> "/opt/ParaView-5.3.0-Qt5-OpenG<wbr>L2-MPI-Linux-64bit/lib/python2<wbr>.7/site-packages/paraview/<wbr>simple.py",<br>
> line 43, in <module><br>
>      from paraview import servermanager<br>
>    File<br>
><br>
> "/opt/ParaView-5.3.0-Qt5-OpenG<wbr>L2-MPI-Linux-64bit/lib/python2<wbr>.7/site-packages/paraview/<wbr>servermanager.py",<br>
> line 53, in <module><br>
>      from paraview import vtk<br>
>    File<br>
><br>
> "/opt/ParaView-5.3.0-Qt5-OpenG<wbr>L2-MPI-Linux-64bit/lib/python2<wbr>.7/site-packages/paraview/vtk/<wbr>__init__.py",<br>
> line 7, in <module><br>
>      from paraview.vtk.vtkCommonCore import *<br>
>    File<br>
><br>
> "/opt/ParaView-5.3.0-Qt5-OpenG<wbr>L2-MPI-Linux-64bit/lib/python2<wbr>.7/site-packages/paraview/vtk/<wbr>vtkCommonCore.py",<br>
> line 9, in <module><br>
>      from vtkCommonCorePython import *<br>
> ImportError: No module named vtkCommonCorePython<br>
><br>
> I have searched around the Internet and I found a thread that I though it<br>
> could help:<br>
> <a href="http://public.kitware.com/pipermail/paraview/2014-February/030506.html" rel="noreferrer" target="_blank">http://public.kitware.com/pipe<wbr>rmail/paraview/2014-February/<wbr>030506.html</a><br>
><br>
> The idea is to use this:<br>
><br>
> setenv LD_LIBRARY_PATH  your-install/lib/paraview-4.1:<wbr>${LD_LIBRARY_PATH}<br>
><br>
> setenv PYTHONPATH your-install /lib/paraview-4.1/site-package<wbr>s:<br>
> your-install<br>
> /lib/paraview-4.1: your-install /lib/paraview-4.1/site-package<wbr>s/vtk<br>
><br>
> I copied and pasted this on my .bashrc file substituting the<br>
> corresponding<br>
> names, but it didn't work. :(<br>
><br>
> Any idea?<br>
><br>
> Really grateful,<br>
><br>
> Guillermo S.<br>
><br>
><br>
><br>
><br>
> 2017-08-22 12:31 GMT-01:00 Cory Quammen <<a href="mailto:cory.quammen@kitware.com" target="_blank">cory.quammen@kitware.com</a>>:<br>
><br>
> Hi Guillermo,<br>
><br>
> I think the content in that wiki page is outdated.<br>
><br>
> Try setting PYTHONPATH to the following in your .bashrc<br>
><br>
> export<br>
><br>
> PYTHONPATH=$PYTHONPATH:/opt/Pa<wbr>raView-5.3.0-Qt5-OpenGL2-MPI-<wbr>Linux-64bit/lib/python2.7/site<wbr>-packages<br>
><br>
> See if that works and let us know,<br>
> Cory<br>
><br>
> On Tue, Aug 22, 2017 at 6:04 AM, Guillermo Suárez<br>
> <<a href="mailto:guillermo180395@gmail.com" target="_blank">guillermo180395@gmail.com</a>> wrote:<br>
><br>
> Dear all,<br>
><br>
> Yesterday I installed paraview v5.3 using the binaries from the website<br>
> on my Linux (ubuntu) OS. The steps followed are (they my influence on<br>
> the<br>
> final result):<br>
><br>
> Download the binaries from <a href="http://www.paraview.org" rel="noreferrer" target="_blank">http://www.paraview.org</a>. For me this results<br>
> in: ParaView-5.3.0-Qt5-OpenGL2-MPI<wbr>-Linux-64bit.tar.gz<br>
> Extract and copy them:<br>
><br>
> tar xzvf -C /opt/ParaView-5.3.0-Qt5-OpenGL<wbr>2-MPI-Linux-64bit.tar.gz<br>
> sudo emacs ~/.bashrc<br>
><br>
> then insert the following line, save & close<br>
><br>
> export PATH=$PATH:/opt/ParaView-5.3.0<wbr>-Qt5-OpenGL2-MPI-Linux-64bit/b<wbr>in/<br>
><br>
> Then I created a symbolic link:<br>
><br>
>           sudo ln -s<br>
> /opt/ParaView-5.3.0-Qt5-OpenGL<wbr>2-MPI-Linux-64bit/bin/paraview<br>
> /usr/bin/paraview<br>
><br>
>           sudo ln -s<br>
> /opt/ParaView-5.3.0-Qt5-OpenGL<wbr>2-MPI-Linux-64bit/lib/paraview<wbr>-5.3/<br>
> /usr/lib/paraview-5.3<br>
><br>
> Before installing paraview from the binaries files I was using the<br>
> version from Ubuntu repositories (paraview version 5.0 [I think]). Also<br>
> I<br>
> was using a python script which uses paraview to take some snapshoots<br>
> and it<br>
> worked really well. The problem is that now, when I want to use this<br>
> python<br>
> script, it reports this message:<br>
><br>
> "from paraview.simple import *<br>
> ImportError: No module named paraview.simple"<br>
><br>
> I have made some searches on the Internet and I found a web page about<br>
> this problem: <a href="https://www.paraview.org/Wiki/ParaView/EnvironmentSetup" rel="noreferrer" target="_blank">https://www.paraview.org/Wiki/<wbr>ParaView/EnvironmentSetup</a><br>
> I have copied and pasted those sentences on my .bashrc file, restarted<br>
> the computer but it still does not work.<br>
><br>
> Could you please help me?<br>
><br>
> Best regards,<br>
><br>
> Guillermo S.<br>
><br>
><br>
><br>
> ______________________________<wbr>_________________<br>
> Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensou<wbr>rce/opensource.html</a><br>
><br>
> Please keep messages on-topic and check the ParaView Wiki at:<br>
> <a href="http://paraview.org/Wiki/ParaView" rel="noreferrer" target="_blank">http://paraview.org/Wiki/ParaV<wbr>iew</a><br>
><br>
> Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>ParaView</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://public.kitware.com/mailman/listinfo/paraview" rel="noreferrer" target="_blank">http://public.kitware.com/mail<wbr>man/listinfo/paraview</a><br>
><br>
><br>
> --<br>
> Cory Quammen<br>
> Staff R&D Engineer<br>
> Kitware, Inc.<br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
<br>
<br>
<br>
--<br>
Cory Quammen<br>
Staff R&D Engineer<br>
Kitware, Inc.<br>
</div></div></blockquote></div><br></div>
</div></div></div><br></div>