You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to run python scikit-surgerytutorial01/sksurgerytutorial01/vtkoverlay_app.py under ubuntu 22.04x64 and got the following error:
Traceback (most recent call last):
File "vtkoverlay_app.py", line 8, in <module>
from sksurgeryutils.common_overlay_apps import OverlayBaseWidget
File "/home/mxochicale/anaconda3/envs/scikit-surgeryvtkVEVE/lib/python3.7/site-packages/sksurgeryutils/common_overlay_apps.py", line 15, in <module>
from sksurgeryvtk.widgets.vtk_overlay_window import VTKOverlayWindow
File "/home/mxochicale/anaconda3/envs/scikit-surgeryvtkVEVE/lib/python3.7/site-packages/sksurgeryvtk/widgets/vtk_overlay_window.py", line 35, in <module>
from vtkmodules.qt.QVTKRenderWindowInteractor import \
ModuleNotFoundError: No module named 'vtkmodules'
It seems that scikit-surgeryutils>=1.2.0 install scikit-surgeryvtk v1.1.0, conflicting with the working version scikit-surgeryvtk v1.0.6.
One way to solve this is to downgraded scikit-surgeryvtk to v1.0.6 in the conda environment:
There are two issues here. vtkmodules is only present in vtk > 9. Your build has installed vtk 8.1.2. So vtkmodules won't be present.
The second issue is that we removed QVTKRenderWindowInteractor.py from our code base at SciKit-Surgery/scikit-surgeryvtk#190, which would have been released at v1.1.0. This seemed like a good idea at the time, but I now realise this will cause problems for people on Ubuntu who can't use vtk 9.x.x.
@mxochicale I have faced the similar issue and solved it using vtk instead of vtkmodules since vtk==8.1.2 have vtk package instead of vtkmodule. In file vtk_overlay_window.py you can use from vtkmodules.qt.QVTKRenderWindowInteractor import
QVTKRenderWindowInteractor. Please try this one.
I am trying to run
python scikit-surgerytutorial01/sksurgerytutorial01/vtkoverlay_app.py
under ubuntu 22.04x64 and got the following error:It seems that scikit-surgeryutils>=1.2.0 install scikit-surgeryvtk v1.1.0, conflicting with the working version scikit-surgeryvtk v1.0.6.
One way to solve this is to downgraded scikit-surgeryvtk to v1.0.6 in the conda environment:
The text was updated successfully, but these errors were encountered: