From 141971cb42da7620a4735400959094867c6a9498 Mon Sep 17 00:00:00 2001 From: SteveDoyle2 Date: Mon, 13 Jan 2025 21:01:08 -0800 Subject: [PATCH] updating spec file for vtk 9.4 - possibly not fixed for vtk 9.4, but I think it's ok...hard to test --- dev/pyNastranGUI.spec | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/dev/pyNastranGUI.spec b/dev/pyNastranGUI.spec index 34aafd3af..787833673 100644 --- a/dev/pyNastranGUI.spec +++ b/dev/pyNastranGUI.spec @@ -730,8 +730,18 @@ vtk_imports_all = [ # 9.3 'vtkmodules.vtkRenderingVolume', 'vtkmodules.vtkRenderingVolumeAMR', 'vtkmodules.vtkRenderingVolumeOpenGL2', 'vtkmodules.vtkRenderingVtkJS', 'vtkmodules.vtkTestingRendering', 'vtkmodules.vtkViewsContext2D', 'vtkmodules.vtkViewsCore', 'vtkmodules.vtkViewsInfovis', 'vtkmodules.vtkWebCore', 'vtkmodules.vtkWebGLExporter', + # tested - 9.4.1 + # Unable to find a valid OpenGL 3.2 or later implementation + 'vtkmodules.util.data_model', 'vtkmodules.util.execution_model', ] +import vtk +vtk_version_str = vtk.VTK_VERSION +print(f'vtk_version_str = {vtk.VTK_VERSION!r}') # '9.3.1' + +if vtk_version_str >= '9.4.0': + raise RuntimeError('use vtk<9.4') + # can we get rid of scipy.optimize? hiddenimports = [ #'vtk', 'vtk.vtkCommonPythonSIP', 'vtk.vtkFilteringPythonSIP',