soft dependency for pysal
some simple error handling