Skip to content
Snippets Groups Projects
  1. Dec 09, 2024
  2. Dec 01, 2024
  3. Sep 28, 2024
  4. Sep 23, 2024
  5. Sep 18, 2024
  6. Sep 17, 2024
    • David Gobbi's avatar
      Add 'encoding' to vtkPythonInterpreter IO streams · 65470923
      David Gobbi authored
      When run in interactive mode under Python 3.13, the vtkpython exe
      raised "AttributeError: 'vtkPythonStdStreamCaptureHelper' object has
      no attribute 'encoding'" whenever it tried to print to the screen.
      
      Adding an attribute "encoding='utf-8'" to the stream capture objects
      fixes the exception.  Note that there is no check that the console is
      actually UTF8, but VTK has historically assumed that it is.
      65470923
  7. Sep 16, 2024
  8. Sep 14, 2024
    • David Gobbi's avatar
      Avoid use of deprecated Py_GetProgramName · 718db8b7
      David Gobbi authored
      Py_GetProgramName() was deprecated in Python 3.13 and will be
      removed in Python 3.15.  The same information can be retrieved
      from sys.executable.  Note that since we stopped using
      Py_SetProgramName() for Python>=3.8, for consistency the #ifdef
      for Py_GetProgramName() also checks Python>=3.8.
      718db8b7
  9. Aug 30, 2024
  10. Aug 28, 2024
  11. Jul 03, 2024
    • David Gobbi's avatar
      Add VTK_PYTHON_FULL_THREADSAFE as option · 5df65311
      David Gobbi authored
      The VTK_PYTHON_FULL_THREADSAFE variable has existed since 2015, but
      so far has only been a cmake option in Paraview, never in VTK itself.
      Since this option adds the GIL locks that are required for any
      Python concurrency via PyEval_SaveThread()/PyEval_RestoreThread(),
      it should be useful within a broad range of VTK projects.
      
      The VTK_NO_PYTHON_THREADS option is an older option that was available
      in VTK 5 but disappeared in VTK 6, though it still appeared in the C++
      source files and in Paraview's CMakeLists.txt.
      5df65311
  12. Jul 02, 2024
  13. Jun 29, 2024
  14. Jun 17, 2024
  15. Jun 07, 2024
  16. Jun 05, 2024
  17. May 29, 2024
  18. May 27, 2024
  19. May 24, 2024
  20. May 22, 2024
  21. May 21, 2024
  22. May 17, 2024
  23. May 03, 2024
  24. Apr 19, 2024
  25. Apr 18, 2024
  26. Apr 14, 2024
    • Cory Quammen's avatar
      vtkPythonInterpreter: release GIL in SetupPythonPaths · 85718276
      Cory Quammen authored
      Client applications that initialize Python prior to initializing
      vtkPythonInterpreter and which add Python search paths would hang
      because the GIL was not released on Windows with Python version > 3.8
      after DLL search paths were added. Fixed that by using the default
      vtkPythonScopeGilEnsurer constructor, which defaults to releasing the
      GIL.
      
      (cherry picked from commit 25b17126)
      85718276
  27. Apr 11, 2024
    • Cory Quammen's avatar
      vtkPythonInterpreter: release GIL in SetupPythonPaths · 25b17126
      Cory Quammen authored
      Client applications that initialize Python prior to initializing
      vtkPythonInterpreter and which add Python search paths would hang
      because the GIL was not released on Windows with Python version > 3.8
      after DLL search paths were added. Fixed that by using the default
      vtkPythonScopeGilEnsurer constructor, which defaults to releasing the
      GIL.
      25b17126
  28. Apr 09, 2024
Loading