- Error message: “‘buffer’ object has no attribute’translate'”
- Scenario: When using peewee insert data, the BlobField field stores the data compressed by zlib compress
- Solution: You need to specify that the version of pymysql is less than 0.6.7, otherwise an error will be reported
- reference
Peewee insert data error:’buffer’ object has no attribute’translate’
Leave a reply