Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #1016 : Raises VTK not installed #1017

Closed
wants to merge 0 commits into from

Conversation

quantshah
Copy link
Contributor

Informs the user that VTK is not installed.

@quantshah quantshah closed this Mar 24, 2016
@quantshah quantshah deleted the issue-1016 branch March 24, 2016 10:38
@quantshah quantshah restored the issue-1016 branch March 24, 2016 10:38
@quantshah
Copy link
Contributor Author

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.
Thus if VTK is not installed.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant