Notice
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
31 |
Tags
- 파이썬
- PYTHON
- SW Expert Academy
- 백준
- Real or Not? NLP with Disaster Tweets
- Baekjoon
- 프로그래머스
- AI 경진대회
- ubuntu
- gs25
- dacon
- 데이콘
- Git
- hackerrank
- 우분투
- Kaggle
- 더현대서울 맛집
- 금융문자분석경진대회
- 코로나19
- github
- programmers
- 맥북
- Docker
- 캐치카페
- ChatGPT
- leetcode
- 자연어처리
- 프로그래머스 파이썬
- 편스토랑 우승상품
- 편스토랑
Archives
- Today
- Total
목록
반응형
AttributeError: 'NoneType' object has no attribute 'encoding' using pymysql 해결방법 (1)
반응형
솜씨좋은장씨
[Python] AttributeError: 'NoneType' object has no attribute 'encoding' using pymysql 해결방법
import pymysql user = 'user' password = 'password' db_host = 'localhost' db_port = 3306 table_name = 'test_table' charset = 'utf-8' db = pymysql.connect(host=db_host, port=db_port, user=user, passwd=password, db=table_name, charset=charset, autocommit=True) 오랜만에 위와 같은 방법으로 pymysql을 활용하여 database에 접근하여 저장되어있는 이미지를 다운로드 받기위해 db 연결을 하려고 하니 AttributeError: 'NoneType' object has no attribute 'encodin..
Programming/Python
2021. 10. 26. 14:57
반응형