Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
sqlite3.OperationalError: no such table: oauth_tokens #75
I am using version 2.1.2 of the library on Windows 10 with Python 3.6.0. When I run this code:
I get this stack:
Looking into the sqlite3 database it looks like the oauth_cache_db_version table gets created with a version field. But the field is never populated and oauth_tokens table isn't created at all.
If I add a db.commit() as the last line in the create_table method of the OAuthTokenCache class in tokencache.py it seems to work. The tables and fields are created and when I authorize my account on Flickr the token information gets stored.
I was going to create a PR, but I wasn't sure this was really the correct/best fix. It just happens to be the one that works for me.
added a commit
Jan 21, 2017
Not opening a new thread is fine.