-
-
Notifications
You must be signed in to change notification settings - Fork 265
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
SQLite Error: no such table. #21
Comments
By default this is present in the config.ini, afaik this indicates an in-memory sqlite database.
Running the script without changing SQLite to a local file-based database results in the error. If I change my engine to what you used above, the bot works as expected.
I don't know enough to diagnose why the in-memory database doesn't work, but changing it to file-based seems to work just fine. Perhaps what you posted should be the default? |
Either way this issue can be closed as it is not a bug. |
I'll leave this open, I want to check why the in-memory database didn't work for you. (Also, if I recall correctly, you need three slashes to set a local file-based db.) |
You are correct, it does require |
I just realized the problem was that in-memory databases persist only for the current run of the program, so Maybe I should change the default, as it is unclear. |
Steps to reproduce:
When issuing /start in Telegram the bot produces with the following error:
Tried running the database generation script and then running the bot, the error persists.
[ubuntu@apollo greed-master]$ python -V
Python 2.7.15rc1
[ubuntu@apollo greed-master]$ python3 -V
Python 3.6.6
The text was updated successfully, but these errors were encountered: