# python error

17개의 포스트
post-thumbnail

클래스 내부 매서드 정의 시 주의사항

함수 호출 << 의 개념을 정확하게

2023년 8월 10일
·
0개의 댓글
·
post-thumbnail

FileNotFoundError

FileNotFoundError: [Errno 2] No such file or directory

2023년 8월 10일
·
0개의 댓글
·
post-thumbnail

NameError: name 'pickle' is not defined

클래스 내 모듈 정의할 때 NameError

2023년 8월 10일
·
0개의 댓글
·
post-thumbnail

경로 설정 시 주의사항

SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape

2023년 8월 6일
·
1개의 댓글
·
post-thumbnail

변수명과 함수가 겹칠 경우

TypeError: ‘함수명’ object is not callable

2023년 8월 2일
·
0개의 댓글
·
post-thumbnail

파이썬 'Import module could not be resolved'

일반 run code 실행 시 문제

2023년 7월 11일
·
0개의 댓글
·
post-thumbnail

Vscode .py 파일 오류

터미널 문제 (아마도)

2023년 7월 10일
·
0개의 댓글
·

[BUG][python]UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-1: ordinal not in range(128) 에러 해결

Error > UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-1: ordinal not in range(128) 문제 상황

2023년 2월 7일
·
0개의 댓글
·
post-thumbnail

python 뭐 이런 오류까지 올리나 싶은 간단한 오류 모음

어떨게 이런 오류까지....올리나 싶지만 난 기억력이 개똥이라구ㅠ이건 너무너무너무 간단한 오류..torch pre-trained 모델 돌리던 중 cuda 문제로 난 오류인데이 코드 부분에서 cuda / nvidia driver 버전이랑 pytorch 버전이 맞기 않아서

2023년 1월 16일
·
1개의 댓글
·
post-thumbnail

[python] NoSpaceLeftError: No space left on devices.

conda create -n venv python=3.6가상환경을 새로 생성할 때, 용량이 없어 나타나는 귀한 메시지라 기록해둔다.No space저장 공간이 없어서 가상환경에 대한 패키지 다운로드가 불가능하기 때문에 나타나는 메시지다.로컬에 다운로드 받아 놓은 소스코드

2022년 11월 10일
·
0개의 댓글
·
post-thumbnail

python | fabric | solved | PermissionError: [Errno 13] Permission denied

sample_image프로젝트 자동 설치/ 빌드를 위해 python fabric을 이용하여 스크립트를 만들다가 다음과 같은 문제가 발생하였습니다.문제 발생 코드에러 코드원인: 권한 문제과정 \- chmod x+ /home/{u_name}/your_project_nam

2022년 8월 22일
·
0개의 댓글
·
post-thumbnail

mac os npm error Python3

OS 업그레이드 이후 npm 재설치를 했더니 아래와 같은 오류가 나왔다 ..err stack Error: Could not find any Python installation to use여러 문제를 확인 하던중 python의 존재 여부 부터 확인을 해보았다, 아래의 명

2022년 8월 2일
·
0개의 댓글
·
post-thumbnail

My Python Error_zip

코린이인 내가 자주 겪는 에러들...내가 찾아보기 위해서 정리해봤다.

2022년 3월 28일
·
0개의 댓글
·

[Solved][Python3]TypeError: expected str instance, int found

작업 환경 Python3 문제 상황 TypeError: sequence item 0: expected str instance, int found 문제 원인 이렇게 생긴 list를 String 문자열로 치환하기 위해print("".join(result))를 사용했다.

2022년 2월 7일
·
0개의 댓글
·
post-thumbnail

[Solved][Python3] TypeError: not all arguments converted during string formatting

Python3TypeError: not all arguments converted during string formattingresult에 num값을 str로 묶어 문자열로 append(추가)넣어두었는데아래에서 resulti%2로 연산을 시도하려 했다가 만난 Error

2022년 2월 7일
·
0개의 댓글
·
post-thumbnail

Python 14 Error 종류 & 예외처리

"키 없음"주로 딕셔너리 사용시 발생하는 에러없는 Key 값에 접근하려고 할 때 발생이럴 때 get() 메소드를 사용할 수 있다 ① 딕셔너리'키'가 먼저 나온 상황 ② 딕셔너리.get('키')가 먼저 나온 상황①과 ②의 차이점 ①처럼 Bracket Notation으

2021년 9월 29일
·
0개의 댓글
·
post-thumbnail

[Python] 전역변수 정리.

파이썬에서는 다른 scope내에서 전역변수값을 바꾸기위해변수명 = 값 을했으나, 해당 scope 밖에서 전역변수를 확인해보면 전혀 바뀌지않는다.블럭(scope)내에서 전역변수값을 변경하기위해선 global 키워드를 무조건 사용해야한다.신기한점은, 파이썬은 변수의 선언과

2021년 9월 13일
·
0개의 댓글
·