Two questions regarding install process (renaming sld file and running setup.py)

3 views
Skip to first unread message

Oltmans

unread,
Jan 5, 2012, 4:20:36 PM1/5/12
to districtbuilder-dev
Geetings, I hope you're doing well.

I'm trying to following installation instructions here
https://github.com/PublicMapping/DistrictBuilder/blob/master/docs/INSTALL
and I'm stuck on couple of things and I will really appreciate any
insights on this.

- Do I've to rename every SLD file under /DistrictBuilder/sld?
- At some point in documentation (9.b), it says "create the BARD data
files" what exactly does this mean? Though I've installed R and
following packages
>> install.packages('R2HTML', dependencies=TRUE)
>> install.packages('stringr', dependencies=TRUE)
>> install.packages('ineq', dependencies=TRUE)
>> install.packages('rgeos', repos='http://R-Forge.R-project.org',
dependencies=TRUE)
>> install.packages('BARD', dependencies=TRUE)
>> q('no')

- So I follow other installation instructions upto the point where it
asks me to run the following

sudo ./setup.py ../../docs/config.xsd ../../docs/config.xml

Now when I run the above command I keep getting following errors and
then screen gets stuck. I did make changes to config.xml e.g. database
& geoserver credentials and etc. What could possibly be wrong here?

Screen dump below when I run setup.py.

WARNING: Sync your config file to your app configuration or
use the -f switch with setup to force changes
Didn't change ScoreArgument target; attribute(s) "value" differ(s)
from database configuration.
WARNING: Sync your config file to your app configuration or
use the -f switch with setup to force changes
Didn't change ScoreArgument value; attribute(s) "value" differ(s) from
database configuration.
WARNING: Sync your config file to your app configuration or
use the -f switch with setup to force changes
Didn't change ScoreArgument democratic; attribute(s) "value" differ(s)
from database configuration.
WARNING: Sync your config file to your app configuration or
use the -f switch with setup to force changes
Didn't change ScoreArgument republican; attribute(s) "value" differ(s)
from database configuration.
WARNING: Sync your config file to your app configuration or
use the -f switch with setup to force changes
Didn't change ScoreArgument value; attribute(s) "value" differ(s) from
database configuration.
WARNING: Sync your config file to your app configuration or
use the -f switch with setup to force changes
Didn't change ScoreArgument target; attribute(s) "value" differ(s)
from database configuration.
WARNING: Sync your config file to your app configuration or
use the -f switch with setup to force changes
Didn't change ScoreArgument population; attribute(s) "value" differ(s)
from database configuration.
WARNING: Sync your config file to your app configuration or
use the -f switch with setup to force changes
Didn't change ScoreArgument minority1; attribute(s) "value" differ(s)
from database configuration.
WARNING: Sync your config file to your app configuration or
use the -f switch with setup to force changes
Didn't change ScoreArgument target; attribute(s) "value" differ(s)
from database configuration.
WARNING: Sync your config file to your app configuration or
use the -f switch with setup to force changes
Didn't change ScoreArgument population; attribute(s) "value" differ(s)
from database configuration.
WARNING: Sync your config file to your app configuration or
use the -f switch with setup to force changes
Didn't change ScoreArgument minority1; attribute(s) "value" differ(s)
from database configuration.
WARNING: Sync your config file to your app configuration or
use the -f switch with setup to force changes
Didn't change ScoreArgument target; attribute(s) "value" differ(s)
from database configuration.
WARNING: Sync your config file to your app configuration or
use the -f switch with setup to force changes
Didn't change ScoreArgument population; attribute(s) "value" differ(s)
from database configuration.
WARNING: Sync your config file to your app configuration or
use the -f switch with setup to force changes
Didn't change ScoreArgument minority1; attribute(s) "value" differ(s)
from database configuration.
WARNING: Sync your config file to your app configuration or
use the -f switch with setup to force changes
Didn't change ScoreArgument target; attribute(s) "value" differ(s)
from database configuration.
WARNING: Sync your config file to your app configuration or
use the -f switch with setup to force changes
Didn't change ScoreArgument population; attribute(s) "value" differ(s)
from database configuration.
WARNING: Sync your config file to your app configuration or
use the -f switch with setup to force changes
Didn't change ScoreArgument minority1; attribute(s) "value" differ(s)
from database configuration.
WARNING: Sync your config file to your app configuration or
use the -f switch with setup to force changes
Didn't change ScoreArgument validation; attribute(s) "value" differ(s)
from database configuration.
WARNING: Sync your config file to your app configuration or
use the -f switch with setup to force changes
Didn't change ScoreArgument population; attribute(s) "value" differ(s)
from database configuration.
WARNING: Sync your config file to your app configuration or
use the -f switch with setup to force changes
Didn't change ScoreArgument minority1; attribute(s) "value" differ(s)
from database configuration.
WARNING: Sync your config file to your app configuration or
use the -f switch with setup to force changes
Didn't change ScoreArgument minority2; attribute(s) "value" differ(s)
from database configuration.
WARNING: Sync your config file to your app configuration or
use the -f switch with setup to force changes
Didn't change ScoreArgument range; attribute(s) "value" differ(s) from
database configuration.
WARNING: Sync your config file to your app configuration or
use the -f switch with setup to force changes
Didn't change ScoreArgument democratic; attribute(s) "value" differ(s)
from database configuration.
WARNING: Sync your config file to your app configuration or
use the -f switch with setup to force changes
Didn't change ScoreArgument republican; attribute(s) "value" differ(s)
from database configuration.
WARNING: Sync your config file to your app configuration or
use the -f switch with setup to force changes
Didn't change ScoreArgument value1; attribute(s) "value" differ(s)
from database configuration.
WARNING: Sync your config file to your app configuration or
use the -f switch with setup to force changes
Didn't change ScoreArgument value1; attribute(s) "value" differ(s)
from database configuration.
WARNING: Sync your config file to your app configuration or
use the -f switch with setup to force changes
Didn't change ScoreArgument value1; attribute(s) "value" differ(s)
from database configuration.
WARNING: Sync your config file to your app configuration or
use the -f switch with setup to force changes
Didn't change ScoreArgument min; attribute(s) "value" differ(s) from
database configuration.
WARNING: Sync your config file to your app configuration or
use the -f switch with setup to force changes
Didn't change ScoreArgument max; attribute(s) "value" differ(s) from
database configuration.
WARNING: Sync your config file to your app configuration or
use the -f switch with setup to force changes
Didn't change ScoreArgument validation; attribute(s) "value" differ(s)
from database configuration.
WARNING: Sync your config file to your app configuration or
use the -f switch with setup to force changes
Didn't change ScoreArgument value; attribute(s) "value" differ(s) from
database configuration.
WARNING: Sync your config file to your app configuration or
use the -f switch with setup to force changes
Didn't change ScoreArgument validation; attribute(s) "value" differ(s)
from database configuration.
WARNING: Sync your config file to your app configuration or
use the -f switch with setup to force changes
Didn't change ScoreArgument population; attribute(s) "value" differ(s)
from database configuration.
WARNING: Sync your config file to your app configuration or
use the -f switch with setup to force changes
Didn't change ScoreArgument minority1; attribute(s) "value" differ(s)
from database configuration.
WARNING: Sync your config file to your app configuration or
use the -f switch with setup to force changes
Didn't change ScoreArgument minority2; attribute(s) "value" differ(s)
from database configuration.
WARNING: Sync your config file to your app configuration or
use the -f switch with setup to force changes
Didn't change ScoreArgument target; attribute(s) "value" differ(s)
from database configuration.
WARNING: Sync your config file to your app configuration or
use the -f switch with setup to force changes
Didn't change ScoreArgument min; attribute(s) "value" differ(s) from
database configuration.
WARNING: Sync your config file to your app configuration or
use the -f switch with setup to force changes
Didn't change ScoreArgument max; attribute(s) "value" differ(s) from
database configuration.
WARNING: Sync your config file to your app configuration or
use the -f switch with setup to force changes
Didn't change ScoreArgument validation; attribute(s) "value" differ(s)
from database configuration.
WARNING: Sync your config file to your app configuration or
use the -f switch with setup to force changes
Didn't change ScoreArgument value; attribute(s) "value" differ(s) from
database configuration.
WARNING: Sync your config file to your app configuration or
use the -f switch with setup to force changes


Also, please note that I've not yet configured Apache and Celery as
that seems to be happening down the list in installation
instructions.

Any help will highly be appreciated.

Thanks!

P.S: Not a native speaker so please pardon typos/grammatical
mistakes ;)

David Zwarg

unread,
Jan 5, 2012, 4:40:23 PM1/5/12
to districtb...@googlegroups.com
Hello,

Yes, you will have to rename every SLD file. In an upcoming version (v1.5), we hope to have tools available that will generate SLDs automatically. There are ways to do it, you can look at the django-sld project (https://github.com/azavea/django-sld) if you are not afraid of writing some python code.

The BARD data files are currently optional -- there are some reporting calculators that can do many of the things BARD can do, and they don't require R.  The BARD data files are created by default by setup. You may also create the BARD data files explicitly if you pass the "-b" switch to setup.py.

It appears as though you have run setup.py at least once before (and it loaded many of the prerequisites into the DB), which is why you are seeing the WARNING messages. You can observe everything that setup is doing if you pass it the -v2 switch.  This will output a great deal of messages, so it may be a good idea to do that in one terminal, redirect that output to a file, then in another terminal, tail that log to watch what is happening.

It may be entirely normal that the script is hanging. At that point, it's probably attempting to import the configured shapefiles into the database. This process takes a long time, as a typical state contains (roughly) 250K blocks, 2K tracts, and around 100 counties.

If you have any other questions, you can always email this list, or even try #districtbuilder on irc.freenode.net.

-David
--
David Zwarg, Software Developer

Azavea  |  One Cambridge Center, 6th Floor, Cambridge, MA 02142-1601
dzw...@azavea.com  | T 617.649.2227  | F 215.925.2663
Web azavea.com  |  Blog azavea.com/blogs
Reply all
Reply to author
Forward
0 new messages