Throw exception if spyc library is not available.
Throw exception if module is not valid.