Feb-20-2017, 06:52 PM
(Feb-20-2017, 06:44 PM)snippsat Wrote: Use something that is maintained and updated like PyMySQL.
Quote: I'm trying to develop an app to run on the Raspberry PI with QML, Python, and MySQLFor Raspberry PI i would have used something simpler,
like SQLite(build into Python), dataset that i have a tutorial about here.
I started out with SQLite, but ran into an issue of not being able to specify a previously created SQL database from QML. I need to be able to update my database in my Python script and read values in QML and vice versa. I posted this question on the Qt forums and was told there isn't a way to do this. https://forum.qt.io/topic/76166/location...e-database SQLite would be much simpler like you said.
I will take a look at PyMySQL. Thanks for the reference. For my own knowledge I would still like to figure out what's wrong with my script in case I run into anything like it again.