Skip to content
This repository has been archived by the owner on Jul 25, 2019. It is now read-only.

update_db script error #16

Closed
mlevans opened this issue Sep 3, 2011 · 1 comment
Closed

update_db script error #16

mlevans opened this issue Sep 3, 2011 · 1 comment

Comments

@mlevans
Copy link
Member

mlevans commented Sep 3, 2011

I'm getting an ExpatError when I try to update the database.

Traceback...

https://open311.sfgov.org/Open311/?jurisdiction_id=sfgov.org&start_date=2011-09-01T00%3A00%3A00Z&end_date=2011-09-02T00%3A00%3A00Z
Traceback (most recent call last):
File "manage.py", line 14, in
execute_manager(settings)
File "/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/django/core/management/init.py", line 438, in execute_manager
utility.execute()
File "/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/django/core/management/init.py", line 379, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/django/core/management/base.py", line 191, in run_from_argv
self.execute(_args, *_options.dict)
File "/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/django/core/management/base.py", line 220, in execute
output = self.handle(_args, *_options)
File "/Users/mlevans/open311dashboard/dashboard/management/commands/update_db.py", line 221, in handle
requests = process_requests(start, end, page, city)
File "/Users/mlevans/open311dashboard/dashboard/management/commands/update_db.py", line 149, in process_requests
requests = parse_requests_doc(requests_stream)
File "/Users/mlevans/open311dashboard/dashboard/management/commands/update_db.py", line 84, in parse_requests_doc
except ExpatError:
NameError: global name 'ExpatError' is not defined

@mlevans
Copy link
Member Author

mlevans commented Sep 3, 2011

This gets solved when you sync the database. Run the following command on the command line: python manage.py syncdb.

@mlevans mlevans closed this as completed Sep 3, 2011
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant