Peewee insert data error:’buffer’ object has no attribute’translate’

  • 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


Read More:

Leave a Reply

Your email address will not be published. Required fields are marked *