Opened 8 years ago

Closed 8 years ago

#7116 closed defect (fixed)

ImportError: No module named simplejson

Reported by: anonymous Owned by: anonymous
Priority: low Component: XmlRpcPlugin
Severity: normal Keywords: simplejson json
Cc: Trac Release: 0.11


I just installed XmlRpcPlugin with easy_install -Z -U then enabled it in trac.ini

Now I've got this error message:

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/Trac-0.11.7-py2.4.egg/trac/web/", line 376, in send_error
  File "/usr/lib/python2.4/site-packages/Trac-0.11.7-py2.4.egg/trac/web/", line 739, in render_template
    data = self.populate_data(req, data)
  File "/usr/lib/python2.4/site-packages/Trac-0.11.7-py2.4.egg/trac/web/", line 639, in populate_data
  File "/usr/lib/python2.4/site-packages/Trac-0.11.7-py2.4.egg/trac/web/", line 195, in __getattr__
    value = self.callbacks[name](self)
  File "/usr/lib/python2.4/site-packages/Trac-0.11.7-py2.4.egg/trac/util/", line 135, in newfunc
    return func_(*(args + fargs), **dict(kwargs, **fkwargs))
  File "/usr/lib/python2.4/site-packages/Trac-0.11.7-py2.4.egg/trac/web/", line 494, in prepare_request
    for category, name, text in contributor.get_navigation_items(req):
  File "/usr/lib/python2.4/site-packages/Trac-0.11.7-py2.4.egg/trac/ticket/", line 163, in get_navigation_items
    if 'TICKET_CREATE' in req.perm:
  File "/usr/lib/python2.4/site-packages/Trac-0.11.7-py2.4.egg/trac/", line 549, in has_permission
    return self._has_permission(action, resource)
  File "/usr/lib/python2.4/site-packages/Trac-0.11.7-py2.4.egg/trac/", line 562, in _has_permission
    decision = PermissionSystem(self.env). \
  File "/usr/lib/python2.4/site-packages/Trac-0.11.7-py2.4.egg/trac/", line 450, in check_permission
  File "/usr/lib/python2.4/site-packages/Trac-0.11.7-py2.4.egg/trac/", line 284, in check_permission
    permissions = PermissionSystem(self.env). \
  File "/usr/lib/python2.4/site-packages/Trac-0.11.7-py2.4.egg/trac/", line 355, in get_user_permissions
    for requestor in self.requestors:
  File "/usr/lib/python2.4/site-packages/Trac-0.11.7-py2.4.egg/trac/", line 70, in extensions
    return filter(None, [component.compmgr[cls] for cls in extensions])
  File "/usr/lib/python2.4/site-packages/Trac-0.11.7-py2.4.egg/trac/", line 207, in __getitem__
    component = cls(self)
  File "/usr/lib/python2.4/site-packages/Trac-0.11.7-py2.4.egg/trac/", line 111, in maybe_init
  File "/usr/lib/python2.4/site-packages/TracXMLRPC-1.1.0_r7916-py2.4.egg/tracrpc/", line 260, in __init__
  File "/usr/lib/python2.4/site-packages/TracXMLRPC-1.1.0_r7916-py2.4.egg/tracrpc/", line 10, in ?
    from tracrpc.json_rpc import *
  File "/usr/lib/python2.4/site-packages/TracXMLRPC-1.1.0_r7916-py2.4.egg/tracrpc/", line 32, in ?
    import simplejson as json
ImportError: No module named simplejson

I've setting this as Severity: critical as it's a use case that fails with the default setup.

Attachments (0)

Change History (2)

comment:1 Changed 8 years ago by anonymous

Owner: changed from osimons to anonymous
Priority: normallow
Severity: criticalnormal
Status: newassigned

OK, so I am using Python 2.4 with Apache. Sorry for the trouble.

comment:2 Changed 8 years ago by osimons

Resolution: fixed
Status: assignedclosed

(In [7941]) XmlRpcPlugin: Json is still optional, but refactoring seems to have borked that. Plugin should now work again even if no Json is available. Closes #7116.

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain anonymous.
The resolution will be deleted.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.