enthought / mayavi

3D visualization of scientific data in Python
http://docs.enthought.com/mayavi/mayavi/
Other
1.3k stars 284 forks source link

tvtk test failures with "unittest discover" but testsuite passes with "nose.core" #1079

Open rahulporuri opened 2 years ago

rahulporuri commented 2 years ago
❯ edm run -e mayavitest -- python -m unittest discover tvtk
.....<class 'numpy.int8'>
<class 'numpy.int16'>
<class 'numpy.int32'>
<class 'numpy.int64'>
<class 'numpy.uint8'>
<class 'numpy.uint16'>
<class 'numpy.uint32'>
<class 'numpy.uint64'>
<class 'numpy.float32'>
<class 'numpy.float64'>
...........................................................s........s......s..............s...................EEEEEEEEEEE...........
======================================================================
ERROR: test_tvtk_scene_garbage_collected (tvtk.tests.test_tvtk_scene.TestTVTKScene)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "c:\users\rporuri\work\github\ets\mayavi\tvtk\tests\test_tvtk_scene.py", line 36, in test_tvtk_scene_garbage_collected
    scene_weakref = do()
  File "c:\users\rporuri\work\github\ets\mayavi\tvtk\tests\test_tvtk_scene.py", line 28, in do
    scene = TVTKScene()
  File "c:\users\rporuri\work\github\ets\mayavi\tvtk\pyface\tvtk_scene.py", line 219, in __init__
    self.control = self._create_control(parent)
  File "c:\users\rporuri\work\github\ets\mayavi\tvtk\pyface\tvtk_scene.py", line 812, in _create_control
    renwin = self._renwin = tvtk.RenderWindow()
  File "tvtk_classes\render_window.py", line 64, in __init__
    tvtk_base.TVTKBase.__init__(self, vtk.vtkRenderWindow, obj, update, **traits)
  File "c:\users\rporuri\work\github\ets\mayavi\tvtk\tvtk_base.py", line 380, in __init__
    super(TVTKBase, self).__init__(**traits)
TypeError: super(type, obj): obj must be an instance or subtype of type

======================================================================
ERROR: test_arrow (tvtk.tests.test_visual.TestVisual)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "c:\users\rporuri\work\github\ets\mayavi\tvtk\tests\test_visual.py", line 181, in test_arrow
    a = visual.arrow()
  File "c:\users\rporuri\work\github\ets\mayavi\tvtk\tools\visual.py", line 1574, in __init__
    self.property = self.actor.property
  File "C:\Users\rporuri\.edm\envs\mayavitest\lib\site-packages\traits\trait_types.py", line 3447, in create_default_value
    return klass(*args[1:], **kw)
  File "tvtk_classes\actor.py", line 55, in __init__
    tvtk_base.TVTKBase.__init__(self, vtk.vtkActor, obj, update, **traits)
  File "c:\users\rporuri\work\github\ets\mayavi\tvtk\tvtk_base.py", line 380, in __init__
    super(TVTKBase, self).__init__(**traits)
TypeError: super(type, obj): obj must be an instance or subtype of type

======================================================================
ERROR: test_box (tvtk.tests.test_visual.TestVisual)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "c:\users\rporuri\work\github\ets\mayavi\tvtk\tests\test_visual.py", line 158, in test_box
    b = visual.box(size=tuple(sz), pos=pos)
  File "c:\users\rporuri\work\github\ets\mayavi\tvtk\tools\visual.py", line 1412, in __init__
    self.property = self.actor.property
  File "C:\Users\rporuri\.edm\envs\mayavitest\lib\site-packages\traits\trait_types.py", line 3447, in create_default_value
    return klass(*args[1:], **kw)
  File "tvtk_classes\actor.py", line 55, in __init__
    tvtk_base.TVTKBase.__init__(self, vtk.vtkActor, obj, update, **traits)
  File "c:\users\rporuri\work\github\ets\mayavi\tvtk\tvtk_base.py", line 380, in __init__
    super(TVTKBase, self).__init__(**traits)
TypeError: super(type, obj): obj must be an instance or subtype of type

======================================================================
ERROR: test_cone (tvtk.tests.test_visual.TestVisual)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "c:\users\rporuri\work\github\ets\mayavi\tvtk\tests\test_visual.py", line 89, in test_cone
    c = visual.cone()
  File "c:\users\rporuri\work\github\ets\mayavi\tvtk\tools\visual.py", line 943, in __init__
    self.property = self.actor.property
  File "C:\Users\rporuri\.edm\envs\mayavitest\lib\site-packages\traits\trait_types.py", line 3447, in create_default_value
    return klass(*args[1:], **kw)
  File "tvtk_classes\actor.py", line 55, in __init__
    tvtk_base.TVTKBase.__init__(self, vtk.vtkActor, obj, update, **traits)
  File "c:\users\rporuri\work\github\ets\mayavi\tvtk\tvtk_base.py", line 380, in __init__
    super(TVTKBase, self).__init__(**traits)
TypeError: super(type, obj): obj must be an instance or subtype of type

======================================================================
ERROR: test_curve (tvtk.tests.test_visual.TestVisual)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "c:\users\rporuri\work\github\ets\mayavi\tvtk\tests\test_visual.py", line 237, in test_curve
    c = visual.curve(points=[[0.,0.,0.],[1.,1.,1.]], pos=(1.,1.,1.))
  File "c:\users\rporuri\work\github\ets\mayavi\tvtk\tools\visual.py", line 572, in __init__
    self.property = self.actor.property
  File "C:\Users\rporuri\.edm\envs\mayavitest\lib\site-packages\traits\trait_types.py", line 3447, in create_default_value
    return klass(*args[1:], **kw)
  File "tvtk_classes\actor.py", line 55, in __init__
    tvtk_base.TVTKBase.__init__(self, vtk.vtkActor, obj, update, **traits)
  File "c:\users\rporuri\work\github\ets\mayavi\tvtk\tvtk_base.py", line 380, in __init__
    super(TVTKBase, self).__init__(**traits)
TypeError: super(type, obj): obj must be an instance or subtype of type

======================================================================
ERROR: test_cylinder (tvtk.tests.test_visual.TestVisual)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "c:\users\rporuri\work\github\ets\mayavi\tvtk\tests\test_visual.py", line 139, in test_cylinder
    c = visual.cylinder(radius=0.5, length=2, pos=(1., 1, 1))
  File "c:\users\rporuri\work\github\ets\mayavi\tvtk\tools\visual.py", line 1246, in __init__
    self.property = self.actor.property
  File "C:\Users\rporuri\.edm\envs\mayavitest\lib\site-packages\traits\trait_types.py", line 3447, in create_default_value
    return klass(*args[1:], **kw)
  File "tvtk_classes\actor.py", line 55, in __init__
    tvtk_base.TVTKBase.__init__(self, vtk.vtkActor, obj, update, **traits)
  File "c:\users\rporuri\work\github\ets\mayavi\tvtk\tvtk_base.py", line 380, in __init__
    super(TVTKBase, self).__init__(**traits)
TypeError: super(type, obj): obj must be an instance or subtype of type

======================================================================
ERROR: test_ellipsoid (tvtk.tests.test_visual.TestVisual)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "c:\users\rporuri\work\github\ets\mayavi\tvtk\tests\test_visual.py", line 204, in test_ellipsoid
    s = visual.ellipsoid(size=(1.0, 1.0, 1.0), pos=(1., 1., 1.))
  File "c:\users\rporuri\work\github\ets\mayavi\tvtk\tools\visual.py", line 1975, in __init__
    self.property = self.actor.property
  File "C:\Users\rporuri\.edm\envs\mayavitest\lib\site-packages\traits\trait_types.py", line 3447, in create_default_value
    return klass(*args[1:], **kw)
  File "tvtk_classes\actor.py", line 55, in __init__
    tvtk_base.TVTKBase.__init__(self, vtk.vtkActor, obj, update, **traits)
  File "c:\users\rporuri\work\github\ets\mayavi\tvtk\tvtk_base.py", line 380, in __init__
    super(TVTKBase, self).__init__(**traits)
TypeError: super(type, obj): obj must be an instance or subtype of type

======================================================================
ERROR: test_frame (tvtk.tests.test_visual.TestVisual)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "c:\users\rporuri\work\github\ets\mayavi\tvtk\tests\test_visual.py", line 271, in test_frame
    s = visual.sphere()
  File "c:\users\rporuri\work\github\ets\mayavi\tvtk\tools\visual.py", line 1091, in __init__
    self.property = self.actor.property
  File "C:\Users\rporuri\.edm\envs\mayavitest\lib\site-packages\traits\trait_types.py", line 3447, in create_default_value
    return klass(*args[1:], **kw)
  File "tvtk_classes\actor.py", line 55, in __init__
    tvtk_base.TVTKBase.__init__(self, vtk.vtkActor, obj, update, **traits)
  File "c:\users\rporuri\work\github\ets\mayavi\tvtk\tvtk_base.py", line 380, in __init__
    super(TVTKBase, self).__init__(**traits)
TypeError: super(type, obj): obj must be an instance or subtype of type

======================================================================
ERROR: test_helix (tvtk.tests.test_visual.TestVisual)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "c:\users\rporuri\work\github\ets\mayavi\tvtk\tests\test_visual.py", line 251, in test_helix
    h = visual.helix(pos=(1., 1.,1.))
  File "c:\users\rporuri\work\github\ets\mayavi\tvtk\tools\visual.py", line 1745, in __init__
    self.property = self.actor.property
  File "C:\Users\rporuri\.edm\envs\mayavitest\lib\site-packages\traits\trait_types.py", line 3447, in create_default_value
    return klass(*args[1:], **kw)
  File "tvtk_classes\actor.py", line 55, in __init__
    tvtk_base.TVTKBase.__init__(self, vtk.vtkActor, obj, update, **traits)
  File "c:\users\rporuri\work\github\ets\mayavi\tvtk\tvtk_base.py", line 380, in __init__
    super(TVTKBase, self).__init__(**traits)
TypeError: super(type, obj): obj must be an instance or subtype of type

======================================================================
ERROR: test_ring (tvtk.tests.test_visual.TestVisual)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "c:\users\rporuri\work\github\ets\mayavi\tvtk\tests\test_visual.py", line 53, in test_ring
    r = visual.ring()
  File "c:\users\rporuri\work\github\ets\mayavi\tvtk\tools\visual.py", line 759, in __init__
    self.property = self.actor.property
  File "C:\Users\rporuri\.edm\envs\mayavitest\lib\site-packages\traits\trait_types.py", line 3447, in create_default_value
    return klass(*args[1:], **kw)
  File "tvtk_classes\actor.py", line 55, in __init__
    tvtk_base.TVTKBase.__init__(self, vtk.vtkActor, obj, update, **traits)
  File "c:\users\rporuri\work\github\ets\mayavi\tvtk\tvtk_base.py", line 380, in __init__
    super(TVTKBase, self).__init__(**traits)
TypeError: super(type, obj): obj must be an instance or subtype of type

======================================================================
ERROR: test_sphere (tvtk.tests.test_visual.TestVisual)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "c:\users\rporuri\work\github\ets\mayavi\tvtk\tests\test_visual.py", line 115, in test_sphere
    s = visual.sphere()
  File "c:\users\rporuri\work\github\ets\mayavi\tvtk\tools\visual.py", line 1091, in __init__
    self.property = self.actor.property
  File "C:\Users\rporuri\.edm\envs\mayavitest\lib\site-packages\traits\trait_types.py", line 3447, in create_default_value
    return klass(*args[1:], **kw)
  File "tvtk_classes\actor.py", line 55, in __init__
    tvtk_base.TVTKBase.__init__(self, vtk.vtkActor, obj, update, **traits)
  File "c:\users\rporuri\work\github\ets\mayavi\tvtk\tvtk_base.py", line 380, in __init__
    super(TVTKBase, self).__init__(**traits)
TypeError: super(type, obj): obj must be an instance or subtype of type

----------------------------------------------------------------------
Ran 137 tests in 24.160s

FAILED (errors=11, skipped=4)
❯ edm run -e mayavitest -- python -m nose.core tvtk
C:\Users\rporuri\.edm\envs\mayavitest\lib\runpy.py:125: RuntimeWarning: 'nose.core' found in sys.modules after import of package 'nose', but prior to execution of 'nose.core'; this may result in unpredictable behaviour
  warn(RuntimeWarning(msg))
................................................................S........S......S..............S........................................
----------------------------------------------------------------------
Ran 136 tests in 25.455s

OK (SKIP=4)