[vtkusers] Tutorial Step1: NotImplementedError
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>
> When I try to run 'from vtkRenderingOpenGLPython import *' I get the
> ImportError: No module named vtkRenderingOpenGLPython
> Thank you,
> On Thu, Jul 30, 2015 at 5:13 PM, David Gobbi <david.gobbi at gmail.com>
>> 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
>>> 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.
>>> Darya Yelshyna
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the vtkusers