orf / alfred-quip-workflow

Fulltext, local Quip document search
6 stars 3 forks source link

error "No such module: fts5" #1

Open huyingjie opened 7 years ago

huyingjie commented 7 years ago

Thank you for your development of the workflow.

I set api. I used the workflow to search for a term and then got error message: "No such module: fts5"

How to solve it?

orf commented 7 years ago

Hmm, can you run python --version for me? I'd also recommend running brew install sqlite and see if that fixes things.

orf commented 7 years ago

Can you also run:

python -c 'print __import__("sqlite3").version' and python -c 'print __import__("sqlite3").sqlite_version' and show me the output?

I get 2.6.0 and 3.19.3

huyingjie commented 7 years ago
 File "<string>", line 1
    print __import__("sqlite3").version
                   ^
SyntaxError: invalid syntax
orf commented 7 years ago

Oh, your default system python is python 3? That's strange for macos

Are you running in a virtualenv? Can you run those commands with /usr/bin/python instead of python? This is the version Alfred uses.

huyingjie commented 6 years ago

I am new to python.

Do you mean /usr/bin/python quip.py --setkey "{query}" and /usr/bin/python quip.py "{query}"

orf commented 6 years ago

Hey @huyingjie, not quite. Try running:

/usr/bin/python --version

/usr/bin/python -c 'print __import__("sqlite3").version

/usr/bin/python -c 'print __import__("sqlite3").sqlite_version'

Just out of interest, you have installed the Alfred workflow and are running it through that, right?

huyingjie commented 6 years ago
orf commented 6 years ago

Ahh, that's the difference. My sqlite_version is 3.21.0.

Can you run brew upgrade sqlite? That will fix the issue you are experiencing. If you're not using Homebrew right now you can get it here: https://brew.sh/

If you can do this and confirm it works I will add something into the readme. Sorry about this!

huyingjie commented 6 years ago

I run brew upgrade sqlite. The error still exists.

orf commented 6 years ago

Can you run brew link sqlite as well?

orf commented 6 years ago

Sorry, brew link sqlite --force

huyingjie commented 6 years ago
Linking /usr/local/Cellar/sqlite/3.21.0... 
Error: Could not symlink lib/pkgconfig/sqlite3.pc
/usr/local/lib/pkgconfig is not writable.
orf commented 6 years ago

Ok, last question: Are you on the latest MacOS release? Click About This Mac and tell me what version? According [to this page](https://github.com/yapstudios/YapDatabase/wiki/SQLite-version-(bundled-with-OS) you might be on 10.12

huyingjie commented 6 years ago

v 10.12.6

orf commented 6 years ago

Ahh, thank you. Ok, so this module uses a feature of Sqlite that requires MacOS 10.13. I can try and add some limited support for 10.12 soon :)

Thank you for your diagnostics!

huyingjie commented 6 years ago

Thank you.