ImportErrorImportError
An import statement failed to find or load the specified module or name.
EnvironmentErrorAn alias for OSError. Exists for backward compatibility with Python 2.
In Python 3, EnvironmentError is an alias for OSError. Any operating system error can trigger this. Catching OSError is preferred in modern Python code.
Use OSError instead of EnvironmentError in new code. Handle specific subclasses (FileNotFoundError, PermissionError) for targeted error handling. This class exists only for backward compatibility.
ImportErrorAn import statement failed to find or load the specified module or name.
requests.exceptions.TimeoutA request timed out while waiting for a response from the server.
InterruptedErrorA system call was interrupted by an incoming signal.
ChildProcessErrorA child process operation failed.
numpy ValueError: shape mismatchA numpy operation failed because the array shapes are incompatible.
FileExistsErrorAn operation failed because the file or directory already exists.