coderholic/django-cities — Issue #22: import gb postal codes fails
Author: mgom
Created: 2011-12-07 09:03:31+00:00
State: open

Hi

I have the following issue when importing GB postal codes

FYI, line is 472 because i use the fork posted by kometes which handle mysql distance workaround ; i don't know if there is any link between this issue and fork version

Thanks

Traceback (most recent call last):
File "./manage.py", line 14, in
execute_manager(settings)
File "/Users/odin/Developer/Projects/Django/MA/venv/lib/python2.7/site-packages/django/core/management/__init__.py", line 438, in execute_manager
utility.execute()
File "/Users/odin/Developer/Projects/Django/MA/venv/lib/python2.7/site-packages/django/core/management/__init__.py", line 379, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/Users/odin/Developer/Projects/Django/MA/venv/lib/python2.7/site-packages/django/core/management/base.py", line 191, in run_from_argv
self.execute(*args, **options.__dict__)
File "/Users/odin/Developer/Projects/Django/MA/venv/lib/python2.7/site-packages/django/core/management/base.py", line 220, in execute
output = self.handle(*args, **options)
File "/Users/odin/Developer/Projects/Django/MA/venv/lib/python2.7/site-packages/django_cities-0.18-py2.7.egg/cities/management/commands/cities.py", line 68, in handle
func()
File "/Users/odin/Developer/Projects/Django/MA/venv/lib/python2.7/site-packages/django_cities-0.18-py2.7.egg/cities/management/commands/cities.py", line 472, in import_postal_code
pc.location = Point(float(items[10]), float(items[9]))
ValueError: could not convert string to float: