I installed the AccountManager. I turned on the following in the
plugin under admin:
AccountManagerAdminPage
AccountManager
SessionStore
HtPasswdStore
AccountModule
LoginModule
RegistrationModule
My trac.ini looks like:
[components]
acct_mgr.admin.accountmanageradminpage = enabled
acct_mgr.api.accountmanager = enabled
acct_mgr.db.sessionstore = enabled
acct_mgr.htfile.htpasswdstore = enabled
acct_mgr.pwhash.htpasswdhashmethod = disabled
acct_mgr.web_ui.accountmodule = enabled
acct_mgr.web_ui.loginmodule = enabled
acct_mgr.web_ui.registrationmodule = enabled
trac.web.auth.loginmodule = disabled
tracext.hg.* = enabled
[account-manager]
password_file = /local/project/conf/.htpasswd
password_format = htpasswd
password_store = HtPasswdStore
I modified the Apache configuration and removed "Require valid_user".
I can login. I can move about. The left-hand side menu now includes
"Account". The "Users" option works great. But if I select the
"Configutation" option I get the error that follows.
Any help would be greatly appreciated.
Thanks,
Ed.
--------------------------------------------------------------------------------------------------
Oops...
Trac detected an internal error:
AttributeError: Cannot find an implementation of the
"IPasswordHashMethod" interface named "HtDigestHashMethod". Please
update the option account-manager.hash_method 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/accounts/config`, Trac issued
an internal error.
''(please provide additional details here)''
Request parameters:
{{{
{'cat_id': u'accounts', 'panel_id': u'config', 'path_info': None}
}}}
==== System Information ====
|| '''Trac''' || `0.11dev-r6047` ||
|| '''Python''' || `2.4.3 (#1, Mar 14 2007, 18:51:08) ` [[br]] `[GCC
4.1.1 20070105 (Red Hat 4.1.1-52)]` ||
|| '''setuptools''' || `0.6c7` ||
|| '''MySQL''' || `server: "5.0.22", client: "5.0.22", thread-safe: 1`
||
|| '''MySQLdb''' || `1.2.2` ||
|| '''Genshi''' || `0.4.4` ||
==== Python Traceback ====
{{{
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/Trac-0.11dev_r6047-py2.4.egg/
trac/web/main.py", line 381, in dispatch_request
dispatcher.dispatch(req)
File "/usr/lib/python2.4/site-packages/Trac-0.11dev_r6047-py2.4.egg/
trac/web/main.py", line 191, in dispatch
resp = chosen_handler.process_request(req)
File "/usr/lib/python2.4/site-packages/Trac-0.11dev_r6047-py2.4.egg/
trac/admin/web_ui.py", line 108, in process_request
path_info)
File "build/bdist.linux-i686/egg/acct_mgr/admin.py", line 46, in
render_admin_panel
File "build/bdist.linux-i686/egg/acct_mgr/admin.py", line 64, in
_do_config
File "/usr/lib/python2.4/site-packages/Trac-0.11dev_r6047-py2.4.egg/
trac/config.py", line 416, in __get__
raise AttributeError('Cannot find an implementation of the "%s" '
AttributeError: Cannot find an implementation of the
"IPasswordHashMethod" interface named "HtDigestHashMethod". Please
update the option account-manager.hash_method 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 "/usr/lib/python2.4/site-packages/Trac-0.11dev_r6047-py2.4.egg/
trac/web/main.py", line 381, in dispatch_request
Code fragment:
if not env and env_error: raise
HTTPInternalError(env_error) try:
try: dispatcher = RequestDispatcher(env)
dispatcher.dispatch(req)
except
RequestDone: pass return req._response or
[] finally: if not run_once:
Local variables:
Name Value
after [' except RequestDone:', ' pass',
' ...
before [' if not env and env_error:', ' raise ...
dispatcher <trac.web.main.RequestDispatcher object at 0xb78d64cc>
e <exceptions.AttributeError instance at 0xb786938c>
env <trac.env.Environment object at 0xb7b9aeec>
env_error None
env_name 'aprtrs'
env_parent_dir '/opt/tracHome'
env_path '/opt/tracHome/aprtrs'
env_paths None
environ {'wsgi.multiprocess': True, 'HTTP_COOKIE': ...
exc_info (<class exceptions.AttributeError at 0xb7ede74c>, ...
filename '/usr/lib/python2.4/site-packages/Trac-0.11dev_r6047-
py2.4.egg/trac/web/mai ...
frames [{'function': 'dispatch_request', 'lines_before': [' if
not env and ...
has_admin True
line ' dispatcher.dispatch(req)'
lineno 380
message u'AttributeError: Cannot find an implementation of the ...
path_info ['admin', 'accounts', 'config']
req <Request "GET u'/admin/accounts/config'">
run_once False
script_url None
start_response <bound method ModPythonGateway._start_response of ...
tb <traceback object at 0xb781a464>
tb_hide None
traceback 'Traceback (most recent call last):\n File ...
File "/usr/lib/python2.4/site-packages/Trac-0.11dev_r6047-py2.4.egg/
trac/web/main.py", line 191, in dispatch
Code fragment:
'Do you have cookies
enabled?') # Process the request and render the
template try: try:
resp =
chosen_handler.process_request(req)
if resp:
if len(resp) == 2: # Clearsilver
chrome.populate_hdf(req) template, content_type
= \ self._post_process_request(req,
*resp)
Local variables:
Name Value
chosen_handler <trac.admin.web_ui.AdminModule object at 0xb78d656c>
chrome <trac.web.chrome.Chrome object at 0xb793f38c>
err (<class exceptions.AttributeError at 0xb7ede74c>, ...
handler <trac.admin.web_ui.AdminModule object at 0xb78d656c>
req <Request "GET u'/admin/accounts/config'">
self <trac.web.main.RequestDispatcher object at 0xb78d64cc>
File "/usr/lib/python2.4/site-packages/Trac-0.11dev_r6047-py2.4.egg/
trac/admin/web_ui.py", line 108, in process_request
Code fragment:
if not provider: raise HTTPNotFound(_('Unknown
administration panel')) if hasattr(provider,
'render_admin_panel'): template, data =
provider.render_admin_panel(req, cat_id, panel_id,
path_info)
else: # support for legacy WebAdmin
panels data = {} cstmpl, ct =
provider.process_admin_request(req, cat_id,
panel_id,
path_info)
Local variables:
Name Value
_panel_order <function _panel_order at 0xb787bf0c>
cat_id u'accounts'
panel_id u'config'
panels [('general', 'General', 'basics', 'Basic Settings'),
('general', ...
path_info None
provider <acct_mgr.admin.AccountManagerAdminPage object at
0xb78d68cc>
providers {('general', 'basics'): <trac.admin.web_ui.BasicsAdminPanel
object at ...
req <Request "GET u'/admin/accounts/config'">
self <trac.admin.web_ui.AdminModule object at 0xb78d656c>
File "build/bdist.linux-i686/egg/acct_mgr/admin.py", line 46, in
render_admin_panel
Local variables:
Name Value
cat u'accounts'
page u'config'
path_info None
req <Request "GET u'/admin/accounts/config'">
self <acct_mgr.admin.AccountManagerAdminPage object at 0xb78d68cc>
File "build/bdist.linux-i686/egg/acct_mgr/admin.py", line 64, in
_do_config
Local variables:
Name Value
_[1] []
_[2] []
attr 'hash_method'
option <ExtensionOption [account-manager] "hash_method">
req <Request "GET u'/admin/accounts/config'">
selected <acct_mgr.htfile.HtPasswdStore object at 0xb78d672c>
self <acct_mgr.admin.AccountManagerAdminPage object at 0xb78d68cc>
store <acct_mgr.db.SessionStore object at 0xb78d670c>
File "/usr/lib/python2.4/site-packages/Trac-0.11dev_r6047-py2.4.egg/
trac/config.py", line 416, in __get__
Code fragment:
return self value = Option.__get__(self, instance,
owner) for impl in self.xtnpt.extensions(instance):
if impl.__class__.__name__ == value: return impl
raise AttributeError('Cannot find an
implementation of the "%s" '
'interface
named "%s". Please update the option '
'%s.%s in trac.ini.' %
(self.xtnpt.interface.__name__, value,
self.section, self.name))
Local variables:
Name Value
instance <acct_mgr.db.SessionStore object at 0xb78d670c>
owner <acct_mgr.db.SessionStore object at 0xb78d670c>
self <ExtensionOption [account-manager] "hash_method">
value u'HtDigestHashMethod'
File "/usr/lib/python2.4/site-packages/Trac-0.11dev_r6047-py2.4.egg/
trac/web/main.py", line 381, in dispatch_request
dispatcher.dispatch(req) File "/usr/lib/python2.4/site-packages/
Trac-0.11dev_r6047-py2.4.egg/trac/web/main.py", line 191, in dispatch
resp = chosen_handler.process_request(req) File "/usr/lib/python2.4/
site-packages/Trac-0.11dev_r6047-py2.4.egg/trac/admin/web_ui.py", line
108, in process_request path_info) File "build/bdist.linux-i686/egg/
acct_mgr/admin.py", line 46, in render_admin_panelFile "build/
bdist.linux-i686/egg/acct_mgr/admin.py", line 64, in _do_configFile "/
usr/lib/python2.4/site-packages/Trac-0.11dev_r6047-py2.4.egg/trac/
config.py", line 416, in __get__ raise AttributeError('Cannot find an
implementation of the "%s" '
System Information:
User Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1;
InfoPath.1; .NET CLR 2.0.50727)
Trac: 0.11dev-r6047
Python: 2.4.3 (#1, Mar 14 2007, 18:51:08) [GCC 4.1.1 20070105 (Red Hat
4.1.1-52)]
setuptools: 0.6c7
MySQL: server: "5.0.22", client: "5.0.22", thread-safe: 1
MySQLdb: 1.2.2
Genshi: 0.4.4
jQuery: 1.1.3.1
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac
Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---