Skip to content

Unable to use caching in BioDBNet #216

@JoshLoecker

Description

@JoshLoecker

Hello,
I have an example below

from bioservices import BioDBNet

net = BioDBNet(verbose=True, cache=True)

And I receive the following output

INFO    [bioservices.BioDBNet:363]:  Initialising BioDBNet service (REST)
INFO    [bioservices.BioDBNet:505]:  Using local cache /Users/joshl/Library/Application Support/bioservices/BioDBNet_bioservices_db
CRITICAL[bioservices.BioDBNet:711]:  You must install the python package: sqlite3
CRITICAL[bioservices.BioDBNet:712]:  Query unsuccesful. Maybe too slow response.
    Consider increasing it with settings.TIMEOUT attribute 30

However, the sqlite3 package is a standard installation in Python3. I am able to do the following without an error

> python3
Python 3.10.4 | packaged by conda-forge | (main, Mar 24 2022, 17:45:10) [Clang 12.0.1 ] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import sqlite3
>>> sqlite3.version
'2.6.0'
>>>

Is there an additional package I need to install in order to use cache=True with BioDBNet?

Thanks for any help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions