Hey Mathew,
Thanks for the quick response. I am now getting the following error - any
ideas?
~/mapit/pylib/mapit$ ./manage.py import_boundary_line
--control=controls.first `ls ../../data/Boundary-Line/*.shp|grep -v
high_water`
../../data/Boundary-Line/county_electoral_division_region.shp
Buckingham North ED
Traceback (most recent call last):
File "./manage.py", line 11, in <module>
execute_manager(settings)
File
"/usr/local/lib/python2.6/dist-packages/Django-1.2.3-py2.6.egg/django/core/management/__init__.py",
line 438, in execute_manager
utility.execute()
File
"/usr/local/lib/python2.6/dist-packages/Django-1.2.3-py2.6.egg/django/core/management/__init__.py",
line 379, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File
"/usr/local/lib/python2.6/dist-packages/Django-1.2.3-py2.6.egg/django/core/management/base.py",
line 191, in run_from_argv
self.execute(*args, **options.__dict__)
File
"/usr/local/lib/python2.6/dist-packages/Django-1.2.3-py2.6.egg/django/core/management/base.py",
line 220, in execute
output = self.handle(*args, **options)
File
"/usr/local/lib/python2.6/dist-packages/Django-1.2.3-py2.6.egg/django/core/management/base.py",
line 322, in handle
label_output = self.handle_label(label, **options)
File
"/home/ubuntu/mapit/pylib/mapit/areas/management/commands/import_boundary_line.py",
line 110, in handle_label
if m.generation_high and m.generation_high.id < current_generation.id:
AttributeError: 'int' object has no attribute 'id'
On Tue, Nov 23, 2010 at 11:32 AM, Matthew Somerville
<[email protected]>wrote:
> On 23/11/2010 11:04, Michael McAndrew wrote:
>
>> git clone git://github.com/mysociety/mapit.git
>> <http://github.com/mysociety/mapit.git> didn't also clone commonlib.
>>
>
> commonlib is a submodule (hence the little icon on
> https://github.com/mysociety/mapit ); you simply need to do "git submodule
> update --init" to fetch it. I've added that to the README.
>
>
> Is there a step missing between 3 and 4, create a mapit database using
>> the spatial template: e.g. createdb -T template_postgis mapit and create
>> associated user
>>
>
> I guess it could be more explicit, although that instruction is given in
> the Django install documentation I followed :) (Just after the creation of
> the template.) Users are always different for everybody.
>
>
> Is it worth mentioning the requirement for python-memcached?
>>
>
> It's not a requirement, it's just how we have it - you can of course just
> turn off the caching in the Django settings if you don't want/have it. The
> conf/packages file does mention python-memcache.
>
>
> From my googling it seems that either call this function like this is
>> depreciated in 2.6
>>
>
> Sorry, it has to be called with package name, not file name. I've fixed the
> README, something like --control=controls.first should work.
>
> ATB,
> Matthew
>
> _______________________________________________
> Mailing list [email protected]
> Archive, settings, or unsubscribe:
> https://secure.mysociety.org/admin/lists/mailman/listinfo/developers-public
>
--
Michael McAndrew
07817 802299 (mobile)
Third Sector Design Ltd.
http://thirdsectordesign.org
For support, email [email protected]
_______________________________________________
Mailing list [email protected]
Archive, settings, or unsubscribe:
https://secure.mysociety.org/admin/lists/mailman/listinfo/developers-public