Opened 10 years ago

Closed 10 years ago

Last modified 7 years ago

#2479 closed bug (Fixed)

module' object has no attribute 'json

Reported by: iZeus83 Owned by: iZeus83
Priority: minor Milestone: 2.x
Component: Web UI Version: develop
Keywords: Cc:

Description

Hi.

It seems deluged works fine but if I launch deluge-web then I see this error in chrome browser:

web.Server Traceback (most recent call last):
exceptions.AttributeError: 'module' object has no attribute 'json'
/usr/lib64/python2.7/site-packages/twisted/web/server.py:156 in process
155            resrc = self.site.getResourceFor(self)
156            self.render(resrc)
157        except:
/usr/lib64/python2.7/site-packages/twisted/web/server.py:191 in render
190        try:
191            body = resrc.render(self)
192        except UnsupportedMethod, e:
/usr/lib/python2.7/site-packages/deluge-1.4.0.dev219-py2.7.egg/deluge/ui/web/server.py:559 in render
558        config = dict([(key, web_config[key]) for key in UI_CONFIG_KEYS])
559        js_config = common.json.dumps(config)
560        return template.render(scripts=scripts, stylesheets=self.stylesheets,
exceptions.AttributeError: 'module' object has no attribute 'json'

I have Centos 7 OS with python 2.7.

Attachments (2)

error json.jpg (146.5 KB ) - added by iZeus83 10 years ago.
error json.zip (121.3 KB ) - added by iZeus83 10 years ago.

Download all attachments as: .zip

Change History (6)

comment:1 by iZeus83, 10 years ago

Owner: set to iZeus83
Status: newassigned

by iZeus83, 10 years ago

Attachment: error json.jpg added

by iZeus83, 10 years ago

Attachment: error json.zip added

comment:2 by Calum, 10 years ago

My bad, fixed now.

comment:3 by Calum, 10 years ago

Resolution: Fixed
Status: assignedclosed

comment:4 by Calum, 7 years ago

Milestone: 2.0.x2.x

Milestone renamed

Note: See TracTickets for help on using tickets.