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

Issue between ete3 3.1.3 and sqlite3 3.49.1 #18

Open
ArnaudBelcour opened this issue Mar 3, 2025 · 1 comment
Open

Issue between ete3 3.1.3 and sqlite3 3.49.1 #18

ArnaudBelcour opened this issue Mar 3, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@ArnaudBelcour
Copy link
Collaborator

There is an incompatibility between ete3 and sqlite3 producing errors like this one:

sqlite3.OperationalError: no such column: "XXX" - should this be a string literal in single-quotes?

I have encountered this issue with sqlite3 version 3.49.1 (version checked with python3 -c "import sqlite3; print(sqlite3.sqlite_version)").

It has been identified (and fix) in a PR in the GitHub repository of ete3: etetoolkit/ete#770

A temporary workaround (if sqlite3 has been installed with conda/mamba) is to downgrade to another version, with command like:

mamba install libsqlite==3.46.1

@ArnaudBelcour ArnaudBelcour added the bug Something isn't working label Mar 3, 2025
@conchoecia
Copy link

conchoecia commented Mar 4, 2025

I ran into the same issue, this is the relevant section of the traceback from a simple query:

    taxid2name = ncbi.get_taxid_translator([9606, 9443])
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/path/to/lib/python3.12/site-packages/ete3/ncbi_taxonomy/ncbiquery.py", line 268, in get_taxid_translator
    result = self.db.execute(cmd)
             ^^^^^^^^^^^^^^^^^^^^
sqlite3.OperationalError: no such column: "9443" - should this be a string literal in single-quotes?

This is my sqlite version:

conda list sqlite

# Name                    Version                   Build  Channel
libsqlite                 3.49.1               hee588c1_1    conda-forge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants