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

sqlite3.OperationalError: unable to open database file #2

Closed
molyswu opened this issue Dec 23, 2020 · 1 comment
Closed

sqlite3.OperationalError: unable to open database file #2

molyswu opened this issue Dec 23, 2020 · 1 comment

Comments

@molyswu
Copy link

molyswu commented Dec 23, 2020

Hi,
python extract.py examples/bob_dylan.txt bert-large-cased-bob_dynlan.jsonl --language_model bert-large-cased --use_cuda true
wandb: WARNING W&B installed but not logged in. Run wandb login or set the WANDB_API_KEY env variable.
Traceback (most recent call last):
File "extract.py", line 3, in
from mapper import Map, deduplication
File "language-models-are-knowledge-graphs-pytorch/mapper.py", line 5, in
emb = GenericLookup("entity_word_embedding", save_dir=sqlite_path, table_name="embeddings")
File "anaconda3/lib/python3.6/site-packages/REL/db/generic.py", line 36, in init
self.db = self.initialize_db(path_db, table_name, columns)
File "anaconda3/lib/python3.6/site-packages/REL/db/base.py", line 41, in initialize_db
db = sqlite3.connect(fname, isolation_level=None)
sqlite3.OperationalError: unable to open database file

thanks

@nidharap
Copy link

Check my solution here - #1

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

No branches or pull requests

3 participants