[vtkusers] Tutorial Step1: NotImplementedError

Darya Yelshyna darya.yelshyna at gmail.com
Thu Jul 30 13:31:26 EDT 2015


When I try to run 'from vtkRenderingOpenGLPython import *' I get the
following:

ImportError: No module named vtkRenderingOpenGLPython


Thank you,

Darya

On Thu, Jul 30, 2015 at 5:13 PM, David Gobbi <david.gobbi at gmail.com> wrote:

> Hi Darya,
>
> The concrete implementation for vtkPolyDataMapper is
> vtkOpenGLPolyDataMapper.  The NotImplementedError probably means that the
> vtkRenderingOpenGLPython.so module is not loading, because it is the module
> that contains vtkOpenGLPolyDataMapper.
>
> I cannot be sure why this module is not loading on your system, but you
> can try loading it manually from python:
>
>   >>> from vtkRenderingOpenGLPython import *
>   >>> mapper = vtkOpenGLPolyDataMapper()
>   >>> print mapper.GetClassName()
>   >>>
>   >>> from vtkRenderingCore import *
>   >>> mapper2 = vtkPolyDataMapper()
>   >>> print mapper2.GetClassName()
>
>  - David
>
> On Thu, Jul 30, 2015 at 3:58 AM, Darya Yelshyna <darya.yelshyna at gmail.com>
> wrote:
>
>> Hello everyone,
>>
>> I am sorry for inconvenience, but I can't execute the tutorial steps
>> contained in the Examples folder. I pretend to use python for development
>> of a 3D Slicer module. When I run the Cone.py, I get the following error:
>>
>> Generic Warning: In
>> /home/darya/Documents/Slicer-SuperBuild/VTKv6/Rendering/Core/vtkPolyDataMapper.cxx,
>> line 28
>> Error: no override found for 'vtkPolyDataMapper'.
>>
>> Traceback (most recent call last):
>>   File "/home/darya/Documents/LiClipse
>> Workspace/VTKtutorials/src/Step1.py", line 14, in <module>
>>     coneMapper = vtk.vtkPolyDataMapper()
>> NotImplementedError: no concrete implementation exists for this class
>> vtkDebugLeaks has detected LEAKS!
>> Class "vtkPolyDataMapper" has 1 instance still around.
>>
>> I could not find a solution for this, the only information I found was
>> concerning C++ programming.
>> Thank you in advance.
>>
>> Sincerely,
>> Darya Yelshyna
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20150730/931d3e1d/attachment.html>


More information about the vtkusers mailing list