728x90
반응형
SMALL
에러 예시) SyntaxError: EOL while scanning string literalAttributeError: partially initialized module 'random' has no attribute 'sample' (most likely due to a circular import)
에러 원인) 파이썬 파일과 모듈 이름이 같으면 발생하는 에러이다.
(import 하려는 모듈과 같은 이름으로 파이썬 파일을 생성하지 말 것!)
해결 방법) 파일 이름을 수정한다.
728x90
반응형
LIST
'오류' 카테고리의 다른 글
[openai api] openai.error.RateLimitError: Rate limit reached for default-text-davinci-003 (0) | 2023.03.31 |
---|---|
TypeError: Object of type Token is not JSON serialiable (0) | 2022.10.06 |
파이썬 에러 (0) | 2021.01.13 |
파이썬 에러 (0) | 2021.01.13 |
파이썬 에러 (0) | 2020.12.27 |