Blob Blame History Raw
From fb441187bbd5c904e84ed21b20fe0dbacb5cf448 Mon Sep 17 00:00:00 2001
From: Eric Larson <larson.eric.d@gmail.com>
Date: Wed, 16 Jun 2021 10:33:19 -0400
Subject: [PATCH] WIP: Update for latest VTK

---
 tvtk/vtk_parser.py | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/tvtk/vtk_parser.py b/tvtk/vtk_parser.py
index ad9c77b5..f967e06e 100644
--- a/tvtk/vtk_parser.py
+++ b/tvtk/vtk_parser.py
@@ -632,6 +632,9 @@ def _find_get_set_methods(self, klass, methods):
             elif (klass_name == 'vtkPiecewisePointHandleItem' and
                   method[3:] == 'PiecewiseFunction'):
                 continue
+            # These hang on Windows (and maybe Fedora 34)
+            elif (klass_name in ('vtkDataEncoder', 'vtkWebApplication')):
+                continue
             # we can actually process it
             elif ('Get' + method[3:]) in methods:
                 key = method[3:]
@@ -646,7 +649,10 @@ def _find_get_set_methods(self, klass, methods):
 
         # Find the default and range of the values.
         if gsm:
+            # Useful for debugging on failures:
+            # print('get instance', klass)
             obj = self._get_instance(klass)
+            # print('got instance', obj.__class__)
             if obj:
                 for key, value in gsm.items():
                     if not is_version_9() and (
@@ -679,7 +685,7 @@ def _find_get_set_methods(self, klass, methods):
                     else:
                         try:
                             # Useful for debugging on failures:
-                            # print(klass_name, key)
+                            # print('Get', klass_name, key)
                             default = getattr(obj, 'Get%s' % key)()
                         except TypeError:
                             default = None
@@ -694,7 +700,7 @@ def _find_get_set_methods(self, klass, methods):
                 # Segfaults can be exposed by uncommenting these lines,
                 # leave them commented while running because they
                 # slow things down quite a bit
-                # print(klass_name)
+                # print('GC', klass_name)
                 # import gc
                 # gc.collect()
             else: