에러 코드 포털
PythonPython오류 코드

OSError

OSError

다른 표기: EnvironmentError · IOError · WindowsError

파일·네트워크 등 운영체제 관련 작업에서 발생한 예외입니다. errno와 경로를 확인하세요.

This exception is raised when a system function returns a system-related error, including I/O failures such as “file not found” or “disk full” (not for illegal argument types or other incidental errors). The second form of the constructor sets the corresponding attributes, described below. The attributes default to None if not specified. For backwards compatibility, if three arguments are passed, the args attribute contains only a 2-tuple of the first two constructor arguments. The constructor often actually returns a subclass of OSError, as described in OS exceptions below. The particular subclass depends on the final errno value. This behaviour only occurs when constructing OSError directly or via an alias, and is not inherited when subclassing.

해결·진단 링크

문서의 제품·버전·발생 환경이 현재 상황과 일치하는지 먼저 확인하세요.