[Paraview] Rv: Rv: 1 script open different vtk files

llapis Pencil llapispencil at yahoo.es
Tue Jul 6 10:16:38 EDT 2010


Hi,

Using the temp folder no changes happen, but changing the slashes the message error also changes. Now the error message is the following:

Traceback (most recent call last): 
File "<string>", line 3, in <module>
File "C:\Archivos de programa\ParaView 3.8.0-RC2\lib\paraview-3.8\paraview\simple.py", line 115, in OpenDataFile
reader = globals()[xml_name](FileName=filename, **extraArgs)
File "C:\Archivos de programa\ParaView 3.8.0-RC2\lib\paraview-3.8\paraview\simple.py", line 542, in CreateObject
setattr(px, param, params[param])
File "C:\Archivos de programa\ParaView 3.8.0-RC2\lib\paraview-3.8\paraview\servermanager.py", line 201, in __setattr__
"to add this attribute.")
AttributeError: Attribute FileName does not exist.  This class does not allow addition of new attributes to avoid mistakes due to typos. Use add_attribute() if you really want to add this attribute.
Some ideas?
Thanks again!



----- Mensaje reenviado ----
De: pat marion <pat.marion at kitware.com>
Para: Utkarsh Ayachit <utkarsh.ayachit at kitware.com>
CC: llapis Pencil <llapispencil at yahoo.es>; PARAVIEW <paraview at paraview.org>
Enviado: mar,6 julio, 2010 15:20
Asunto: Re: [Paraview] Rv: 1 script open different vtk files

Also, try changing the backslashes to forward slashes.

Pat


On Tue, Jul 6, 2010 at 9:10 AM, Utkarsh Ayachit <utkarsh.ayachit at kitware.com> wrote:

Try putting the file under "c:\temp" does that help?
>
>>Utkarsh
>
>
>>On Tue, Jul 6, 2010 at 9:01 AM, llapis Pencil <llapispencil at yahoo.es> wrote:
>>> hi again,
>>>
>>> I tried to run the script through the python shell, but it still comes up
>>> errors. The error message is the following:
>>>
>>> Traceback (most recent call last):
>>>
>>> File "<string>", line 3, in <module>
>>>
>>> File "C:\Archivos de programa\ParaView
>>> 3.8.0-RC2\lib\paraview-3.8\paraview\simple.py", line 109, in OpenDataFile
>>>
>>> raise RuntimeError, "File not readable: %s " % filename
>>>
>>> RuntimeError: File not readable: C:\Documents and Settings\Nit@\Mis
>>> documentos\stuttgart\hiwi\outputtk\output\out1-1.vtk
>>>
>>> Does someone knows why is still not working? It seems that it can not read
>>> the vtk files. I tried different many details like change " for 'or putting
>>> only the filename (not the whole file extension). The Render should be
>>> reffered to somewhere or it's ok with an empty ( ) ? or it's a problem of
>>> the file type?
>>>
>>> #The python script is the following:
>>>
>>> from paraview.simple import *
>>>
>>> reader1 = OpenDataFile('C:\Documents and Settings\output\out1-1.vtk')
>>> reader2 = OpenDataFile('C:\Documents and Settings\output\out1-2.vtk')
>>> reader3 = OpenDataFile('C:\Documents and Settings\output\out1-3.vtk')
>>> reader4 = OpenDataFile('C:\Documents and Settings\output\out1-4.vtk')
>>>
>>> Show(reader1)
>>> Show(reader2)
>>> Show(reader3)
>>> Show(reader4)
>>>
>>>
>>> Render()
>>>
>>> #############
>>>
>>> Thanks again
>>>
>>>
>>> ----- Mensaje reenviado ----
>>> De: Utkarsh Ayachit <utkarsh.ayachit at kitware.com>
>>> Para: llapis Pencil <llapispencil at yahoo.es>
>>> CC: PARAVIEW <paraview at paraview.org>
>>> Enviado: jue,1 julio, 2010 16:18
>>> Asunto: Re: [Paraview] 1 script open different vtk files
>>>
>>> I believe you are trying to "open" the python script as a data-file
>>> from File |Open menu-option. To run a python script from the GUI, you
>>> open the Python shell from "Tools | Python Shell" menu and then click
>>> "Run Script" on the bottom-left corner to load the script to run.
>>>
>>> Utkarsh
>>>
>>> On Wed, Jun 30, 2010 at 6:46 AM, llapis Pencil <llapispencil at yahoo.es>
>>> wrote:
>>>> hi again,
>>>>
>>>> thanks for the response. So i understand i have to create a file
>>>> contraining
>>>> this information (reffering to my files) to open it later directly with
>>>> Paraview. Which type of file should be? because i tried many files and
>>>> still
>>>> not work. Paraview ask me to chose a reader to open it. Maybe I should
>>>> know
>>>> also which reader. Here is the information contained in the file to be
>>>> open.
>>>>
>>>> from paraview.simple import *
>>>>
>>>> reader1 = OpenDataFile(“out1-1.vtk”)
>>>> reader2 = OpenDataFile("out1-2.vtk")
>>>> reader3 = OpenDataFile(“out1-3.vtk”)
>>>> reader4 = OpenDataFile("out1-4.vtk")
>>>>
>>>> Show(reader1)
>>>> Show(reader2)
>>>> Show(reader3)
>>>> Show(reader4)
>>>>
>>>> Render()
>>>>
>>>> ________________________________
>>>> De: Utkarsh Ayachit <utkarsh.ayachit at kitware.com>
>>>> Para: llapis Pencil <llapispencil at yahoo.es>
>>>> CC: PARAVIEW <paraview at paraview.org>
>>>> Enviado: mié,23 junio, 2010 16:08
>>>> Asunto: Re: [Paraview] 1 script open different vtk files
>>>>
>>>> # for paraview 3.8.0 or greater.
>>>>
>>>> from paraview.simple import *
>>>>
>>>> reader1 = OpenDataFile(“file1”)
>>>> reader2 = OpenDataFile("file2")
>>>> ....
>>>> Show(reader1)
>>>> Show(reader2)
>>>> ...
>>>>
>>>> Render()
>>>>
>>>> On Wed, Jun 23, 2010 at 9:35 AM, llapis Pencil <llapispencil at yahoo.es>
>>>> wrote:
>>>>>
>>>>> Hi again,
>>>>> thanks for the response. Now my question is how can i create a script
>>>>> which
>>>>> tells PARAVIEW to open a certain number of vtk files at once and
>>>>> visualize
>>>>> them all together?
>>>>>
>>>>> Thanx one more time
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> 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
>>>>
>>>>
>>>
>>>
>>> _______________________________________________
>>> 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
>


      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20100706/f8d5db3a/attachment-0001.htm>


More information about the ParaView mailing list