Thanks! That did it!<br><br>Next problem, along similar lines. I want to simply volume render a vtk file I have. If I do everything from within the paraview app, it works fine. But if I try to do the following from the python shell (or pvpython) it seg faults on me:<br>
<br>>>> reader=LegacyVTKReader(FileNames="/home/battams/model.vtk")<br>>>> Show(reader)<br>>>> SetDisplayProperties(reader,Representation='Volume')<br><br>Here's the error I get in my terminal:<br>
<br>ERROR: In /home/battams/Builds/Paraview3/ParaView3/VTK/VolumeRendering/vtkFixedPointVolumeRayCastMapper.cxx, line 1467<br>vtkFixedPointVolumeRayCastMapper (0x7fc7b7368010): Cell Scalars not supported<br>[3] Segmentation fault paraview<br>
<br>It looks to me like the problem is my model because of the "Cell scalars not supported" message. But I can load/view it fine if I just use the ParaView GUI. <br><br>Apologies in advance if I'm making some sort of stupid beginner mistake...<br>
<br>~~Karl<br><br><div class="gmail_quote">On Fri, Aug 21, 2009 at 11:08 AM, Utkarsh Ayachit <span dir="ltr"><<a href="mailto:utkarsh.ayachit@kitware.com">utkarsh.ayachit@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
When you creating the readers using python shell from the GUI (not<br>
pvpython or pvbatch), it's recommended that you set the FileName in<br>
the constructor itself. So try:<br>
<br>
> reader = LegacyVTKReader(FileNames="foo.vtk")<br>
<br>
Utkarsh<br>
<div><div></div><div class="h5"><br>
On Fri, Aug 21, 2009 at 10:04 AM, Karl Battams<<a href="mailto:karlbattams@gmail.com">karlbattams@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
> I'm using the latest CVS build of Paraview (on Ubuntu) and am getting some<br>
> errors when I try to do python scripting from the Python shell. I start<br>
> ParaView and bring up the python shell, and type the simple command:<br>
><br>
>>>> reader=LegacyVTKReader()<br>
> As soon as I enter this command, the error console pops up saying:<br>
><br>
> ERROR: In<br>
> /home/battams/Builds/Paraview3/ParaView3/VTK/Filtering/vtkExecutive.cxx,<br>
> line 757<br>
><br>
> vtkCompositeDataPipeline (0x253f0b0): Algorithm<br>
> vtkFileSeriesReader(0x2560aa0) returned failure for request: vtkInformation<br>
> (0xd1e190)<br>
><br>
> Debug: Off<br>
><br>
> Modified Time: 197255<br>
><br>
> Reference Count: 1<br>
><br>
> Registered Events: (none)<br>
><br>
> Request: REQUEST_DATA_OBJECT<br>
><br>
> ALGORITHM_AFTER_FORWARD: 1<br>
><br>
> FORWARD_DIRECTION: 0<br>
><br>
> It has a similar error for vtkPDataSetReader. It then has the lines:<br>
><br>
> ERROR: In<br>
> /home/battams/Builds/Paraview3/ParaView3/Servers/Common/vtkSelfConnection.cxx,<br>
> line 147<br>
> vtkSelfConnection (0x14ef4f0): Failed to locate object with ID: 154<br>
><br>
> ERROR: In<br>
> /home/battams/Builds/Paraview3/ParaView3/Servers/ServerManager/vtkSMOutputPort.cxx,<br>
> line 293<br>
><br>
> vtkSMOutputPort (0x152f200): Missing data information.<br>
><br>
> And then some more output like the top part.<br>
><br>
> Now what seems odd to me is that it is complaining about errors in my build<br>
> directory, but I installed Paraview to /usr/local. But the same error<br>
> persists, even if I actually remove the build directory before running<br>
> paraview. But perhaps I'm misunderstanding something. Regardless, I get<br>
> the above errors when python scripting. Any ideas?<br>
><br>
> Also, in my CMakeOutput.log file I see the message:<br>
><br>
> Determining if glXGetProcAddressARB exists in GL/glx.h FALSE<br>
><br>
> ...leading to an error...<br>
><br>
> /home/battams/Builds/Paraview3/ParaView3/VTK/Rendering/CheckglXGetProcAddressARB.cxx:<br>
> In function 'int main(int, char**)':<br>
> /home/battams/Builds/Paraview3/ParaView3/VTK/Rendering/CheckglXGetProcAddressARB.cxx:33:<br>
> error: 'glXGetProcAddressARB' was not declared in this scope<br>
> make[1]: ***<br>
> [CMakeFiles/cmTryCompileExec.dir/CheckglXGetProcAddressARB.cxx.o] Error 1<br>
> make[1]: Leaving directory<br>
> `/home/battams/Builds/paraview-bin/CMakeFiles/CMakeTmp'<br>
> make: *** [cmTryCompileExec/fast] Error 2<br>
><br>
> Is this related? Or an entirely different problem? (or not a problem at<br>
> all?)<br>
><br>
> Thanks!<br>
><br>
> ~~Karl<br>
><br>
</div></div>> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com" 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" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Please keep messages on-topic and check the ParaView Wiki at:<br>
> <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
><br>
><br>
</blockquote></div><br>