VTK/Python 3.8.1 unable to import vtkRenderingQt
Python 3.8.1 may have problems regarding VTK; however these may also be Python/Windows dll issues.
- For Python 3.7.6 everything is Ok.
- For Python 3.8.1
- If you exclude the Qt build everything is Ok for vtkpython or running python from the command line. However Pycharm fails to load vtkCommonCore.
- If you include the Qt build, vtkpython fails to load vtkRenderingQt and Pycharm fails to load vtkCommonCore.
I ran dependencies
and I can't see any indication of missing dlls. Attached is the command line output the environment (VTK) is Python 3.7.6 and (VTK1) is Python 3.8.1 cmd_output.zip
Everything is Ok for Python 3.7.6 and vtkpython fails in Python 3.8.1 when vtkRenderingQt is included. Also in Python 3.8.1 Pycharm fails with the same error irrespective of whether vtkRenderingQt is included or not. The only thing I can see is that vtkRenderingQt loads the external Qt dlls. Maybe Pycharm sees the VTK dlls as one step removed?
I believe my paths are correct as evidenced that Python 3.7.6 works Ok.
Note: In Pycharm when vtkCommonCore
fails to import the logic in vtkmodules/__init__.py
tries to do a static load, hence the reference to _vtkmodules_static
in the attached file.