IndentationErrorIndentationError
The code has incorrect indentation, which is syntactically significant in Python.
FileExistsErrorAn operation failed because the file or directory already exists.
You tried to create a file or directory that already exists, using a function that requires the target not to exist. For example, os.mkdir() when the directory exists, or open() with exclusive creation mode.
Check if the file/directory exists first with os.path.exists(). Use os.makedirs(path, exist_ok=True) for directories. Use a try-except FileExistsError block. Choose a different name or remove the existing file.
IndentationErrorThe code has incorrect indentation, which is syntactically significant in Python.
UnicodeEncodeErrorA Unicode string could not be encoded to the target encoding.
IndexErrorA sequence index is out of the valid range for the given sequence.
BlockingIOErrorAn I/O operation would block on a non-blocking object.
PermissionErrorThe operation is not permitted due to insufficient file system permissions.
subprocess.CalledProcessErrorA subprocess exited with a non-zero return code.