Actually not sure if it is good to call that an ImportError. You can check the docs here:

http://docs.python.org/2/library/exceptions.html

And find a suitable one. Maybe EnvironmentError or ImportWarning?