Opened 10 years ago

Closed 10 years ago

#10008 closed (duplicate)

JSON Serializer throwing tracebacks

Reported by: ErikW Owned by: nobody
Component: Core (Serialization) Version: master
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


I just updated to r9729 and now I'm getting this:

Traceback (most recent call last):

File "./", line 11, in <module>


File "/usr/lib/python2.5/site-packages/django/core/management/", line 340, in execute_manager


File "/usr/lib/python2.5/site-packages/django/core/management/", line 295, in execute


File "/usr/lib/python2.5/site-packages/django/core/management/", line 195, in run_from_argv

self.execute(*args, options.dict)

File "/usr/lib/python2.5/site-packages/django/core/management/", line 221, in execute


File "/usr/lib/python2.5/site-packages/django/core/management/", line 249, in validate

num_errors = get_validation_errors(s, app)

File "/usr/lib/python2.5/site-packages/django/core/management/", line 28, in get_validation_errors

for (app_name, error) in get_app_errors().items():

File "/usr/lib/python2.5/site-packages/django/db/models/", line 128, in get_app_errors


File "/usr/lib/python2.5/site-packages/django/db/models/", line 57, in _populate

self.load_app(app_name, True)

File "/usr/lib/python2.5/site-packages/django/db/models/", line 72, in load_app

mod = import(app_name, {}, {}, models?)

File "/home/lm/ytp/rr/", line 9, in <module>

from rr.utils import scrape

File "/home/lm/ytp/rr/", line 42, in <module>

from django.core.serializers.json import DateTimeAwareJSONEncoder

File "/usr/lib/python2.5/site-packages/django/core/serializers/", line 44, in <module>

class DjangoJSONEncoder(simplejson.JSONEncoder):

AttributeError: 'module' object has no attribute 'JSONEncoder'

Change History (1)

comment:1 Changed 10 years ago by Ivan Giuliani

Resolution: duplicate
Status: newclosed

Duplicate of #10006.

Note: See TracTickets for help on using tickets.
Back to Top