adamant-wolf-51914
03/01/2024, 1:25 PMvtk==9.3.0
cadquery==2.4.0
Just importing those two in the same file:
import cadquery
import vtk
Results in the following error:
ImportError: Initialization failed for vtkWebCore, not compatible with vtkmodules.vtkCommonCore
This happens only when running with pants. Installing the libraries with pip
and running the script works.
Is there a way we can resolve that?gentle-flower-25372
03/01/2024, 2:07 PMadamant-wolf-51914
03/01/2024, 2:09 PMpython_sources()
gentle-flower-25372
03/01/2024, 3:12 PMrefined-addition-53644
03/01/2024, 5:18 PMvtk
but importing vkt
? Is this just a typo here?adamant-wolf-51914
03/01/2024, 5:20 PMgentle-flower-25372
03/01/2024, 5:23 PMpants peek demo.py
pants dependencies --transitive demo.py
adamant-wolf-51914
03/04/2024, 7:54 AMadamant-wolf-51914
03/04/2024, 7:54 AMadamant-wolf-51914
03/04/2024, 7:56 AMadamant-wolf-51914
03/05/2024, 9:38 AMgentle-flower-25372
03/05/2024, 8:08 PMadamant-wolf-51914
03/06/2024, 12:42 PMgentle-flower-25372
03/06/2024, 3:24 PMgentle-flower-25372
03/06/2024, 3:25 PMpython3 -m pip freeze --all
adamant-wolf-51914
03/06/2024, 4:17 PMgentle-flower-25372
03/06/2024, 4:23 PMadamant-wolf-51914
03/06/2024, 4:23 PMgentle-flower-25372
03/06/2024, 4:23 PMpython3 -m pip freeze --all
from pants, but thats what I would try to do to compare them.adamant-wolf-51914
03/06/2024, 4:31 PMadamant-wolf-51914
03/06/2024, 4:32 PMgentle-flower-25372
03/06/2024, 4:42 PMadamant-wolf-51914
03/07/2024, 12:12 PMgentle-flower-25372
03/07/2024, 2:56 PM