Consider
try: import someProprietaryModule except ImportError: raise ImportError(\'It appears that is not installed...\')
This can be done like this in Python 2.7 and Python 3:
try: import someProprietaryModule except ImportError as e: raised_error = e if isinstance(raised_error, ImportError): raise ImportError('It appears that is not installed...')