Modify

Opened 16 years ago

Closed 16 years ago

#2760 closed defect (invalid)

Cannot find an implementation of the "IPasswordStore" interface named ""

Reported by: anonymous Owned by: Catalin BALAN
Priority: normal Component: UserManagerPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

Oops…
Trac detected an internal error:

AttributeError: Cannot find an implementation of the "IPasswordStore" interface named "".  Please update the option account-manager.password_store in trac.ini.

If you think this should work you can reproduce the problem, you should consider reporting this to the Trac team.

Before you do that, though, please first try searching for similar issues, as it is quite likely that this problem has been reported before. For questions about installation and configuration of Trac, please try the mailing list instead of filing a ticket.

Otherwise, please ==== How to Reproduce ==== While doing a GET operation on `/admin/general/user_management`, Trac issued an internal error. ''(please provide additional details here)'' Request parameters: {{{ {'cat_id': u'general', 'panel_id': u'user_management', 'path_info': None} }}} ==== System Information ==== || '''Trac''' || `0.11dev-r6639` || || '''Python''' || `2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit (Intel)]` || || '''setuptools''' || `0.6c7` || || '''SQLite''' || `3.3.4` || || '''pysqlite''' || `2.3.2` || || '''Genshi''' || `0.4.4` || || '''Pygments''' || `0.8.1` || ==== Python Traceback ==== {{{ Traceback (most recent call last): File "e:\python25\lib\site-packages\trac-0.11dev_r6639-py2.5 i18n.egg\trac\web\main.py", line 435, in _dispatch_request dispatcher.dispatch(req) File "e:\python25\lib\site-packages\trac-0.11dev_r6639-py2.5 i18n.egg\trac\web\main.py", line 226, in dispatch content_type) File "e:\python25\lib\site-packages\trac-0.11dev_r6639-py2.5 i18n.egg\trac\web\chrome.py", line 708, in render_template return stream.render(method, doctype=doctype) File "e:\python25\lib\site-packages\genshi-0.4.4-py2.5.egg\genshi\core.py", line 154, in render return encode(generator, method=method, encoding=encoding) File "e:\python25\lib\site-packages\genshi-0.4.4-py2.5.egg\genshi\output.py", line 45, in encode output = u''.join(list(iterator)) File "e:\python25\lib\site-packages\genshi-0.4.4-py2.5.egg\genshi\output.py", line 274, in __call__ for kind, data, pos in stream: File "e:\python25\lib\site-packages\genshi-0.4.4-py2.5.egg\genshi\output.py", line 519, in __call__ for kind, data, pos in stream: File "e:\python25\lib\site-packages\genshi-0.4.4-py2.5.egg\genshi\output.py", line 679, in __call__ for kind, data, pos in chain(stream, [(None, None, None)]): File "e:\python25\lib\site-packages\genshi-0.4.4-py2.5.egg\genshi\output.py", line 459, in __call__ for ev in stream: File "e:\python25\lib\site-packages\genshi-0.4.4-py2.5.egg\genshi\core.py", line 212, in _ensure for event in stream: File "e:\python25\lib\site-packages\genshi-0.4.4-py2.5.egg\genshi\core.py", line 212, in _ensure for event in stream: File "e:\python25\lib\site-packages\trac-0.11dev_r6639-py2.5 i18n.egg\trac\web\chrome.py", line 760, in _strip_accesskeys for kind, data, pos in stream: File "e:\python25\lib\site-packages\genshi-0.4.4-py2.5.egg\genshi\core.py", line 212, in _ensure for event in stream: File "e:\python25\lib\site-packages\trac-0.11dev_r6639-py2.5 i18n.egg\trac\web\chrome.py", line 749, in _generate for kind, data, pos in stream: File "e:\python25\lib\site-packages\genshi-0.4.4-py2.5.egg\genshi\template\markup.py", line 252, in _include for event in stream: File "e:\python25\lib\site-packages\genshi-0.4.4-py2.5.egg\genshi\template\markup.py", line 322, in _match content = list(self._include(content, ctxt)) File "e:\python25\lib\site-packages\genshi-0.4.4-py2.5.egg\genshi\template\markup.py", line 252, in _include for event in stream: File "e:\python25\lib\site-packages\genshi-0.4.4-py2.5.egg\genshi\template\markup.py", line 297, in _match for event in stream: File "e:\python25\lib\site-packages\genshi-0.4.4-py2.5.egg\genshi\template\markup.py", line 286, in _strip event = stream.next() File "e:\python25\lib\site-packages\genshi-0.4.4-py2.5.egg\genshi\template\markup.py", line 242, in _exec for event in stream: File "e:\python25\lib\site-packages\genshi-0.4.4-py2.5.egg\genshi\template\base.py", line 421, in _eval result = data.evaluate(ctxt) File "e:\python25\lib\site-packages\genshi-0.4.4-py2.5.egg\genshi\template\eval.py", line 136, in evaluate return eval(self.code, _globals, {'data': data}) File "C:\Documents and Settings\Administrator\Application Data\Python-Eggs\tracusermanagerplugin-0.2-py2.5.egg-tmp\tracusermanager\templates\admin_um.html", line 37, in <Expression u'cell_dict.render_method(cell_dict.name, user)'> <th align="left" py:for="cell_dict in sorted(user_manager.cells, lambda x,y:x['order']-y['order'])" title="${cell_dict.label}">${cell_dict.render_method(cell_dict.name, user)}</th> File "build\bdist.win32\egg\tracusermanager\account\admin_um.py", line 66, in render_userlist_cell return AccountManager(self.env).has_user(user.username) and 'Account Manager' or ' ' File "build\bdist.win32\egg\acct_mgr\api.py", line 95, in has_user return self.password_store.has_user(user) File "build\bdist.win32\egg\acct_mgr\api.py", line 120, in password_store return self._password_store File "e:\python25\lib\site-packages\trac-0.11dev_r6639-py2.5 i18n.egg\trac\config.py", line 464, in __get__ self.section, self.name)) AttributeError: Cannot find an implementation of the "IPasswordStore" interface named "". Please update the option account-manager.password_store in trac.ini. }}} a new ticket at the Trac project site, where you can describe the problem and explain how to reproduce it.
Python Traceback
Most recent call last:

    * File "C:\Documents and Settings\Administrator\Application Data\Python-Eggs\tracusermanagerplugin-0.2-py2.5.egg-tmp\tracusermanager\templates\admin_um.html", line 37, in <Expression u'cell_dict.render_method(cell_dict.name, user)'>
      Code fragment:
        32. <tbody>
        33. <py:for each="user in users">
        34. <tr id="um_user_${user.username}">
        35. <th rowspan="${(user_manager.user and user_manager.user.username==user.username) and '2' or None}"><img src="${href.chrome('tracusermanager')+'/img/user.png'}" /></th>
        36. <th rowspan="1" valign="top" align="left" ><a href="${panel_href(user.username, user_manager.default_panel)}#um_user_${user.username}" class="expander${(user_manager.user and user_manager.user.username==user.username) and '_open' or ''}">${user.username}</a></th>
        37. <th align="left" py:for="cell_dict in sorted(user_manager.cells, lambda x,y:x['order']-y['order'])" title="${cell_dict.label}">${cell_dict.render_method(cell_dict.name, user)}</th>
        38. <th align="left" >
        39. <form method="POST" action="${panel_href()}">
        40. <input type="hidden" name="um_deleteuser_username" value="$user.username"/>
        41. <input type="submit" name="um_user_delete" value="Remove"/>
        42. </form>
      Local variables:
      Name	Value
      data 	[{'cell_dict': {'order': 3, 'render_method': <bound method ...
    * File "build\bdist.win32\egg\tracusermanager\account\admin_um.py", line 66, in render_userlist_cell
      Local variables:
      Name	Value
      cell_name 	'type'
      self 	<tracusermanager.account.admin_um.AccountUserManagerPanel object at ...
      user 	<tracusermanager.api.User object at 0x0168E5B0>
    * File "build\bdist.win32\egg\acct_mgr\api.py", line 95, in has_user
      Local variables:
      Name	Value
      self 	<acct_mgr.api.AccountManager object at 0x0168EC70>
      user 	u'i'
    * File "build\bdist.win32\egg\acct_mgr\api.py", line 120, in password_store
      Local variables:
      Name	Value
      fmt 	u''
      self 	<acct_mgr.api.AccountManager object at 0x0168EC70>
    * File "e:\python25\lib\site-packages\trac-0.11dev_r6639-py2.5 i18n.egg\trac\config.py", line 464, in __get__
      Code fragment:
       459. return impl
       460. raise AttributeError('Cannot find an implementation of the "%s" '
       461. 'interface named "%s". Please update the option '
       462. '%s.%s in trac.ini.'
       463. % (self.xtnpt.interface.__name__, value,
       464. self.section, self.name))
       465.  
       466.  
       467. class OrderedExtensionsOption(ListOption):
       468. """A comma separated, ordered, list of components implementing `interface`.
       469. Can be empty.
      Local variables:
      Name	Value
      instance 	<acct_mgr.api.AccountManager object at 0x0168EC70>
      owner 	<class 'acct_mgr.api.AccountManager'>
      self 	<ExtensionOption [account-manager] "password_store">
      value 	u''

File "C:\Documents and Settings\Administrator\Application Data\Python-Eggs\tracusermanagerplugin-0.2-py2.5.egg-tmp\tracusermanager\templates\admin_um.html", line 37, in <Expression u'cell_dict.render_method(cell_dict.name, user)'>
  <th align="left" py:for="cell_dict in sorted(user_manager.cells, lambda x,y:x['order']-y['order'])" title="${cell_dict.label}">${cell_dict.render_method(cell_dict.name, user)}</th>
File "build\bdist.win32\egg\tracusermanager\account\admin_um.py", line 66, in render_userlist_cellFile "build\bdist.win32\egg\acct_mgr\api.py", line 95, in has_userFile "build\bdist.win32\egg\acct_mgr\api.py", line 120, in password_storeFile "e:\python25\lib\site-packages\trac-0.11dev_r6639-py2.5 i18n.egg\trac\config.py", line 464, in __get__
  self.section, self.name))

Attachments (0)

Change History (3)

comment:1 Changed 16 years ago by anonymous

Trac Release: 0.100.11

comment:2 Changed 16 years ago by anonymous

support Add Subject to Group?

comment:3 Changed 16 years ago by Catalin BALAN

Resolution: invalid
Status: newclosed

This issue is related to the account manager plugin configuration. You need to setup AccountManagerPlugin's password store from the admin panel.

Thank you.

Closing this ticket. Feel free to re-open this ticket if the problem still occurs.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Catalin BALAN.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.