-
Notifications
You must be signed in to change notification settings - Fork 349
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
Run the example: sqlite3.OperationalError: unable to open database file #33
Comments
Which set of instructions did you follow? What was the output? |
I followed the "The high-bandwidth, low-computation way": git clone https://github.com/commonsense/conceptnet5
pyvenv-3.4 conceptnet-env
source conceptnet-env/bin/activate
cd conceptnet5
python setup.py develop
make download_db All these instructions run fine (no error messages output). |
Okay, I get it. I left out a step. You either need to set the
I'll add that to the instructions. |
I tried (from the directory containing ln -s `readlink -f data` ~/.conceptnet5
the following code also solved the problem: CONCEPTNET_DATA=~/conceptnet5/data/
export CONCEPTNET_DATA Thank you :) |
I am trying to install conceptnet locally on a mac. I took The high-bandwidth, low-computation way https://github.com/commonsense/conceptnet5/wiki/Running-your-own-copy and did the following:
Then at the last step i am getting the following error : command
output
So i did ignored this step, because i had seen a google discussion which proposed another method (as the link command was not working for me) So from this discussion #33 I tried the following :
But this didnt work, cause when doing the following :
I get the following error:
What should be the OS equivalent of the ln command? Or what else can i do for conceptnet to locate the database file ? |
I didn't know that As for your new problem, I think I see the solution: Python doesn't inherently know that |
Awesome thank you @rspeer. That solved the problem |
I've tried what has been suggested here, both creating the symbolic link and setting the the environment variable CONCEPTNET but none worked. I keep getting the following error: `enb221-lp1:~ fsouza$ python
Any other ideas? |
The problem was resolved by getting the database through the "low bandwidth, high computational way" method:
Hopefully, this will be useful for others that run into the same issue. Cheers! |
I want to run ConceptNet locally on Windows 7. I followed "The high-bandwidth, low-computation way". I extracted the file "conceptnet5_db_5.4.tar.bz2" I got two folders: The code: from conceptnet5.query import lookup
lookup('/c/en/examples') The error:
|
You can set your CONCEPTNET_DATA environment variable to the path that On Mon, 4 Jul 2016 at 11:57 mosynaq notifications@github.com wrote:
|
Hi,
I have followed all the instructions here: https://github.com/commonsense/conceptnet5/wiki/Running-your-own-copy and i try to run the example:
However, i get the following error:
Does anyone know how to fix it?
Thanks :)
The text was updated successfully, but these errors were encountered: