[Paraview] paraview.simple

Guillermo guillermo180395 at gmail.com
Tue Aug 22 13:38:11 EDT 2017


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
> <guillermo180395 at gmail.com> 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 "./<the name of my file>", line XX, in <module>
>> 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 <module>
>>      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 <module>
>>      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 <module>
>>      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 <module>
>>      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 <cory.quammen at kitware.com>:
>>> 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
>>> <guillermo180395 at gmail.com> 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&D Engineer
>>> Kitware, Inc.
>>
>
>



More information about the ParaView mailing list