import of the vtk module fails for python 3.4
I built the library using VTK_PYTHON_VERSION=3.4 and VTK_WRAP_PYTHON=ON. The build succeded, but trying to import the vtk module returns the following error:
import vtk Traceback (most recent call last): File "", line 1, in File "/home/matteo/vtk/build/lib/python3.4/site-packages/vtk.py", line 31, in all_m = importlib.util.module_from_spec(all_spec) AttributeError: 'module' object has no attribute 'module_from_spec'
from here: https://docs.python.org/3/library/importlib.html
I understand that indeed importlib.util.module_from_spec is only available for python>=3.5. hope this helps,