Modify ↓
Opened 15 years ago
Closed 15 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 |
Description
I just installed XmlRpcPlugin with easy_install -Z -U http://trac-hacks.org/svn/xmlrpcplugin/trunk 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/api.py", line 376, in send_error 'text/html') File "/usr/lib/python2.4/site-packages/Trac-0.11.7-py2.4.egg/trac/web/chrome.py", 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/chrome.py", line 639, in populate_data d['chrome'].update(req.chrome) File "/usr/lib/python2.4/site-packages/Trac-0.11.7-py2.4.egg/trac/web/api.py", 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/compat.py", 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/chrome.py", 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/web_ui.py", 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/perm.py", 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/perm.py", line 562, in _has_permission decision = PermissionSystem(self.env). \ File "/usr/lib/python2.4/site-packages/Trac-0.11.7-py2.4.egg/trac/perm.py", line 450, in check_permission perm) File "/usr/lib/python2.4/site-packages/Trac-0.11.7-py2.4.egg/trac/perm.py", line 284, in check_permission permissions = PermissionSystem(self.env). \ File "/usr/lib/python2.4/site-packages/Trac-0.11.7-py2.4.egg/trac/perm.py", 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/core.py", 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/core.py", line 207, in __getitem__ component = cls(self) File "/usr/lib/python2.4/site-packages/Trac-0.11.7-py2.4.egg/trac/core.py", line 111, in maybe_init init(self) File "/usr/lib/python2.4/site-packages/TracXMLRPC-1.1.0_r7916-py2.4.egg/tracrpc/api.py", line 260, in __init__ self.env.systeminfo.append(('RPC', File "/usr/lib/python2.4/site-packages/TracXMLRPC-1.1.0_r7916-py2.4.egg/tracrpc/__init__.py", line 10, in ? from tracrpc.json_rpc import * File "/usr/lib/python2.4/site-packages/TracXMLRPC-1.1.0_r7916-py2.4.egg/tracrpc/json_rpc.py", 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 15 years ago by
Owner: | changed from osimons to anonymous |
---|---|
Priority: | normal → low |
Severity: | critical → normal |
Status: | new → assigned |
comment:2 Changed 15 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
(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.
Note: See
TracTickets for help on using
tickets.
OK, so I am using Python 2.4 with Apache. Sorry for the trouble.