Skip to content
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

Fall back to FTS4 if FTS5 is not available #47

Open
hpk42 opened this issue Jun 16, 2020 · 3 comments
Open

Fall back to FTS4 if FTS5 is not available #47

hpk42 opened this issue Jun 16, 2020 · 3 comments
Labels
enhancement New feature or request

Comments

@hpk42
Copy link

hpk42 commented Jun 16, 2020

got this with version 0.21.1 from pypi. twitter-to-sqlite auth worked but then "twitter-to-sqlite user-timeline USER.db" produced a tracekback ending in "no such module: FTS5".

@simonw
Copy link
Collaborator

simonw commented Jun 17, 2020

That means your version of SQLite is old enough that it doesn't support the FTS5 extension.

Could you share what operating system you're running, and what the output is that you get from running this?

python -c 'import sqlite3; print(sqlite3.connect(":memory:").execute("select sqlite_version()").fetchone()[0])'

I can teach this tool to fall back on FTS4 if FTS5 isn't available.

@simonw simonw added the enhancement New feature or request label Jun 17, 2020
@simonw simonw changed the title sqlite3.OperationalError: no such module: FTS5 Fall back to FTS4 if FTS5 is not available Jun 17, 2020
@hpk42
Copy link
Author

hpk42 commented Jun 17, 2020 via email

@simonw
Copy link
Collaborator

simonw commented Jun 17, 2020

I've now figured out how to compile specific SQLite versions to help replicate this problem: https://github.com/simonw/til/blob/master/sqlite/ld-preload.md

Next step: replicate the problem!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants