[vtkusers] Tutorial Step1: NotImplementedError

David Gobbi david.gobbi at gmail.com
Thu Jul 30 13:45:53 EDT 2015


Does it also fail when you try to import vtkRenderingCorePython?
Also try importing vtkCommonCorePython to see if that one works.

On Thu, Jul 30, 2015 at 11:31 AM, Darya Yelshyna <darya.yelshyna at gmail.com>
wrote:

> 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/67c7ab32/attachment.html>


More information about the vtkusers mailing list