Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data download in Json format throws error #2

Open
nruggero opened this issue Oct 24, 2013 · 0 comments
Open

Data download in Json format throws error #2

nruggero opened this issue Oct 24, 2013 · 0 comments

Comments

@nruggero
Copy link

Here is the traceback:

Environment:


Request Method: GET
Request URL: http://wholecellkb.stanford.edu/export/Mgenitalium?species=Mgenitalium&model_type=Chromosome&model_type=ChromosomeFeature&model_type=Compartment&model_type=Gene&model_type=Metabolite&model_type=Note&model_type=Parameter&model_type=Pathway&model_type=Process&model_type=ProteinComplex&model_type=ProteinMonomer&model_type=Reaction&model_type=Reference&model_type=Species&model_type=State&model_type=Stimulus&model_type=TranscriptionUnit&model_type=TranscriptionalRegulation&model_type=Type&all_model_types=True&format=json

Django Version: 1.4
Python Version: 2.7.2
Installed Applications:
('django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'django.contrib.admin',
 'django.contrib.admindocs',
 'django_extensions',
 'public',
 'haystack')
Installed Middleware:
('django.middleware.common.CommonMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware')


Traceback:
File "/opt/python2.7.2/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
  111.                         response = callback(request, *callback_args, **callback_kwargs)
File "/home/projects/WholeCellKB/apache/../public/views.py" in exportData
  947.          models = models)
File "/home/projects/WholeCellKB/apache/../public/helpers.py" in render_queryset_to_response
  436.      for obj in queryset.iterator():

Exception Type: AttributeError at /export/Mgenitalium
Exception Value: 'itertools.chain' object has no attribute 'iterator'
macklin added a commit that referenced this issue Oct 25, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant