<div dir="ltr">Thanks. Could I reproduce what's going on here?<div><br></div><div><a href="https://blog.kitware.com/improved-vtk-numpy-integration/">https://blog.kitware.com/improved-vtk-numpy-integration/</a><br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, May 5, 2016 at 10:41 AM Mathieu Westphal <<a href="mailto:mathieu.westphal@kitware.com">mathieu.westphal@kitware.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>pvpython is a paraview client, and it is not suposed to execute vtk code, wich is executed on the server.<br></div><div>in pvpython you can do:<br></div><div>from paraview import *<br><br></div>What are you trying to achieve ?<br></div><div class="gmail_extra"><br clear="all"><div><div><div dir="ltr">Mathieu Westphal<br></div></div></div>
<br><div class="gmail_quote"></div></div><div class="gmail_extra"><div class="gmail_quote">On Thu, May 5, 2016 at 5:40 PM, Ganesh Vijayakumar <span dir="ltr"><<a href="mailto:ganesh.iitm@gmail.com" target="_blank">ganesh.iitm@gmail.com</a>></span> wrote:<br></div></div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello,<div><br></div><div> I'm having trouble importing vtk inside pvpython while it imports just fine inside python. I installed paraview-python with paraview-5.0.1 using debian stretch. Any ideas on why this might be the case?</div><div><br></div><div><div>ganesh@tesla:~$ pvpython</div><div>Python 2.7.10 (default, Jul 1 2015, 10:54:53) </div><div>[GCC 4.9.2] on linux2</div><div>Type "help", "copyright", "credits" or "license" for more information.</div><div>>>> import vtk</div><div>Traceback (most recent call last):</div><div> File "<stdin>", line 1, in <module></div><div> File "/usr/lib/python2.7/dist-packages/vtk/__init__.py", line 39, in <module></div><div> from vtkCommonCore import *</div><div> File "/usr/lib/python2.7/dist-packages/vtk/vtkCommonCore.py", line 1, in <module></div><div> from vtkCommonCorePython import *</div><div>TypeError: value must be a class or type</div><div>>>> </div><div>>>> </div><div>Segmentation fault</div><div>ganesh@tesla:~$ python</div><div>Python 2.7.10 (default, Jul 1 2015, 10:54:53) </div><div>[GCC 4.9.2] on linux2</div><div>Type "help", "copyright", "credits" or "license" for more information.</div><div>>>> import vtk</div><div>>>> </div></div><span><font color="#888888"><div><br></div><div>ganesh</div></font></span></div>
<br></blockquote></div></div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" rel="noreferrer" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" rel="noreferrer" target="_blank">http://markmail.org/search/?q=ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/paraview</a><br>
<br></blockquote></div><br></div>
</blockquote></div>