Solucionado (ver solução)
Solucionado
(ver solução)
1
resposta

Erro ao executar prepara_banco,py

 -------------  Usuários:  -------------
Danilo
Luan Marques
Nico
Traceback (most recent call last):
  File  c:/Users/hugoe/Desktop/Projetos/Flask/flask2/prepara_banco.py", line 45, in <module>
    cursor.executemany(
  File "C:\Users\hugoe\AppData\Local\Programs\Python\Python38-32\lib\site-packages\MySQLdb\cursors.py", line 235, in executemany
    return self._do_execute_many(q_prefix, q_values, q_postfix, args,
  File "C:\Users\hugoe\AppData\Local\Programs\Python\Python38-32\lib\site-packages\MySQLdb\cursors.py", line 264, in _do_execute_many
    rows += self.execute(sql + postfix)
  File "C:\Users\hugoe\AppData\Local\Programs\Python\Python38-32\lib\site-packages\MySQLdb\cursors.py", line 209, in execute
    res = self._query(query)
  File "C:\Users\hugoe\AppData\Local\Programs\Python\Python38-32\lib\site-packages\MySQLdb\cursors.py", line 315, in _query
    db.query(q)
  File "C:\Users\hugoe\AppData\Local\Programs\Python\Python38-32\lib\site-packages\MySQLdb\connections.py", line 239, in query
    _mysql.connection.query(self, query)
MySQLdb._exceptions.OperationalError: (1366, "Incorrect string value: '\\xE7\\xE3o' for column 'categoria' at row 1")
PS C:\Users\hugoe\Desktop\Projetos\Flask\flask2>
1 resposta