-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
syntax error near unexpected token `SQLitePlugin' #25
Comments
I just tried again, this time following exactly (other than my db file name) the example from here:
Now my
I tried then in a practically brand new VM, at least now I got a different error in addition:
Wondering how it could be possible that
Then this led on to a whole bunch of other attempts at playing "guess the correct name" on my main machine as well as the VM, all to no avail (thus far)... I was going to copy and paste some of that but I am running out of time just now, so I will have to check back in later. Any pointers in the meantime would be greatly appreciated, of course. |
The
After that, you can use it. The example in the readme seems to be incomplete. |
Thanks for the tip! I ended up getting it working by following the ToDo example, and just straight calling the regular sqlite3 from the standard library like they do in there. That was enough to get me going with the basics. And there are a lot more examples and things to search for when using that more common terminology out on the 'Net. I am sure I will circle back to the SQLitePlugin at some point when I understand more about the basics of Python and how it works with databases. But right now something I'm sure is useful (somehow) is still in the category of "too much extra layers of complication" for me to grasp at my current low Python wizard level. 😄 I was however overjoyed to actually be able to connect to a database and get some information out of it over a (local) web interface, something that I had been trying to do (on and off) for literally years if not decades. So to say that I am excited at the possibilities is actually quite an understatement. 😄 In other words, this project has already brought me more joy than you can possibly know. So I wanted to thank you again for sharing/maintaining it. 🍻 Point of order, I will leave it up to you whether to close or not, and when, seeing as how it sounds like the Docs might need to be updated? Sorry but I still don't know enough to contribute anything useful there. 🤷♂️ One day... but today is not that day... |
Hi guys!
Thank you very much for creating and sharing this project. I'm really excited about the possibilities.
I got the basics working, however I ran into a problem trying to connect to an sqlite3 database. I suspect my problem revolves around improper scope, naming, or something like that.
By the way, I really appreciate that you guys wrote the basic tutorial leaving out stuff like
app.@route
, etc. and introduce that later on. Personally I find the OO stuff just confusing, and unnecessarily complex for a small project.Anyway, when trying to implement the sqlite plugin, the examples given all revolve around OO type naming. I tried to convert it, even looked at different examples, including the source, but I still could not get it to work. I keep getting variations of the error in the title.
I first tried this way (minimal example):
Then I try this way:
But when I launch my
app.py
I just keep getting variation of:The text was updated successfully, but these errors were encountered: