Closed yexiajing closed 12 years ago
pymongo and flask are separate Python packages.
You should have gotten pymongo automatically when you ran "python setup.py install". Flask is not automatic because not everyone who develops conceptnet5 needs to run the Web interface; you can get it with "easy_install flask" if you have easy_install, or you can download it from http://pypi.python.org/pypi/Flask.
Note that if you're trying to put up your own copy of the Web interface, you will also need to host a MongoDB and populate it with lots of data, perhaps by importing our JSON datasets. Is this really what you're trying to do? Or are you just looking for an API to the data we already have?
-- Rob
On Wed, Dec 7, 2011 at 8:55 AM, yexiajing reply@reply.github.com wrote:
when I run conceptnet5.graph it says "ImportError: No module named pymongo" and "ImportError: No module named Flask" when run conceptnet5.web_interface.web_interface...
Reply to this email directly or view it on GitHub: https://github.com/commonsense/conceptnet5/issues/11
2011/12/8 Rob Speer < reply@reply.github.com
pymongo and flask are separate Python packages.
You should have gotten pymongo automatically when you ran "python setup.py install". Flask is not automatic because not everyone who develops conceptnet5 needs to run the Web interface; you can get it with "easy_install flask" if you have easy_install, or you can download it from http://pypi.python.org/pypi/Flask.
Thank you for these, I have already have pymongo and flask.
Note that if you're trying to put up your own copy of the Web interface, you will also need to host a MongoDB and populate it with lots of data, perhaps by importing our JSON datasets.
I notice that in the ChangeLog, it says "You need a file called "secrets.sh" in your JSON data directory, containing the database username and password. You also need an equivalent file called "secrets.py" to access the database." I have download a JSON db and unzip it(about 20.3GB in my computer), so how to populate it?
Is this really what you're trying to do? Or are you just looking for an API to the data we already have?
I am a student who are doing some research about semantic search and now are interested in conceptnet5. Is there an API? Or I can just access the data through typing the url like " http://conceptnet5.media.mit.edu/web/concept/en/learn"?
-- Rob
Regards, Erica
On Wed, Dec 7, 2011 at 8:55 AM, yexiajing reply@reply.github.com wrote:
when I run conceptnet5.graph it says "ImportError: No module named pymongo" and "ImportError: No module named Flask" when run conceptnet5.web_interface.web_interface...
Reply to this email directly or view it on GitHub: https://github.com/commonsense/conceptnet5/issues/11
Reply to this email directly or view it on GitHub: https://github.com/commonsense/conceptnet5/issues/11#issuecomment-3052868
Okay, great. If you want to run your own copy of the DB, you could start a MongoDB server and run "mongoimport" on that server to load the JSON files:
mongoimport --upsert --upsertFields uri -d conceptnet -c nodes nodes.json mongoimport --upsert --upsertFields key -d conceptnet -c edges edges.json
There's an API for getting data from nodes; each page in /web/ has a link at the bottom to the corresponding API page whose url starts with /data/. Documentation on this API is at: https://github.com/commonsense/conceptnet5/wiki/API
-- Rob
On Thu, Dec 8, 2011 at 7:56 AM, yexiajing reply@reply.github.com wrote:
2011/12/8 Rob Speer < reply@reply.github.com
pymongo and flask are separate Python packages.
You should have gotten pymongo automatically when you ran "python setup.py install". Flask is not automatic because not everyone who develops conceptnet5 needs to run the Web interface; you can get it with "easy_install flask" if you have easy_install, or you can download it from http://pypi.python.org/pypi/Flask.
Thank you for these, I have already have pymongo and flask.
Note that if you're trying to put up your own copy of the Web interface, you will also need to host a MongoDB and populate it with lots of data, perhaps by importing our JSON datasets.
I notice that in the ChangeLog, it says "You need a file called "secrets.sh" in your JSON data directory, containing the database username and password. You also need an equivalent file called "secrets.py" to access the database." I have download a JSON db and unzip it(about 20.3GB in my computer), so how to populate it?
Is this really what you're trying to do? Or are you just looking for an API to the data we already have?
I am a student who are doing some research about semantic search and now are interested in conceptnet5. Is there an API? Or I can just access the data through typing the url like " http://conceptnet5.media.mit.edu/web/concept/en/learn"?
-- Rob
Regards, Erica
On Wed, Dec 7, 2011 at 8:55 AM, yexiajing reply@reply.github.com wrote:
when I run conceptnet5.graph it says "ImportError: No module named pymongo" and "ImportError: No module named Flask" when run conceptnet5.web_interface.web_interface...
Reply to this email directly or view it on GitHub: https://github.com/commonsense/conceptnet5/issues/11
Reply to this email directly or view it on GitHub: https://github.com/commonsense/conceptnet5/issues/11#issuecomment-3052868
Reply to this email directly or view it on GitHub: https://github.com/commonsense/conceptnet5/issues/11#issuecomment-3061993
when I run conceptnet5.graph it says "ImportError: No module named pymongo" and "ImportError: No module named Flask" when run conceptnet5.web_interface.web_interface...