Skip to content
This repository has been archived by the owner on May 5, 2020. It is now read-only.

Object is not iterable #37

Open
digitalsutton opened this issue Mar 12, 2015 · 0 comments
Open

Object is not iterable #37

digitalsutton opened this issue Mar 12, 2015 · 0 comments

Comments

@digitalsutton
Copy link

I'm testing this out on an Ubuntu 14 LTS server (in a virtualenv) and have been able to get the app up and running, but I keep getting an error on the first document found:

TypeError("'DomainSearchResult' object is not iterable",)

Not sure if this is related, but when when I initially tried to start up celery, I was getting what appeared to be a Django error:

NameError: global name 'DoesNotExist' is not defined

So I made a tweak to the opendata/tasks.py file (below). This enabled the app to start without throwing an error, but as soon as it found a document (only seen it return xls files so far), it throws the error above and does not appear to continue.

from django.core.exceptions import ObjectDoesNotExist
#from django.core.exceptions import DoesNotExist

I've tried a few different sites, including census.gov (which has results on your live example), but no dice. Any idea what might be causing this?

Thanks!

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