[Paraview-developers] CoProcessing error: object has no attribute 'vtkLiveInsituLink'

Cory Quammen cquammen at cs.unc.edu
Thu Oct 25 16:44:28 EDT 2012


Sebastian,

I was able to run your script and connect to it with the ParaView
client. The animation played as expected. Really cool!

I have some higher-level questions about CoProcessing, but I'll start
a new thread for those.

Thanks again,
Cory

On Thu, Oct 25, 2012 at 3:59 PM, Sebastien Jourdain
<sebastien.jourdain at kitware.com> wrote:
> As a quick answer, the script that I've send is to fake a server side
> and allow to easily test ParaView to connect to it while running. So
> you right, it definitely doesn't look like a generated script as a
> generated script will rely on the adaptor code to push the data to it
> from the simulation. (which I don't in my case.)
>
> For your example, I'll let Andy look at it. But at least, as a first
> step, you can try to run my script as is and use ParaView to connect
> to it, to have a feeling of what can be done.
>
> Seb
>
> On Thu, Oct 25, 2012 at 3:53 PM, Cory Quammen <cquammen at cs.unc.edu> wrote:
>> On Thu, Oct 25, 2012 at 3:18 PM, Sebastien Jourdain
>> <sebastien.jourdain at kitware.com> wrote:
>>> Hum,
>>>
>>> Do you try to do live visualization ? Or just dump image capture/data
>>> structure onto the disk while your simulation is running ?
>>
>> I'm interested in the live visualization capabilities, so I chose that
>> option when generating the python script from the CoProcessing plugin.
>>
>>> Did you generate the python script from the CoProcessing plugin or did
>>> you write it on your own ? With the changes that are currently in
>>> master the generated script has been greatly simplified and the
>>> pipeline is properly kept between time steps.
>>
>> I generated it from the plugin. However, I've attached the generated
>> script because it doesn't look anything like the script you attached
>> previously.
>>
>>> If you want to do live visualization, you will have to start ParaView with
>>>  "--multi-servers" argument. I'll try to remove that constraint but
>>> since you are kind of ahead of what is going to be released, that's
>>> the current path to enable the "Tools > Connect to Catalyst". But, to
>>> be able to connect to catalyst you should pick a script that as been
>>> generated by the plugin. Or you can try out with the one that I've
>>> attached in that mail.
>>>
>>> To run it just do: pvpython /.../script.py
>>> But don't forget to fix the path to the file that I'm using which is
>>> in ParaViewData.
>>
>> When I run my script with pvpython FakeSimulator.py, I get an error
>> and it exits right away.
>>
>> ****
>>
>> Warning: In /Users/quammen/dev/ParaViewCoProcessing/src/ParaView/ParaViewCore/ServerManager/Core/vtkSMDomain.cxx,
>> line 128
>> vtkSMArrayListDomain (0x7f9a9517dae0): You have added a domain
>> dependency to a property named 'Input' which does not exist.
>>
>> Warning: In /Users/quammen/dev/ParaViewCoProcessing/src/ParaView/ParaViewCore/ServerManager/Core/vtkSMDomain.cxx,
>> line 128
>> vtkSMArrayListDomain (0x7f9a9517e040): You have added a domain
>> dependency to a property named 'Input' which does not exist.
>>
>> Initialize Helper Script
>>
>> ****
>>
>> I've also attached the .cxx file that is my "simulator". At what point
>> to I run that executable? After running the script and client?
>>
>> Sorry to bother you on this. I realize you must be working hard on
>> this, and if my questions and confusion are just getting in the way,
>> then I'm happy to wait for when it is released and the documentation
>> is updated.
>>
>> Thanks again,
>> Cory
>>
>>> Seb
>>>
>>> On Thu, Oct 25, 2012 at 3:05 PM, Cory Quammen <cquammen at cs.unc.edu> wrote:
>>>> Sebastien,
>>>>
>>>> I couldn't find this information online: once I have the ParaView
>>>> client and server and my instrumented simulator, how do I connect all
>>>> of them?
>>>>
>>>> My code basically follows the example at
>>>> http://paraview.org/Wiki/Coprocessing_example
>>>>
>>>> Thanks again,
>>>> Cory
>>>>
>>>> On Thu, Oct 25, 2012 at 1:24 PM, Cory Quammen <cquammen at cs.unc.edu> wrote:
>>>>> Thanks!
>>>>>
>>>>> Cory
>>>>>
>>>>> On Thu, Oct 25, 2012 at 1:20 PM, Sebastien Jourdain
>>>>> <sebastien.jourdain at kitware.com> wrote:
>>>>>> oups by copy paste I've added the ? just get rid of it.
>>>>>>
>>>>>> $ git checkout -b test-live-coprocessing stage/live_coprocessing_2
>>>>>>
>>>>>> On Thu, Oct 25, 2012 at 1:19 PM, Sebastien Jourdain
>>>>>> <sebastien.jourdain at kitware.com> wrote:
>>>>>>> $ git checkout -b test-live-coprocessing stage/live_coprocessing_2?
>>>>>>>
>>>>>>> if if you want to get back to master
>>>>>>>
>>>>>>> $ git checkout master
>>>>>>>
>>>>>>> Seb
>>>>>>>
>>>>>>> On Thu, Oct 25, 2012 at 1:17 PM, Cory Quammen <cquammen at cs.unc.edu> wrote:
>>>>>>>> Sebastien,
>>>>>>>>
>>>>>>>> Thank you for your quick reply. I'll look at your work, but I need a
>>>>>>>> little git spoon feeding first. How do I access
>>>>>>>> stage/live_coprocessing_2?
>>>>>>>>
>>>>>>>> Thanks!
>>>>>>>> Cory
>>>>>>>>
>>>>>>>> On Thu, Oct 25, 2012 at 1:06 PM, Sebastien Jourdain
>>>>>>>> <sebastien.jourdain at kitware.com> wrote:
>>>>>>>>> I'm currently working on it on stage/live_coprocessing_2, so if you
>>>>>>>>> can definitely get it from there...
>>>>>>>>>
>>>>>>>>> Sorry about the issue around that,
>>>>>>>>>
>>>>>>>>> Seb
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Thu, Oct 25, 2012 at 12:20 PM, Cory Quammen <cquammen at cs.unc.edu> wrote:
>>>>>>>>>> Hi all,
>>>>>>>>>>
>>>>>>>>>> I'm experimenting with CoProcessing in ParaView. I cloned master
>>>>>>>>>> yesterday and build with the CoProcessing options listed on this page:
>>>>>>>>>>
>>>>>>>>>> http://paraview.org/Wiki/CoProcessing
>>>>>>>>>>
>>>>>>>>>> When running my fake simulation code, I get the following error message:
>>>>>>>>>>
>>>>>>>>>> Initialize Helper Script
>>>>>>>>>> Initialize Helper Script
>>>>>>>>>> Traceback (most recent call last):
>>>>>>>>>>   File "<string>", line 2, in <module>
>>>>>>>>>>   File "FakeSimulator.py", line 82, in DoCoProcessing
>>>>>>>>>>     DoLiveInsitu(timestep, pv_host, pv_port)
>>>>>>>>>>   File "<string>", line 414, in DoLiveInsitu
>>>>>>>>>> AttributeError: 'module' object has no attribute 'vtkLiveInsituLink'
>>>>>>>>>>
>>>>>>>>>> Doing a git grep on vtkLiveInstituLink in the ParaView source brings
>>>>>>>>>> up the following:
>>>>>>>>>>
>>>>>>>>>> CoProcessing/Core/cp_helper.py:      # Create the vtkLiveInsituLink
>>>>>>>>>> i.e.  the "link" to the visualization processes.
>>>>>>>>>> CoProcessing/Core/cp_helper.py:      live_insitu =
>>>>>>>>>> servermanager.vtkLiveInsituLink()
>>>>>>>>>> CoProcessing/Core/cp_helper.py:      # Tell vtkLiveInsituLink what
>>>>>>>>>> host/port must it connect to for the visualization
>>>>>>>>>> CoProcessing/Core/cp_helper.py:   # sources need to be updated by
>>>>>>>>>> insitu code. vtkLiveInsituLink never updates
>>>>>>>>>>
>>>>>>>>>> grepping in the ParaView build directory shows:
>>>>>>>>>>
>>>>>>>>>> Binary file ./CoProcessing/Core/CMakeFiles/vtkCoProcessor.dir/cp_helper_py.cxx.o
>>>>>>>>>> matches
>>>>>>>>>> ./CoProcessing/Core/cp_helper_py.cxx:"      # Create the
>>>>>>>>>> vtkLiveInsituLink i.e.  the \"link\" to the visualization
>>>>>>>>>> processes.\n"
>>>>>>>>>> ./CoProcessing/Core/cp_helper_py.cxx:"      live_insitu =
>>>>>>>>>> servermanager.vtkLiveInsituLink()\n"
>>>>>>>>>> ./CoProcessing/Core/cp_helper_py.cxx:"      # Tell vtkLiveInsituLink
>>>>>>>>>> what host/port must it connect to for the visualization\n"
>>>>>>>>>> ./CoProcessing/Core/cp_helper_py.cxx:"   # sources need to be updated
>>>>>>>>>> by insitu code. vtkLiveInsituLink never updates\n"
>>>>>>>>>> Binary file ./lib/libvtkCoProcessor-pv3.14.1.dylib matches
>>>>>>>>>> Binary file ./lib/libvtkCoProcessor-pv3.14.dylib matches
>>>>>>>>>>
>>>>>>>>>> It seems that vtkLiveInsituLink isn't defined anywhere.
>>>>>>>>>>
>>>>>>>>>> Any pointers? I'm happy to revert to an older version where this worked.
>>>>>>>>>>
>>>>>>>>>> Thanks,
>>>>>>>>>> Cory
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>> Cory Quammen
>>>>>>>>>> Research Associate
>>>>>>>>>> Department of Computer Science
>>>>>>>>>> The University of North Carolina at Chapel Hill
>>>>>>>>>> _______________________________________________
>>>>>>>>>> Paraview-developers mailing list
>>>>>>>>>> Paraview-developers at paraview.org
>>>>>>>>>> http://public.kitware.com/mailman/listinfo/paraview-developers
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> Cory Quammen
>>>>>>>> Research Associate
>>>>>>>> Department of Computer Science
>>>>>>>> The University of North Carolina at Chapel Hill
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Cory Quammen
>>>>> Research Associate
>>>>> Department of Computer Science
>>>>> The University of North Carolina at Chapel Hill
>>>>
>>>>
>>>>
>>>> --
>>>> Cory Quammen
>>>> Research Associate
>>>> Department of Computer Science
>>>> The University of North Carolina at Chapel Hill
>>
>>
>>
>> --
>> Cory Quammen
>> Research Associate
>> Department of Computer Science
>> The University of North Carolina at Chapel Hill



-- 
Cory Quammen
Research Associate
Department of Computer Science
The University of North Carolina at Chapel Hill


More information about the Paraview-developers mailing list