Skip to content

Instantly share code, notes, and snippets.

View wboykinm's full-sized avatar

Bill Morris wboykinm

View GitHub Profile
@wboykinm
wboykinm / valid.xml
Created September 20, 2012 17:15
validation tag
<Validation>
<Criteria legislativebodyref="council">
<Criterion id="council-assigned" name="AllBlocksAssigned - Council" description="">
<Score ref="plan_all_blocks_assigned" />
</Criterion>
</Criteria>
</Validation>
@wboykinm
wboykinm / setup.log
Created September 20, 2012 17:18
log
The data does not conform to the provided schema.
../../docs/config.xml:118:0:ERROR:SCHEMASV:SCHEMAV_ELEMENT_CONTENT: Element 'LegislativeBodies': This element is not expected. Expected is ( Description ).
../../docs/config.xml:135:0:ERROR:SCHEMASV:SCHEMAV_ELEMENT_CONTENT: Element 'Regions': This element is not expected. Expected is one of ( Templates, Project ).
../../docs/config.xml:51:0:ERROR:SCHEMASV:SCHEMAV_CVC_IDC: Element 'ScoreDisplay': No match found for key-sequence ['ward'] of keyref 'ScoreDisplayLegislativeBody'.
Configuration could not be validated.
@wboykinm
wboykinm / config.sql
Created September 20, 2012 17:36
db config
-- Role: "publicmapping"
-- DROP ROLE publicmapping;
CREATE ROLE publicmapping LOGIN
ENCRYPTED PASSWORD 'md50eb21ab7f658fe8dba10a343d987eed3'
NOSUPERUSER INHERIT CREATEDB NOCREATEROLE;
-- Database: publicmapping1
@wboykinm
wboykinm / pip.log
Created September 20, 2012 18:07
pip attempt
root@ip-10-80-85-229:/projects/DistrictBuilder# pip install -r requirements.txt
Downloading/unpacking git+git://github.com/dzwarg/modestmaps-py.git@db-mod_1.4 (from -r requirements.txt (line 10))
Cloning Git repository git://github.com/dzwarg/modestmaps-py.git to /tmp/pip-sagZGH-build
Running setup.py egg_info for package from git+git://github.com/dzwarg/modestmaps-py.git@db-mod_1.4
Downloading/unpacking pysal==1.3.0 (from -r requirements.txt (line 12))
Downloading pysal-1.3.0.tar.gz (4.5Mb): 4.5Mb downloaded
Running setup.py egg_info for package pysal
Traceback (most recent call last):
File "<string>", line 14, in <module>
File "/projects/DistrictBuilder/build/pysal/setup.py", line 8, in <module>
@wboykinm
wboykinm / settings.py
Created September 20, 2012 19:04
settings
"""
Configuration settings for The Public Mapping Project
This file contains application settings for the web application,
The Public Mapping Project. This file requires a local configuration
file that contains site- and machine-specific configuration settings
in /projects/PublicMapping/local/settings.ini
This file is part of The Public Mapping Project
https://github.com/PublicMapping/
@wboykinm
wboykinm / config.xml
Created September 20, 2012 19:34
db config
<!-- The application element that contains all other elements. -->
<DistrictBuilder>
<!-- Define legislative bodies referenced in the system. -->
<LegislativeBodies>
<!-- A Legislative body has an ID (for referencing in GeoLevel
definitions later), a name, and a label for plan items
("District" for Council, etc) -->
<LegislativeBody id="council" name="Burlington City Council" short_label="%(district_id)s" long_label="Ward %(district_id)s" maxdistricts="7" sort_key="1"/>
</LegislativeBodies>
@wboykinm
wboykinm / setup.log
Created September 20, 2012 20:10
db setup
ERROR creating BARD template files.
Traceback (most recent call last):
File "/projects/DistrictBuilder/django/publicmapping/redistricting/management/commands/setup.py", line 245, in handle
self.create_report_templates(store.data)
File "/projects/DistrictBuilder/django/publicmapping/redistricting/management/commands/setup.py", line 637, in create_report_templates
xslt_path = settings.BARD_TRANSFORM
File "/usr/local/lib/python2.6/dist-packages/django/utils/functional.py", line 185, in inner
return func(self._wrapped, *args)
AttributeError: 'Settings' object has no attribute 'BARD_TRANSFORM'
@wboykinm
wboykinm / setupv.log
Created September 20, 2012 20:39
setup -v
root@ip-10-80-85-229:/projects/DistrictBuilder/django/publicmapping# ./setup.py -V -v2 ../../docs/config.xsd ../../docs/config.xml
Validated config.
Generated django settings for publicmapping.
Generated django settings for reporting.
/usr/local/lib/python2.6/dist-packages/django/utils/translation/__init__.py:63: DeprecationWarning: Translations in the project directory aren't supported anymore. Use the LOCALE_PATHS setting instead.
DeprecationWarning)
Error importing configuration.
Traceback (most recent call last):
File "/projects/DistrictBuilder/django/publicmapping/redistricting/management/commands/setup.py", line 166, in handle
all_ok = all_ok * self.import_prereq(config, force)
@wboykinm
wboykinm / dbirc.log
Created September 20, 2012 21:12
db irc log
[09:51:31] --> wboykinm ([email protected]) has joined #districtbuilder
[09:51:32] *** Mode #districtbuilder +nst by wolfe.freenode.net
[09:51:32] * Channel #districtbuilder created on Thu Sep 13 08:52:48 2012
[10:43:57] <wboykinm> zwarg: got a sec for a config Q?
[10:46:36] <zwarg> in a few min, plz hold
[10:48:27] <wboykinm> zwarg: no worries. thanks
[11:03:56] <zwarg> wboykinm: okay, fire away
[11:04:40] <wboykinm> zwarg: so here are my verbose setup.py errors: http://flic.kr/p/dciSpf
[11:04:54] <wboykinm> zwarg: which tells me i'm trying to use too much stuff from the SC template
[11:05:08] <wboykinm> zwarg: what's the absolute bare minimum tag requirement to get it running?
@wboykinm
wboykinm / publicmapping.apache
Created September 21, 2012 04:11
DB apache config
# Copyright 2010 Micah Altman, Michael McDonald
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,