sqlalchemy.exc.ProgrammingError: (sqlite3.ProgrammingError) You must not use 8-bit bytestrings unless you use a text_factory that can interpret 8-bit bytestrings (like text_factory = str). It is highly recommended that you instead just switch your application to Unicode strings.
from sqlalchemy import create_engine, event from sqlalchemy.orm import sessionmaker engine = create_engine('sqlite:///../data.db') @event.listens_for(engine, "connect") def connect(dbapi_connection, connection_rec): dbapi_connection.text_factory = str










