[open-economics] OpenHDI App Code
rufus.pollock at okfn.org
Tue Aug 23 19:31:26 BST 2011
On 23 August 2011 13:08, <roger202 at msu.edu> wrote:
> Hello Rufus,
> I'm working with the open economics groups on creating a Open Knowledge
> Indicator app similar to the app used on the Human Devolpent Indicator. Guo
> referred me to the bitbucket code that houses the HDI app. I have been
> looking over the code and trying to get it to run (in hopes of modifying it
> for our data) but to no avail. I keep getting hung up with the mongodb.
I think we should replace mongodb with something standard and simple
like sql (and sqlite) but that is a refactor of course!
> The Complete Error Code:
> david at ubuntu:~/Desktop/openhdi$ python openhdi/app.py
> Traceback (most recent call last):
> File "openhdi/app.py", line 12, in <module>
> from openhdi.mongo import get_db
> ImportError: No module named openhdi.mongo
That suggests you haven't actually installed the openhdi python app
itself. Try doing pip install -e . in the openhdi directory (one with
README in it).
> I have all the neccessary modules installed and followed the readme to a
> tee. I installed everything (pymongo, flask, flask-genshi) in a virtualenv
> as requested but I couldn't get mongodb to install in the virtualenv. Is not
> installing the monogodb in the virtualenv causing this even though I have
> the pymongo module installed?
> If there is anything you could do to help, it would be very appreciated.
Definitely. I'm about to go offline unfortunately but am regularly on
#okfn on freenode (see http://okfn.org/contact/).
More information about the open-economics