hi, i was trying to build vtk with QT and python wrappings turned on. The build completed successfully and even installation, but when i do import vtk in python i get error
Traceback (most recent call last):
File “/anaconda3/lib/python3.6/site-packages/vtkmodules/vtkRenderingQt.py”, line 5, in
from .vtkRenderingQtPython import *
ImportError: dlopen(/anaconda3/lib/python3.6/site-packages/vtkmodules/vtkRenderingQtPython.so, 2): Library not loaded: @rpath/QtWidgets.framework/Versions/5/QtWidgets
Referenced from: /usr/local/lib/libvtkRenderingQt-8.2.1.dylib
Reason: Incompatible library version: libvtkRenderingQt-8.2.1.dylib requires version 5.12.0 or later, but QtWidgets provides version 5.11.0During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/Users/abhishek/Documents/python/spectre-v5/Spectre.py”, line 14, in
from controllers.ScanController import ScanController
File “/Users/abhishek/Documents/python/spectre-v5/controllers/ScanController.py”, line 6, in
import vtk
File “/anaconda3/lib/python3.6/site-packages/vtk.py”, line 32, in
all_spec.loader.exec_module(all_m)
File “/anaconda3/lib/python3.6/site-packages/vtkmodules/all.py”, line 100, in
from .vtkRenderingQt import *
File “/anaconda3/lib/python3.6/site-packages/vtkmodules/vtkRenderingQt.py”, line 9, in
from vtkRenderingQtPython import *
ModuleNotFoundError: No module named ‘vtkRenderingQtPython’
how can i fix this problem?
Thanks