chembl / chembl_webresource_client

Official Python client for accessing ChEMBL API
https://www.ebi.ac.uk/chembl/api/data/docs
Other
359 stars 95 forks source link

When loading DJango website issue with sqlite #91

Open stuchalk opened 3 years ago

stuchalk commented 3 years ago

When firing up my Django website it will not load do to the following error:

Request Method: | GET
-- | --
https://sds.coas.unf.edu/sf/
3.1.5
OperationalError
unable to open database file
/Users/n00002621/PycharmProjects/venv/lib/python3.8/site-packages/requests_cache/backends/storage/dbdict.py, line 74, in connection
/Users/n00002621/PycharmProjects/venv/bin/python
3.8.7
['/Users/n00002621/PycharmProjects/sciflow',  '/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python38.zip',  '/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8',  '/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/lib-dynload',  '/Users/n00002621/PycharmProjects/venv/lib/python3.8/site-packages']
Fri, 22 Jan 2021 11:12:56 +0000

seems to be coming from:

/Users/n00002621/PycharmProjects/venv/lib/python3.8/site-packages/requests_cache/backends/storage/dbdict.py, line 62, in __init__
with self.connection() as con:
fast_save | True
filename | '/Library/WebServer/.chembl_ws_client__0.10.2.sqlite'
options | {}
self | <requests_cache.backends.storage.dbdict.DbPickleDict object at 0x1139946a0>
table_name | 'responses'

When I run the same code in PyCharm there is no similar error. How do I resolve this?