I've created a set of docker containers which can be run with docker-compose that support all the dependencies for geodjango.
However, the tutorial is not working properly, when I run load.run() it fails to save all the shapes. Specifically, it always fails after Mayotte.
This very well could be something I missed in the setup of my containers, but I'm at a loss as for what to check next. Any suggestions would be great. I hope this docker-compose setup will be of general use.
Here's the relevant parts of the output from python manage.py shell
>>> from world import load
>>> load.run()
Saved: Antigua and Barbuda
Saved: Algeria
Saved: Azerbaijan
Saved: Albania
...
.SNIP.
...
Saved: Montenegro
Saved: Mayotte
Failed to save the feature (id: 141) into the model with the keyword arguments:
Traceback (most recent call last):
File "/usr/local/lib/python3.5/site-packages/django/core/management/commands/shell.py", line 69, in handle
self.run_shell(shell=options['interface'])
File "/usr/local/lib/python3.5/site-packages/django/core/management/commands/shell.py", line 61, in run_shell
raise ImportError
ImportError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.5/site-packages/django/contrib/gis/utils/layermapping.py", line 577, in _save
stream.write('%s: %s\n' % ('Updated' if is_update else 'Saved', m))
UnicodeEncodeError: 'ascii' codec can't encode characters in position 7-8: ordinal not in range(128)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "/app/world/load.py", line 28, in run
lm.save(strict=True, verbose=verbose)
File "/usr/local/lib/python3.5/site-packages/django/contrib/gis/utils/layermapping.py", line 627, in save
_save()
File "/usr/local/lib/python3.5/contextlib.py", line 30, in inner
return func(*args, **kwds)
File "/usr/local/lib/python3.5/site-packages/django/contrib/gis/utils/layermapping.py", line 586, in _save
stream.write('%s\n' % kwargs)
UnicodeEncodeError: 'ascii' codec can't encode character '\xc3' in position 135: ordinal not in range(128)