Re: [Paraview] paraview.simple

2017-08-23 Thread Cory Quammen
> The problem results when executing the python script from the Ubuntu's
> terminal.

What command are you using to run the Python script?

Thanks,
Cory

> Thank you very much.
>
> ASAP I will try to install the v5.3 and I will let you know if I encounter
> any problem.
>
> Cheers,
>
> Guillermo
>
>
> On 23/08/17 12:58, Cory Quammen wrote:
>
> Guillermo,
>
> I'm sorry that my suggestions didn't work out.
>
> Could you try one last thing? Please run the following commands:
>
> cd /opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/bin
> ./paraview
>
> That should work without problem. If it doesn't, we definitely have a
> problem.
>
> Cheers,
> Cory
>
> On Wed, Aug 23, 2017 at 7:32 AM, Guillermo 
> wrote:
>
> Hi Cory,
>
> I have made a purge of paraview, reinstalled the 5.3 version, as I indicated
> on the first email, but the result is the same,  it does not work and the
> message is the same as in the beginning. Also, the libs you indicated to me
> are not present.
>
> Actually, I really need to use this python script and I do not have too much
> time to spend on it, so I decided to downgrade to 5.0.1 version.
>
> In a near future, 1-1.5 month, I will try it again, as I want to upgrade to
> a newer version. I will let you know if I experiment any issue.
>
> Sorry for the inconveniences,
>
> Really grateful,
>
> Guillermo S.
>
>
> On 22/08/17 13:46, Cory Quammen wrote:
>
> Oops, I failed to change the version number in the line I gave you,
> but caught that and corrected it, just not quite to the right version
> number.
>
> Try
>
> export
> PYTHONPATH=$PYTHONPATH:/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/paraview-5.3
>
> Basically, you have to set the PYTHONPATH to where the lib*Python.so
> files are located. Make sure
> /opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/paraview-5.3
> exists and confirm that a file starting with libvtkCommonCorePython27
> is there.
>
> Stepping back a bit, you wouldn't have to do any of this PYTHONPATH
> stuff if you just add
>
> /opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/bin
>
> to your PATH.
>
> HTH,
> Cory
>
> On Tue, Aug 22, 2017 at 1:38 PM, Guillermo 
> wrote:
>
> I forgot to mention that the error message is the same as before.
>
>
> On 22/08/17 13:24, Cory Quammen wrote:
>
> Guillermo,
>
> Please CC the mailing list so others can participate and learn from
> the discussion.
>
> That looks like progress. Now try adding to your .bashrc:
>
> export
> PYTHONPATH=$PYTHONPATH:/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/paraview-5.4
>
> HTH,
> Cory
>
> On Tue, Aug 22, 2017 at 10:19 AM, Guillermo Suárez
>  wrote:
>
> Hi Cory,
>
> Thank you very much for your fast response. Unfortunately it didn't work
> (I
> just copied and pasted into the .bashrc the sentence you gave to me).
> However, the new error message is:
>
> Error: Could not import vtkCommonComputationalGeometry
> Traceback (most recent call last):
>File "./", line XX, in 
> from paraview.simple import *
>File
>
> "/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/simple.py",
> line 43, in 
>  from paraview import servermanager
>File
>
> "/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/servermanager.py",
> line 53, in 
>  from paraview import vtk
>File
>
> "/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/vtk/__init__.py",
> line 7, in 
>  from paraview.vtk.vtkCommonCore import *
>File
>
> "/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/vtk/vtkCommonCore.py",
> line 9, in 
>  from vtkCommonCorePython import *
> ImportError: No module named vtkCommonCorePython
>
> I have searched around the Internet and I found a thread that I though it
> could help:
> http://public.kitware.com/pipermail/paraview/2014-February/030506.html
>
> The idea is to use this:
>
> setenv LD_LIBRARY_PATH  your-install/lib/paraview-4.1:${LD_LIBRARY_PATH}
>
> setenv PYTHONPATH your-install /lib/paraview-4.1/site-packages:
> your-install
> /lib/paraview-4.1: your-install /lib/paraview-4.1/site-packages/vtk
>
> I copied and pasted this on my .bashrc file substituting the
> corresponding
> names, but it didn't work. :(
>
> Any idea?
>
> Really grateful,
>
> Guillermo S.
>
>
>
>
> 2017-08-22 12:31 GMT-01:00 Cory Quammen :
>
> Hi Guillermo,
>
> I think the content in that wiki page is outdated.
>
> Try setting PYTHONPATH to the following in your .bashrc
>
> export
>
> PYTHONPATH=$PYTHONPATH:/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages
>
> See if that works and let us know,
> Cory
>
> On Tue, Aug 22, 2017 at 6:04 AM, Guillermo Suárez
>  wrote:
>
> Dear all,
>
> Yesterday I installed paraview v5.3 using the binaries from the website
> on my Linux (ubuntu) OS. The steps followed are (they my 

Re: [Paraview] paraview.simple

2017-08-23 Thread Guillermo

Hi Cory,

It works perfectly. I can use paraview 5.3 version without any problem 
(I can use it as I normally do).


The problem results when executing the python script from the Ubuntu's 
terminal.


Thank you very much.

ASAP I will try to install the v5.3 and I will let you know if I 
encounter any problem.


Cheers,

Guillermo


On 23/08/17 12:58, Cory Quammen wrote:

Guillermo,

I'm sorry that my suggestions didn't work out.

Could you try one last thing? Please run the following commands:

cd /opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/bin
./paraview

That should work without problem. If it doesn't, we definitely have a problem.

Cheers,
Cory

On Wed, Aug 23, 2017 at 7:32 AM, Guillermo  wrote:

Hi Cory,

I have made a purge of paraview, reinstalled the 5.3 version, as I indicated
on the first email, but the result is the same,  it does not work and the
message is the same as in the beginning. Also, the libs you indicated to me
are not present.

Actually, I really need to use this python script and I do not have too much
time to spend on it, so I decided to downgrade to 5.0.1 version.

In a near future, 1-1.5 month, I will try it again, as I want to upgrade to
a newer version. I will let you know if I experiment any issue.

Sorry for the inconveniences,

Really grateful,

Guillermo S.


On 22/08/17 13:46, Cory Quammen wrote:

Oops, I failed to change the version number in the line I gave you,
but caught that and corrected it, just not quite to the right version
number.

Try

export
PYTHONPATH=$PYTHONPATH:/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/paraview-5.3

Basically, you have to set the PYTHONPATH to where the lib*Python.so
files are located. Make sure
/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/paraview-5.3
exists and confirm that a file starting with libvtkCommonCorePython27
is there.

Stepping back a bit, you wouldn't have to do any of this PYTHONPATH
stuff if you just add

/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/bin

to your PATH.

HTH,
Cory

On Tue, Aug 22, 2017 at 1:38 PM, Guillermo 
wrote:

I forgot to mention that the error message is the same as before.


On 22/08/17 13:24, Cory Quammen wrote:

Guillermo,

Please CC the mailing list so others can participate and learn from
the discussion.

That looks like progress. Now try adding to your .bashrc:

export
PYTHONPATH=$PYTHONPATH:/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/paraview-5.4

HTH,
Cory

On Tue, Aug 22, 2017 at 10:19 AM, Guillermo Suárez
 wrote:

Hi Cory,

Thank you very much for your fast response. Unfortunately it didn't work
(I
just copied and pasted into the .bashrc the sentence you gave to me).
However, the new error message is:

Error: Could not import vtkCommonComputationalGeometry
Traceback (most recent call last):
File "./", line XX, in 
from paraview.simple import *
File

"/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/simple.py",
line 43, in 
  from paraview import servermanager
File

"/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/servermanager.py",
line 53, in 
  from paraview import vtk
File

"/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/vtk/__init__.py",
line 7, in 
  from paraview.vtk.vtkCommonCore import *
File

"/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/vtk/vtkCommonCore.py",
line 9, in 
  from vtkCommonCorePython import *
ImportError: No module named vtkCommonCorePython

I have searched around the Internet and I found a thread that I though it
could help:
http://public.kitware.com/pipermail/paraview/2014-February/030506.html

The idea is to use this:

setenv LD_LIBRARY_PATH  your-install/lib/paraview-4.1:${LD_LIBRARY_PATH}

setenv PYTHONPATH your-install /lib/paraview-4.1/site-packages:
your-install
/lib/paraview-4.1: your-install /lib/paraview-4.1/site-packages/vtk

I copied and pasted this on my .bashrc file substituting the
corresponding
names, but it didn't work. :(

Any idea?

Really grateful,

Guillermo S.




2017-08-22 12:31 GMT-01:00 Cory Quammen :

Hi Guillermo,

I think the content in that wiki page is outdated.

Try setting PYTHONPATH to the following in your .bashrc

export

PYTHONPATH=$PYTHONPATH:/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages

See if that works and let us know,
Cory

On Tue, Aug 22, 2017 at 6:04 AM, Guillermo Suárez
 wrote:

Dear all,

Yesterday I installed paraview v5.3 using the binaries from the website
on my Linux (ubuntu) OS. The steps followed are (they my influence on
the
final result):

Download the binaries from http://www.paraview.org. For me this results
in: ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit.tar.gz
Extract and copy them:

tar xzvf -C 

Re: [Paraview] paraview.simple

2017-08-23 Thread Cory Quammen
Guillermo,

I'm sorry that my suggestions didn't work out.

Could you try one last thing? Please run the following commands:

cd /opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/bin
./paraview

That should work without problem. If it doesn't, we definitely have a problem.

Cheers,
Cory

On Wed, Aug 23, 2017 at 7:32 AM, Guillermo  wrote:
> Hi Cory,
>
> I have made a purge of paraview, reinstalled the 5.3 version, as I indicated
> on the first email, but the result is the same,  it does not work and the
> message is the same as in the beginning. Also, the libs you indicated to me
> are not present.
>
> Actually, I really need to use this python script and I do not have too much
> time to spend on it, so I decided to downgrade to 5.0.1 version.
>
> In a near future, 1-1.5 month, I will try it again, as I want to upgrade to
> a newer version. I will let you know if I experiment any issue.
>
> Sorry for the inconveniences,
>
> Really grateful,
>
> Guillermo S.
>
>
> On 22/08/17 13:46, Cory Quammen wrote:
>
> Oops, I failed to change the version number in the line I gave you,
> but caught that and corrected it, just not quite to the right version
> number.
>
> Try
>
> export
> PYTHONPATH=$PYTHONPATH:/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/paraview-5.3
>
> Basically, you have to set the PYTHONPATH to where the lib*Python.so
> files are located. Make sure
> /opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/paraview-5.3
> exists and confirm that a file starting with libvtkCommonCorePython27
> is there.
>
> Stepping back a bit, you wouldn't have to do any of this PYTHONPATH
> stuff if you just add
>
> /opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/bin
>
> to your PATH.
>
> HTH,
> Cory
>
> On Tue, Aug 22, 2017 at 1:38 PM, Guillermo 
> wrote:
>
> I forgot to mention that the error message is the same as before.
>
>
> On 22/08/17 13:24, Cory Quammen wrote:
>
> Guillermo,
>
> Please CC the mailing list so others can participate and learn from
> the discussion.
>
> That looks like progress. Now try adding to your .bashrc:
>
> export
> PYTHONPATH=$PYTHONPATH:/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/paraview-5.4
>
> HTH,
> Cory
>
> On Tue, Aug 22, 2017 at 10:19 AM, Guillermo Suárez
>  wrote:
>
> Hi Cory,
>
> Thank you very much for your fast response. Unfortunately it didn't work
> (I
> just copied and pasted into the .bashrc the sentence you gave to me).
> However, the new error message is:
>
> Error: Could not import vtkCommonComputationalGeometry
> Traceback (most recent call last):
>File "./", line XX, in 
> from paraview.simple import *
>File
>
> "/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/simple.py",
> line 43, in 
>  from paraview import servermanager
>File
>
> "/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/servermanager.py",
> line 53, in 
>  from paraview import vtk
>File
>
> "/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/vtk/__init__.py",
> line 7, in 
>  from paraview.vtk.vtkCommonCore import *
>File
>
> "/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/vtk/vtkCommonCore.py",
> line 9, in 
>  from vtkCommonCorePython import *
> ImportError: No module named vtkCommonCorePython
>
> I have searched around the Internet and I found a thread that I though it
> could help:
> http://public.kitware.com/pipermail/paraview/2014-February/030506.html
>
> The idea is to use this:
>
> setenv LD_LIBRARY_PATH  your-install/lib/paraview-4.1:${LD_LIBRARY_PATH}
>
> setenv PYTHONPATH your-install /lib/paraview-4.1/site-packages:
> your-install
> /lib/paraview-4.1: your-install /lib/paraview-4.1/site-packages/vtk
>
> I copied and pasted this on my .bashrc file substituting the
> corresponding
> names, but it didn't work. :(
>
> Any idea?
>
> Really grateful,
>
> Guillermo S.
>
>
>
>
> 2017-08-22 12:31 GMT-01:00 Cory Quammen :
>
> Hi Guillermo,
>
> I think the content in that wiki page is outdated.
>
> Try setting PYTHONPATH to the following in your .bashrc
>
> export
>
> PYTHONPATH=$PYTHONPATH:/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages
>
> See if that works and let us know,
> Cory
>
> On Tue, Aug 22, 2017 at 6:04 AM, Guillermo Suárez
>  wrote:
>
> Dear all,
>
> Yesterday I installed paraview v5.3 using the binaries from the website
> on my Linux (ubuntu) OS. The steps followed are (they my influence on
> the
> final result):
>
> Download the binaries from http://www.paraview.org. For me this results
> in: ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit.tar.gz
> Extract and copy them:
>
> tar xzvf -C /opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit.tar.gz
> sudo emacs ~/.bashrc
>
> then insert the following line, save & close
>
> export 

Re: [Paraview] paraview.simple

2017-08-23 Thread Guillermo

Hi Cory,

I have made a purge of paraview, reinstalled the 5.3 version, as I 
indicated on the first email, but the result is the same,  it does not 
work and the message is the same as in the beginning. Also, the libs you 
indicated to me are not present.


Actually, I really need to use this python script and I do not have too 
much time to spend on it, so I decided to downgrade to 5.0.1 version.


In a near future, 1-1.5 month, I will try it again, as I want to upgrade 
to a newer version. I will let you know if I experiment any issue.


Sorry for the inconveniences,

Really grateful,

Guillermo S.


On 22/08/17 13:46, Cory Quammen wrote:

Oops, I failed to change the version number in the line I gave you,
but caught that and corrected it, just not quite to the right version
number.

Try

export 
PYTHONPATH=$PYTHONPATH:/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/paraview-5.3

Basically, you have to set the PYTHONPATH to where the lib*Python.so
files are located. Make sure
/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/paraview-5.3
exists and confirm that a file starting with libvtkCommonCorePython27
is there.

Stepping back a bit, you wouldn't have to do any of this PYTHONPATH
stuff if you just add

/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/bin

to your PATH.

HTH,
Cory

On Tue, Aug 22, 2017 at 1:38 PM, Guillermo  wrote:

I forgot to mention that the error message is the same as before.


On 22/08/17 13:24, Cory Quammen wrote:

Guillermo,

Please CC the mailing list so others can participate and learn from
the discussion.

That looks like progress. Now try adding to your .bashrc:

export
PYTHONPATH=$PYTHONPATH:/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/paraview-5.4

HTH,
Cory

On Tue, Aug 22, 2017 at 10:19 AM, Guillermo Suárez
 wrote:

Hi Cory,

Thank you very much for your fast response. Unfortunately it didn't work
(I
just copied and pasted into the .bashrc the sentence you gave to me).
However, the new error message is:

Error: Could not import vtkCommonComputationalGeometry
Traceback (most recent call last):
File "./", line XX, in 
from paraview.simple import *
File

"/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/simple.py",
line 43, in 
  from paraview import servermanager
File

"/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/servermanager.py",
line 53, in 
  from paraview import vtk
File

"/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/vtk/__init__.py",
line 7, in 
  from paraview.vtk.vtkCommonCore import *
File

"/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/vtk/vtkCommonCore.py",
line 9, in 
  from vtkCommonCorePython import *
ImportError: No module named vtkCommonCorePython

I have searched around the Internet and I found a thread that I though it
could help:
http://public.kitware.com/pipermail/paraview/2014-February/030506.html

The idea is to use this:

setenv LD_LIBRARY_PATH  your-install/lib/paraview-4.1:${LD_LIBRARY_PATH}

setenv PYTHONPATH your-install /lib/paraview-4.1/site-packages:
your-install
/lib/paraview-4.1: your-install /lib/paraview-4.1/site-packages/vtk

I copied and pasted this on my .bashrc file substituting the
corresponding
names, but it didn't work. :(

Any idea?

Really grateful,

Guillermo S.




2017-08-22 12:31 GMT-01:00 Cory Quammen :

Hi Guillermo,

I think the content in that wiki page is outdated.

Try setting PYTHONPATH to the following in your .bashrc

export

PYTHONPATH=$PYTHONPATH:/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages

See if that works and let us know,
Cory

On Tue, Aug 22, 2017 at 6:04 AM, Guillermo Suárez
 wrote:

Dear all,

Yesterday I installed paraview v5.3 using the binaries from the website
on my Linux (ubuntu) OS. The steps followed are (they my influence on
the
final result):

Download the binaries from http://www.paraview.org. For me this results
in: ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit.tar.gz
Extract and copy them:

tar xzvf -C /opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit.tar.gz
sudo emacs ~/.bashrc

then insert the following line, save & close

export PATH=$PATH:/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/bin/

Then I created a symbolic link:

   sudo ln -s
/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/bin/paraview
/usr/bin/paraview

   sudo ln -s
/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/paraview-5.3/
/usr/lib/paraview-5.3

Before installing paraview from the binaries files I was using the
version from Ubuntu repositories (paraview version 5.0 [I think]). Also
I
was using a python script which uses paraview to take some snapshoots
and it
worked really well. The problem is that now, when I want to use this
python
script, it reports this message:


Re: [Paraview] paraview.simple

2017-08-22 Thread Guillermo

Hi,

I noticed that I do not have the file libvtkCommonCorePython27 nor 
libvtkCommonCorePython. However, I have the files 
libvtkCommonColorPython27D-pv5.3.so and 
libvtkCommonColorPython27D-pv5.3.so.1.


I have already tried to execute my script following your instructions 
but it did not work.


This makes me think that I do not properly installed paraview-5.3. So I 
am going to reinstall it again.


I would let you know if that fixes the problem.

Thanks,

Guillermo S.


On 22/08/17 13:46, Cory Quammen wrote:

Oops, I failed to change the version number in the line I gave you,
but caught that and corrected it, just not quite to the right version
number.

Try

export 
PYTHONPATH=$PYTHONPATH:/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/paraview-5.3

Basically, you have to set the PYTHONPATH to where the lib*Python.so
files are located. Make sure
/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/paraview-5.3
exists and confirm that a file starting with libvtkCommonCorePython27
is there.

Stepping back a bit, you wouldn't have to do any of this PYTHONPATH
stuff if you just add

/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/bin

to your PATH.

HTH,
Cory

On Tue, Aug 22, 2017 at 1:38 PM, Guillermo  wrote:

I forgot to mention that the error message is the same as before.


On 22/08/17 13:24, Cory Quammen wrote:

Guillermo,

Please CC the mailing list so others can participate and learn from
the discussion.

That looks like progress. Now try adding to your .bashrc:

export
PYTHONPATH=$PYTHONPATH:/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/paraview-5.4

HTH,
Cory

On Tue, Aug 22, 2017 at 10:19 AM, Guillermo Suárez
 wrote:

Hi Cory,

Thank you very much for your fast response. Unfortunately it didn't work
(I
just copied and pasted into the .bashrc the sentence you gave to me).
However, the new error message is:

Error: Could not import vtkCommonComputationalGeometry
Traceback (most recent call last):
File "./", line XX, in 
from paraview.simple import *
File

"/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/simple.py",
line 43, in 
  from paraview import servermanager
File

"/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/servermanager.py",
line 53, in 
  from paraview import vtk
File

"/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/vtk/__init__.py",
line 7, in 
  from paraview.vtk.vtkCommonCore import *
File

"/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/vtk/vtkCommonCore.py",
line 9, in 
  from vtkCommonCorePython import *
ImportError: No module named vtkCommonCorePython

I have searched around the Internet and I found a thread that I though it
could help:
http://public.kitware.com/pipermail/paraview/2014-February/030506.html

The idea is to use this:

setenv LD_LIBRARY_PATH  your-install/lib/paraview-4.1:${LD_LIBRARY_PATH}

setenv PYTHONPATH your-install /lib/paraview-4.1/site-packages:
your-install
/lib/paraview-4.1: your-install /lib/paraview-4.1/site-packages/vtk

I copied and pasted this on my .bashrc file substituting the
corresponding
names, but it didn't work. :(

Any idea?

Really grateful,

Guillermo S.




2017-08-22 12:31 GMT-01:00 Cory Quammen :

Hi Guillermo,

I think the content in that wiki page is outdated.

Try setting PYTHONPATH to the following in your .bashrc

export

PYTHONPATH=$PYTHONPATH:/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages

See if that works and let us know,
Cory

On Tue, Aug 22, 2017 at 6:04 AM, Guillermo Suárez
 wrote:

Dear all,

Yesterday I installed paraview v5.3 using the binaries from the website
on my Linux (ubuntu) OS. The steps followed are (they my influence on
the
final result):

Download the binaries from http://www.paraview.org. For me this results
in: ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit.tar.gz
Extract and copy them:

tar xzvf -C /opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit.tar.gz
sudo emacs ~/.bashrc

then insert the following line, save & close

export PATH=$PATH:/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/bin/

Then I created a symbolic link:

   sudo ln -s
/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/bin/paraview
/usr/bin/paraview

   sudo ln -s
/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/paraview-5.3/
/usr/lib/paraview-5.3

Before installing paraview from the binaries files I was using the
version from Ubuntu repositories (paraview version 5.0 [I think]). Also
I
was using a python script which uses paraview to take some snapshoots
and it
worked really well. The problem is that now, when I want to use this
python
script, it reports this message:

"from paraview.simple import *
ImportError: No module named paraview.simple"

I have made some searches on the Internet and I found a 

Re: [Paraview] paraview.simple

2017-08-22 Thread Cory Quammen
Oops, I failed to change the version number in the line I gave you,
but caught that and corrected it, just not quite to the right version
number.

Try

export 
PYTHONPATH=$PYTHONPATH:/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/paraview-5.3

Basically, you have to set the PYTHONPATH to where the lib*Python.so
files are located. Make sure
/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/paraview-5.3
exists and confirm that a file starting with libvtkCommonCorePython27
is there.

Stepping back a bit, you wouldn't have to do any of this PYTHONPATH
stuff if you just add

/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/bin

to your PATH.

HTH,
Cory

On Tue, Aug 22, 2017 at 1:38 PM, Guillermo  wrote:
> I forgot to mention that the error message is the same as before.
>
>
> On 22/08/17 13:24, Cory Quammen wrote:
>>
>> Guillermo,
>>
>> Please CC the mailing list so others can participate and learn from
>> the discussion.
>>
>> That looks like progress. Now try adding to your .bashrc:
>>
>> export
>> PYTHONPATH=$PYTHONPATH:/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/paraview-5.4
>>
>> HTH,
>> Cory
>>
>> On Tue, Aug 22, 2017 at 10:19 AM, Guillermo Suárez
>>  wrote:
>>>
>>> Hi Cory,
>>>
>>> Thank you very much for your fast response. Unfortunately it didn't work
>>> (I
>>> just copied and pasted into the .bashrc the sentence you gave to me).
>>> However, the new error message is:
>>>
>>> Error: Could not import vtkCommonComputationalGeometry
>>> Traceback (most recent call last):
>>>File "./", line XX, in 
>>> from paraview.simple import *
>>>File
>>>
>>> "/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/simple.py",
>>> line 43, in 
>>>  from paraview import servermanager
>>>File
>>>
>>> "/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/servermanager.py",
>>> line 53, in 
>>>  from paraview import vtk
>>>File
>>>
>>> "/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/vtk/__init__.py",
>>> line 7, in 
>>>  from paraview.vtk.vtkCommonCore import *
>>>File
>>>
>>> "/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/vtk/vtkCommonCore.py",
>>> line 9, in 
>>>  from vtkCommonCorePython import *
>>> ImportError: No module named vtkCommonCorePython
>>>
>>> I have searched around the Internet and I found a thread that I though it
>>> could help:
>>> http://public.kitware.com/pipermail/paraview/2014-February/030506.html
>>>
>>> The idea is to use this:
>>>
>>> setenv LD_LIBRARY_PATH  your-install/lib/paraview-4.1:${LD_LIBRARY_PATH}
>>>
>>> setenv PYTHONPATH your-install /lib/paraview-4.1/site-packages:
>>> your-install
>>> /lib/paraview-4.1: your-install /lib/paraview-4.1/site-packages/vtk
>>>
>>> I copied and pasted this on my .bashrc file substituting the
>>> corresponding
>>> names, but it didn't work. :(
>>>
>>> Any idea?
>>>
>>> Really grateful,
>>>
>>> Guillermo S.
>>>
>>>
>>>
>>>
>>> 2017-08-22 12:31 GMT-01:00 Cory Quammen :

 Hi Guillermo,

 I think the content in that wiki page is outdated.

 Try setting PYTHONPATH to the following in your .bashrc

 export

 PYTHONPATH=$PYTHONPATH:/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages

 See if that works and let us know,
 Cory

 On Tue, Aug 22, 2017 at 6:04 AM, Guillermo Suárez
  wrote:
>
> Dear all,
>
> Yesterday I installed paraview v5.3 using the binaries from the website
> on my Linux (ubuntu) OS. The steps followed are (they my influence on
> the
> final result):
>
> Download the binaries from http://www.paraview.org. For me this results
> in: ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit.tar.gz
> Extract and copy them:
>
> tar xzvf -C /opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit.tar.gz
> sudo emacs ~/.bashrc
>
> then insert the following line, save & close
>
> export PATH=$PATH:/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/bin/
>
> Then I created a symbolic link:
>
>   sudo ln -s
> /opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/bin/paraview
> /usr/bin/paraview
>
>   sudo ln -s
> /opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/paraview-5.3/
> /usr/lib/paraview-5.3
>
> Before installing paraview from the binaries files I was using the
> version from Ubuntu repositories (paraview version 5.0 [I think]). Also
> I
> was using a python script which uses paraview to take some snapshoots
> and it
> worked really well. The problem is that now, when I want to use this
> python
> script, it reports this message:
>
> "from paraview.simple import *
> ImportError: No module named paraview.simple"
>
> I have 

Re: [Paraview] paraview.simple

2017-08-22 Thread Guillermo

I forgot to mention that the error message is the same as before.


On 22/08/17 13:24, Cory Quammen wrote:

Guillermo,

Please CC the mailing list so others can participate and learn from
the discussion.

That looks like progress. Now try adding to your .bashrc:

export 
PYTHONPATH=$PYTHONPATH:/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/paraview-5.4

HTH,
Cory

On Tue, Aug 22, 2017 at 10:19 AM, Guillermo Suárez
 wrote:

Hi Cory,

Thank you very much for your fast response. Unfortunately it didn't work (I
just copied and pasted into the .bashrc the sentence you gave to me).
However, the new error message is:

Error: Could not import vtkCommonComputationalGeometry
Traceback (most recent call last):
   File "./", line XX, in 
from paraview.simple import *
   File
"/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/simple.py",
line 43, in 
 from paraview import servermanager
   File
"/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/servermanager.py",
line 53, in 
 from paraview import vtk
   File
"/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/vtk/__init__.py",
line 7, in 
 from paraview.vtk.vtkCommonCore import *
   File
"/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/vtk/vtkCommonCore.py",
line 9, in 
 from vtkCommonCorePython import *
ImportError: No module named vtkCommonCorePython

I have searched around the Internet and I found a thread that I though it
could help:
http://public.kitware.com/pipermail/paraview/2014-February/030506.html

The idea is to use this:

setenv LD_LIBRARY_PATH  your-install/lib/paraview-4.1:${LD_LIBRARY_PATH}

setenv PYTHONPATH your-install /lib/paraview-4.1/site-packages: your-install
/lib/paraview-4.1: your-install /lib/paraview-4.1/site-packages/vtk

I copied and pasted this on my .bashrc file substituting the corresponding
names, but it didn't work. :(

Any idea?

Really grateful,

Guillermo S.




2017-08-22 12:31 GMT-01:00 Cory Quammen :

Hi Guillermo,

I think the content in that wiki page is outdated.

Try setting PYTHONPATH to the following in your .bashrc

export
PYTHONPATH=$PYTHONPATH:/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages

See if that works and let us know,
Cory

On Tue, Aug 22, 2017 at 6:04 AM, Guillermo Suárez
 wrote:

Dear all,

Yesterday I installed paraview v5.3 using the binaries from the website
on my Linux (ubuntu) OS. The steps followed are (they my influence on the
final result):

Download the binaries from http://www.paraview.org. For me this results
in: ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit.tar.gz
Extract and copy them:

tar xzvf -C /opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit.tar.gz
sudo emacs ~/.bashrc

then insert the following line, save & close

export PATH=$PATH:/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/bin/

Then I created a symbolic link:

  sudo ln -s
/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/bin/paraview
/usr/bin/paraview

  sudo ln -s
/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/paraview-5.3/
/usr/lib/paraview-5.3

Before installing paraview from the binaries files I was using the
version from Ubuntu repositories (paraview version 5.0 [I think]). Also I
was using a python script which uses paraview to take some snapshoots and it
worked really well. The problem is that now, when I want to use this python
script, it reports this message:

"from paraview.simple import *
ImportError: No module named paraview.simple"

I have made some searches on the Internet and I found a web page about
this problem: https://www.paraview.org/Wiki/ParaView/EnvironmentSetup
I have copied and pasted those sentences on my .bashrc file, restarted
the computer but it still does not work.

Could you please help me?

Best regards,

Guillermo S.



___
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




--
Cory Quammen
Staff R Engineer
Kitware, Inc.







___
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


Re: [Paraview] paraview.simple

2017-08-22 Thread Guillermo

Hi Cory,

I just copied and pasted that sentence on my .bashrc but it doesn't 
work. Also I have tried typing .../paraview-5.3.0 but neither works.


Thanks,

Guillermo


On 22/08/17 13:24, Cory Quammen wrote:

Guillermo,

Please CC the mailing list so others can participate and learn from
the discussion.

That looks like progress. Now try adding to your .bashrc:

export 
PYTHONPATH=$PYTHONPATH:/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/paraview-5.4

HTH,
Cory

On Tue, Aug 22, 2017 at 10:19 AM, Guillermo Suárez
 wrote:

Hi Cory,

Thank you very much for your fast response. Unfortunately it didn't work (I
just copied and pasted into the .bashrc the sentence you gave to me).
However, the new error message is:

Error: Could not import vtkCommonComputationalGeometry
Traceback (most recent call last):
   File "./", line XX, in 
from paraview.simple import *
   File
"/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/simple.py",
line 43, in 
 from paraview import servermanager
   File
"/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/servermanager.py",
line 53, in 
 from paraview import vtk
   File
"/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/vtk/__init__.py",
line 7, in 
 from paraview.vtk.vtkCommonCore import *
   File
"/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/vtk/vtkCommonCore.py",
line 9, in 
 from vtkCommonCorePython import *
ImportError: No module named vtkCommonCorePython

I have searched around the Internet and I found a thread that I though it
could help:
http://public.kitware.com/pipermail/paraview/2014-February/030506.html

The idea is to use this:

setenv LD_LIBRARY_PATH  your-install/lib/paraview-4.1:${LD_LIBRARY_PATH}

setenv PYTHONPATH your-install /lib/paraview-4.1/site-packages: your-install
/lib/paraview-4.1: your-install /lib/paraview-4.1/site-packages/vtk

I copied and pasted this on my .bashrc file substituting the corresponding
names, but it didn't work. :(

Any idea?

Really grateful,

Guillermo S.




2017-08-22 12:31 GMT-01:00 Cory Quammen :

Hi Guillermo,

I think the content in that wiki page is outdated.

Try setting PYTHONPATH to the following in your .bashrc

export
PYTHONPATH=$PYTHONPATH:/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages

See if that works and let us know,
Cory

On Tue, Aug 22, 2017 at 6:04 AM, Guillermo Suárez
 wrote:

Dear all,

Yesterday I installed paraview v5.3 using the binaries from the website
on my Linux (ubuntu) OS. The steps followed are (they my influence on the
final result):

Download the binaries from http://www.paraview.org. For me this results
in: ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit.tar.gz
Extract and copy them:

tar xzvf -C /opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit.tar.gz
sudo emacs ~/.bashrc

then insert the following line, save & close

export PATH=$PATH:/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/bin/

Then I created a symbolic link:

  sudo ln -s
/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/bin/paraview
/usr/bin/paraview

  sudo ln -s
/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/paraview-5.3/
/usr/lib/paraview-5.3

Before installing paraview from the binaries files I was using the
version from Ubuntu repositories (paraview version 5.0 [I think]). Also I
was using a python script which uses paraview to take some snapshoots and it
worked really well. The problem is that now, when I want to use this python
script, it reports this message:

"from paraview.simple import *
ImportError: No module named paraview.simple"

I have made some searches on the Internet and I found a web page about
this problem: https://www.paraview.org/Wiki/ParaView/EnvironmentSetup
I have copied and pasted those sentences on my .bashrc file, restarted
the computer but it still does not work.

Could you please help me?

Best regards,

Guillermo S.



___
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




--
Cory Quammen
Staff R Engineer
Kitware, Inc.







___
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:

Re: [Paraview] paraview.simple

2017-08-22 Thread Cory Quammen
Guillermo,

Please CC the mailing list so others can participate and learn from
the discussion.

That looks like progress. Now try adding to your .bashrc:

export 
PYTHONPATH=$PYTHONPATH:/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/paraview-5.4

HTH,
Cory

On Tue, Aug 22, 2017 at 10:19 AM, Guillermo Suárez
 wrote:
> Hi Cory,
>
> Thank you very much for your fast response. Unfortunately it didn't work (I
> just copied and pasted into the .bashrc the sentence you gave to me).
> However, the new error message is:
>
> Error: Could not import vtkCommonComputationalGeometry
> Traceback (most recent call last):
>   File "./", line XX, in 
> from paraview.simple import *
>   File
> "/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/simple.py",
> line 43, in 
> from paraview import servermanager
>   File
> "/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/servermanager.py",
> line 53, in 
> from paraview import vtk
>   File
> "/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/vtk/__init__.py",
> line 7, in 
> from paraview.vtk.vtkCommonCore import *
>   File
> "/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/vtk/vtkCommonCore.py",
> line 9, in 
> from vtkCommonCorePython import *
> ImportError: No module named vtkCommonCorePython
>
> I have searched around the Internet and I found a thread that I though it
> could help:
> http://public.kitware.com/pipermail/paraview/2014-February/030506.html
>
> The idea is to use this:
>
> setenv LD_LIBRARY_PATH  your-install/lib/paraview-4.1:${LD_LIBRARY_PATH}
>
> setenv PYTHONPATH your-install /lib/paraview-4.1/site-packages: your-install
> /lib/paraview-4.1: your-install /lib/paraview-4.1/site-packages/vtk
>
> I copied and pasted this on my .bashrc file substituting the corresponding
> names, but it didn't work. :(
>
> Any idea?
>
> Really grateful,
>
> Guillermo S.
>
>
>
>
> 2017-08-22 12:31 GMT-01:00 Cory Quammen :
>>
>> Hi Guillermo,
>>
>> I think the content in that wiki page is outdated.
>>
>> Try setting PYTHONPATH to the following in your .bashrc
>>
>> export
>> PYTHONPATH=$PYTHONPATH:/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages
>>
>> See if that works and let us know,
>> Cory
>>
>> On Tue, Aug 22, 2017 at 6:04 AM, Guillermo Suárez
>>  wrote:
>>>
>>> Dear all,
>>>
>>> Yesterday I installed paraview v5.3 using the binaries from the website
>>> on my Linux (ubuntu) OS. The steps followed are (they my influence on the
>>> final result):
>>>
>>> Download the binaries from http://www.paraview.org. For me this results
>>> in: ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit.tar.gz
>>> Extract and copy them:
>>>
>>> tar xzvf -C /opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit.tar.gz
>>> sudo emacs ~/.bashrc
>>>
>>> then insert the following line, save & close
>>>
>>> export PATH=$PATH:/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/bin/
>>>
>>> Then I created a symbolic link:
>>>
>>>  sudo ln -s
>>> /opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/bin/paraview
>>> /usr/bin/paraview
>>>
>>>  sudo ln -s
>>> /opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/paraview-5.3/
>>> /usr/lib/paraview-5.3
>>>
>>> Before installing paraview from the binaries files I was using the
>>> version from Ubuntu repositories (paraview version 5.0 [I think]). Also I
>>> was using a python script which uses paraview to take some snapshoots and it
>>> worked really well. The problem is that now, when I want to use this python
>>> script, it reports this message:
>>>
>>> "from paraview.simple import *
>>> ImportError: No module named paraview.simple"
>>>
>>> I have made some searches on the Internet and I found a web page about
>>> this problem: https://www.paraview.org/Wiki/ParaView/EnvironmentSetup
>>> I have copied and pasted those sentences on my .bashrc file, restarted
>>> the computer but it still does not work.
>>>
>>> Could you please help me?
>>>
>>> Best regards,
>>>
>>> Guillermo S.
>>>
>>>
>>>
>>> ___
>>> 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
>>>
>>
>>
>>
>> --
>> Cory Quammen
>> Staff R Engineer
>> Kitware, Inc.
>
>



-- 
Cory Quammen
Staff R Engineer
Kitware, Inc.
___
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 

[Paraview] paraview.simple

2017-08-22 Thread Guillermo Suárez
Dear all,

Yesterday I installed paraview v5.3 using the binaries from the website on
my Linux (ubuntu) OS. The steps followed are (they my influence on the
final result):

   1. Download the binaries from http://www.paraview.org. For me this
  results in: ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit.tar.gz
  2. Extract and copy them:

  tar xzvf -C /opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit.tar.gz
  sudo emacs ~/.bashrc

  3. then insert the following line, save & close

  export PATH=$PATH:/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/bin/


Then I created a symbolic link:

 sudo ln -s
/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/bin/paraview
/usr/bin/paraview

 sudo ln -s
/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/paraview-5.3/
/usr/lib/paraview-5.3

Before installing paraview from the binaries files I was using the version
from Ubuntu repositories (paraview version 5.0 [I think]). Also I was using
a python script which uses paraview to take some snapshoots and it worked
really well. The problem is that now, when I want to use this python
script, it reports this message:

"from paraview.simple import *
ImportError: No module named paraview.simple"

I have made some searches on the Internet and I found a web page about this
problem: https://www.paraview.org/Wiki/ParaView/EnvironmentSetup
I have copied and pasted those sentences on my .bashrc file, restarted the
computer but it still does not work.

Could you please help me?

Best regards,

Guillermo S.
___
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


[Paraview] paraview.simple and generic python

2014-02-07 Thread Scott, W Alan
I have a user that wants to use ParaView from within generic python (not 
pvpython).  Unfortunately, I am somewhat struggling.  Does anyone have any 
ideas?

I am running the version of Python that was used to build ParaView (i.e., 
probably no version mismatch).

setenv LD_LIBRARY_PATH  .../Python-2.7.5/lib/
setenv PYTHONPATH  paraview-install/lib/paraview-4.1/site-packages

/Python-2.7.5/bin/python

Python 2.7.5 (default, Jun 17 2013, 15:20:04)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-3)] on linux
Type help, copyright, credits or license for more information.
 import sys
 from paraview.simple import *
Error: Could not import vtkCommonComputationalGeometryPython
Traceback (most recent call last):
  File stdin, line 1, in module
  File /lib/paraview-4.1/site-packages/paraview/simple.py, line 41, in 
module
import servermanager
  File /lib/paraview-4.1/site-packages/paraview/servermanager.py, line 
48, in module
import paraview, re, os, os.path, new, sys, atexit, vtk
  File /lib/paraview-4.1/site-packages/paraview/vtk/__init__.py, line 7, 
in module
from vtkCommonCorePython import *
ImportError: No module named vtkCommonCorePython


So, my question is, where does vtkCommonCorePython come from?  There isn't a 
vtkCommonCorePython.py in the tree, but is a 
/lib/paraview-4.1/site-packages/vtk/vtkCommonCorePython.so.  How does this 
get linked in?

Thanks,

Alan Scott



___
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

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview


Re: [Paraview] paraview.simple and generic python

2014-02-07 Thread Patrick O'Leary
Dear Alan,

Sebastien recently posted this:

import sys
pv_path = '/Users/seb/work/code/ParaView/build-ninja'
sys.path.append('%s/lib' % pv_path)
sys.path.append('%s/lib/site-packages' % pv_path)

from paraview.simple import *

Where pv_path is the path to the ParaView build. This seems to work well
for me. Can you give it a try?

Best regards,
Patrick


On Fri, Feb 7, 2014 at 6:24 PM, Scott, W Alan wasc...@sandia.gov wrote:

  I have a user that wants to use ParaView from within generic python (not
 pvpython).  Unfortunately, I am somewhat struggling.  Does anyone have any
 ideas?

 I am running the version of Python that was used to build ParaView (i.e.,
 probably no version mismatch).

 setenv LD_LIBRARY_PATH  .../Python-2.7.5/lib/
 setenv PYTHONPATH  paraview-install/lib/paraview-4.1/site-packages

 /Python-2.7.5/bin/python

 Python 2.7.5 (default, Jun 17 2013, 15:20:04)
 [GCC 4.4.7 20120313 (Red Hat 4.4.7-3)] on linux
 Type help, copyright, credits or license for more information.
  import sys
  from paraview.simple import *
 Error: Could not import vtkCommonComputationalGeometryPython
 Traceback (most recent call last):
   File stdin, line 1, in module
   File /lib/paraview-4.1/site-packages/paraview/simple.py, line 41,
 in module
 import servermanager
   File /lib/paraview-4.1/site-packages/paraview/servermanager.py,
 line 48, in module
 import paraview, re, os, os.path, new, sys, atexit, vtk
   File /lib/paraview-4.1/site-packages/paraview/vtk/__init__.py,
 line 7, in module
 from vtkCommonCorePython import *
 ImportError: No module named vtkCommonCorePython
 

 So, my question is, where does vtkCommonCorePython come from?  There isn't
 a vtkCommonCorePython.py in the tree, but is a
 /lib/paraview-4.1/site-packages/vtk/vtkCommonCorePython.so.  How does
 this get linked in?

 Thanks,

 Alan Scott




 ___
 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

 Follow this link to subscribe/unsubscribe:
 http://www.paraview.org/mailman/listinfo/paraview


___
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

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview


Re: [Paraview] paraview.simple documentation

2010-10-27 Thread John Haiducek
Thanks! I was hoping it was out there in HTML format somewhere (probably I
could generate that myself from the python sources), but
help(paraview.simple) gets me the information I need.

On Wed, Oct 27, 2010 at 10:49 AM, Utkarsh Ayachit 
utkarsh.ayac...@kitware.com wrote:

 The tutorial (http://paraview.org/Wiki/ParaView/Python_Scripting)
 serves as a good starting point. After which you can simply do the
 following:

  import paraview.simple
  help(paraview.simple)

 Utkarsh

 On Wed, Oct 27, 2010 at 10:44 AM, John Haiducek jhaid...@gmail.com
 wrote:
  Is paraview.simple documented anywhere? My Google searches have turned up
 a
  few tutorials but no documentation!
 
  ___
  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
 
  Follow this link to subscribe/unsubscribe:
  http://www.paraview.org/mailman/listinfo/paraview
 
 

___
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

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview