OpenUpSA / pmgbilltracker

Bill Tracking Application for the Parliamentary Monitoring Group
Apache License 2.0
5 stars 2 forks source link

error install #45

Closed johnfelipe closed 9 years ago

johnfelipe commented 9 years ago
(virtualenv-pmgbilltracker)notroot@dhcppc4:~/pmgbilltracker/pmgbilltracker$ python runserver_backend.py
Traceback (most recent call last):
  File "runserver_backend.py", line 1, in <module>
    from pmg_backend import app as app_backend
  File "/home/notroot/pmgbilltracker/pmgbilltracker/pmg_backend/__init__.py", line 4, in <module>
    from flask import Flask
ImportError: No module named flask

How fix it

johnfelipe commented 9 years ago

In virtualenv i do this:

pip install Flask

and again:

python runserver_backend.py

but this is new error:

(virtualenv-pmgbilltracker)notroot@dhcppc4:~/pmgbilltracker/pmgbilltracker$ python runserver_backend.py
Traceback (most recent call last):
  File "runserver_backend.py", line 1, in <module>
    from pmg_backend import app as app_backend
  File "/home/notroot/pmgbilltracker/pmgbilltracker/pmg_backend/__init__.py", line 5, in <module>
    from flask.ext.sqlalchemy import SQLAlchemy
  File "/home/notroot/pmgbilltracker/virtualenv-pmgbilltracker/local/lib/python2.7/site-packages/flask/exthook.py", line 87, in load_module
    raise ImportError('No module named %s' % fullname)
ImportError: No module named flask.ext.sqlalchemy
johnfelipe commented 9 years ago

Hi, please tell me correct steps for installation, tnks

petrus-jvrensburg commented 9 years ago

Hi Felipe, it looks like some of the requirements are missing. Once you've activated your virtualenv

source virtualenv-pmgbilltracker/bin/activate

you need to install the requirements:

sudo pip install -r requirements/local.txt
petrus-jvrensburg commented 9 years ago

B.t.w. thanks for having a look at the code. What is the problem that you need to solve?

We wrote it in order to add some views to a really outdated, badly designed website. The site has lots of content on things like parliamentary committee meetings, but it has no way of navigating the dataset to find everything that's related to a particular bill. So that's the only thing that the pmgbilltracker project was built for.

Right now, we're very close to launching a re-design of the site itself, which includes these bill-centric views. So this project will be retired.

johnfelipe commented 9 years ago

you have a date for realease?

petrus-jvrensburg commented 9 years ago

Yes, we're releasing at the end of this month. The code is at https://github.com/Code4SA/pmg-cms-2

On 9 January 2015 at 23:47, felipe notifications@github.com wrote:

you have a date for realease?

— Reply to this email directly or view it on GitHub https://github.com/Code4SA/pmgbilltracker/issues/45#issuecomment-69404608 .