Modify

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#7135 closed defect (fixed)

installation in Trac 0.12 crashes everything

Reported by: fazend Owned by: osimons
Priority: highest Component: XmlRpcPlugin
Severity: blocker Keywords:
Cc: Trac Release: 0.12

Description

This is what I see after upgrade to Trac 0.12:

Traceback (most recent call last):
  File "build/bdist.linux-i686/egg/trac/web/main.py", line 510, in _dispatch_request
    dispatcher.dispatch(req)
  File "build/bdist.linux-i686/egg/trac/web/main.py", line 196, in dispatch
    chosen_handler)
  File "build/bdist.linux-i686/egg/trac/web/main.py", line 343, in _pre_process_request
    chosen_handler = filter_.pre_process_request(req, chosen_handler)
  File "build/bdist.linux-i686/egg/tracsectionedit/web_ui.py", line 36, in pre_process_request
    and 'WIKI_MODIFY' in req.perm:
  File "build/bdist.linux-i686/egg/trac/perm.py", line 548, in has_permission
    return self._has_permission(action, resource)
  File "build/bdist.linux-i686/egg/trac/perm.py", line 562, in _has_permission
    check_permission(action, perm.username, resource, perm)
  File "build/bdist.linux-i686/egg/trac/perm.py", line 449, in check_permission
    perm)
  File "build/bdist.linux-i686/egg/privatetickets/policy.py", line 34, in check_permission
    'TRAC_ADMIN' in perm:
  File "build/bdist.linux-i686/egg/trac/perm.py", line 548, in has_permission
    return self._has_permission(action, resource)
  File "build/bdist.linux-i686/egg/trac/perm.py", line 562, in _has_permission
    check_permission(action, perm.username, resource, perm)
  File "build/bdist.linux-i686/egg/trac/perm.py", line 449, in check_permission
    perm)
  File "build/bdist.linux-i686/egg/trac/perm.py", line 284, in check_permission
    get_user_permissions(username)
  File "build/bdist.linux-i686/egg/trac/perm.py", line 354, in get_user_permissions
    for requestor in self.requestors:
  File "build/bdist.linux-i686/egg/trac/core.py", line 70, in extensions
    return filter(None, [component.compmgr[cls] for cls in extensions])
  File "build/bdist.linux-i686/egg/trac/core.py", line 205, in __getitem__
    component = cls(self)
  File "build/bdist.linux-i686/egg/trac/core.py", line 111, in maybe_init
    init(self)
  File "build/bdist.linux-i686/egg/tracrpc/api.py", line 261, in __init__
    __import__('tracrpc', ['__version__']).__version__))
  File "build/bdist.linux-i686/egg/tracrpc/__init__.py", line 10, in <module>
    #
AttributeError: 'module' object has no attribute 'JsonRpcProtocol'

What to do? When I delete the component - everything works fine.

Attachments (0)

Change History (2)

comment:1 Changed 6 years ago by osimons

  • Resolution set to fixed
  • Status changed from new to closed

(In [7957]) XmlRpcPlugin: Follow-up to r7941. Forgot to redefine __all__ in the module when json was not available, and any attempt to load the name would of course fail. Fixes #7135. Sorry :-)

comment:2 Changed 6 years ago by fazend

Now works fine, thanks!

Add Comment

Modify Ticket

Action
as closed The owner will remain osimons.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.