A local political memory with the same data as online versionwas completed and the installation instructions updated.
getting the sources
The developer home of the project was updated to show the git repository where the code is being developed and the data stored. The code is migrating toward a SQL based version but has been developed on couchdb which still is the default version when checking out the master branch.
(10:51:07 AM) staz: you are using the sql branch? (10:51:24 AM) ***staz should recheck the requirement one since they have changed, don't know if bram adapted them (10:52:13 AM) dachary: staz: I'm using http://gitorious.org/memopol2-0 master (10:54:25 AM) staz: hum that's the one using couchdb, we are moving to sql (11:19:13 AM) staz: dachary: all the dev is done on the sql branch, and it's far ahead the couchdb one. So if you want to code the sql branch is better
In order to be able to contribute using the gitorious workflow ( merge requests ) a clone was created and checked out.
setting couchdb based
The installation instructions were run on a Debian GNU/Linux squeeze distribution. The installation of python-pip was missing
sudo apt-get install python-pip
The extra sourcing of .bashrc was removed after it was confirmed to be redundant by staz on IRC. For some reason the numpy fails to install properly from requirements.txt. It is installed independently:
pip install numpy==1.5.1 pip install -r requirements.txt
After completing the instructions the following page could be displayed:
The updated instructions were pushed
loic@bet:~/software/mempol/loics-memopol2-0$ git commit -m 'Add missing installation of python-pip. Install numpy independently to avoid dependency problems' docs/SETUP.txt [master feb3de4] Add missing installation of python-pip. Install numpy independently to avoid dependency problems 1 files changed, 4 insertions(+), 5 deletions(-) loic@bet:~/software/mempol/loics-memopol2-0$ git push Counting objects: 7, done. Delta compression using up to 2 threads. Compressing objects: 100% (4/4), done. Writing objects: 100% (4/4), 486 bytes, done. Total 4 (delta 2), reused 0 (delta 0) => Syncing Gitorious... [OK] To email@example.com:~loic/memopol2-0/loics-memopol2-0.git 6b1e570..feb3de4 master -> master
and a merge request was issued to update the main repository. The complete shell session of the installation is archived.
installing the SQL branch
The sql branch was merged with the latest changes from Bram which fixes issues with the loading of the initial data.
(02:45:55 PM) Bram: dachary: I have pushed a patch, now after the syncdb you can do a migrate and everything should be fine
python manage.py migrate Running migrations for meps: - Migrating forwards to 0001_initial. meps:0001_initial - Loading initial data for meps. Installing json fixture 'initial_data' from '/home/loic/software/mempol/loics-memopol2-0/apps/meps/fixtures'. Installing json fixture 'initial_data' from 'fixtures'. Installed 10924 object(s) from 2 fixture(s) Running migrations for votes: - Migrating forwards to 0002_auto__add_field_score_date__chg_field_recommendation_proposal__del_uni. votes:0001_initial votes:0002_auto__add_field_score_date__chg_field_recommendation_proposal__del_uni - Loading initial data for votes. Installing json fixture 'initial_data' from '/home/loic/software/mempol/loics-memopol2-0/apps/votes/fixtures'. Installing json fixture 'initial_data' from 'fixtures'. Installed 100205 object(s) from 2 fixture(s) Running migrations for mps: - Migrating forwards to 0001_initial. mps:0001_initial - Loading initial data for mps. Installing json fixture 'initial_data' from '/home/loic/software/mempol/loics-memopol2-0/apps/mps/fixtures'. Installing json fixture 'initial_data' from 'fixtures'. Installed 24311 object(s) from 2 fixture(s) Running migrations for reps: - Migrating forwards to 0001_initial. reps:0001_initial - Loading initial data for reps. Installing json fixture 'initial_data' from '/home/loic/software/mempol/loics-memopol2-0/apps/reps/fixtures'. Installing json fixture 'initial_data' from 'fixtures'. Installed 23070 object(s) from 2 fixture(s)
After completing the instructions, loading http://localhost:8080/ and navigating showed the following page:
The installation instructions were updated to include the SQL loading instructions as well as the SETUP.txt patch merged after request described previously.
The companion document HACKING.txt was modified to fix an installation problem with lxml. The setup.py requirements were removed because they are made redundant by the instructions in SETUP.txt and HACKING.txt. The patch was submitted as a merge request against the sql branch of the memopo repository.