import sqlite3 class class1: def __init__(self): self.print1() def print1(self): con = sqlite3.connect(\'mydb.sqlite\') cur = con.cursor() cur.execute(\"
I just add this line and it works
conn.text_factory = str