Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Fixes #1016 : Raises VTK not installed #1017
Hi, @Garyfallidis @arokem I closed this issue and reverted back to the previous state as it appears that when packages are not installed the optional_pakage function from utils.optpkg takes care of the import error. Instead of raising an error it returns a TripWire message as the import. Calling any attribute of this TripWire object should raise the ImportError and print the message. Example.
vtk, have_vtk, setup_module = optional_package('vtk') ren = vtk.ren()
Should show the TripWire error. But it doesn't.
fvtk documentation says "# Allow import, but disable doctests if we don't have vtk" I tried with other optional packages like tables in io.dpy and it was giving me the expected TripWire error. I will dig into it. Any comments from your side would be helpful.