Closed spac3-monk3y closed 7 years ago
Can you try to import each data type separately until you get the issue again?
So try:
python manage.py cities --import=country
python manage.py cities --import=region
python manage.py cities --import=subregion
python manage.py cities --import=city
python manage.py cities --import=district
python manage.py cities --import=alt_name
python manage.py cities --import=postal_code
and tell us which one/s error out.
From this Django bug:
I found the original source of the problem - I had Google's gdata API installed, which includes a "calendar".
Do you have the Python Google client (gdata) installed?
I have just released version 0.5 of django-cities to PyPI, which fixes a whole bunch of issues. Please try out that version and report back if you continue to have this issue.
I'm fairly certain that this issue is caused by the gdata
module, so I'm closing this issue. If you troubleshoot it back to django-cities, please feel free to reopen this issue. Cheers!
I'm trying to import all cities into database but I keep getting the same error. I'm using Ubuntu 14.04, Python 2.7.6 and Postgres 9.3. I have installed and enabled all GeoDjango for postgres.
Command:
python manage.py cities --import=all
Error: