Hi folks,

Have been installing MaPit on an fresh ubuntu 10.10 server with python 2.6.

Installation has gone reasonably smoothly (for someone with close to zero
django / python experience).  I thought it was worth quiclkly feeding some
stuff back, and then asking for some help.

*feedback
*
appreciate that some of this might be obvious / covered in the sentence
"pylib/mapit is a standard GeoDjango project" but anyway...

git clone git://github.com/mysociety/mapit.git didn't also clone commonlib.
I worked that out after a little bit of head banging / becoming more familar
with python importing / code syntax (it was telling me there was an import
error in settings.py.  I cloned commonlib seperatley and stuck it where i
thought it should go (git clone
git://github.com/mysociety/commonlib.git~/mapit/commonlib) and that
worked.

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

Is it worth mentioning the requirement for python-memcached?
*
help*

I got to step 5 in the readme without too much trouble, but then hit a wall.

When I try to run

~/mapit/pylib/mapit$ python manage.py import_boundary_line
--control=/home/ubuntu/mapit/pylib/mapit/controls/first `ls
/home/ubuntu/mapit/data/Boundary-Line/*.shp|grep -v high_water`q

I get the following:

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 29, in handle_label
>     __import__(options['control'])
> ImportError: Import by filename is not supported.
>

>From my googling it seems that either call this function like this is
depreciated in 2.6 or I can fix it by altering my python/django config.  Any
ideas on how I can fix this error much appreciated.

Thanks,
Michael


-- 
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

Reply via email to