Comments - Python Error unhandled SystemError on execution of a SQL statement
Content reproduced on this site is the property of its respective owners,
and this content is not reviewed in advance by MariaDB. The views, information and opinions
expressed by this content do not necessarily represent those of MariaDB or any other party.
This might be due to parameter compatibility issues after reinstalling your environment. Try replacing ? with %s in the SQL query, as MariaDB often uses %s for parameterized queries. Also, make sure data is passed as a tuple with two values; otherwise, it can cause an error. Another option could be to test an earlier version of the MariaDB connector, as sometimes the latest releases introduce unexpected changes.