DEP: better error message when optional dependencies are not available