I just tested the upgrade from trac 0.11 to 0.12 on a local clone of our trac 0.11 installation. I upgraded using easy_install and everything went smooth (except the wiki editor is now mostly broken). At first everything appeared to be working fine with account manager as well. Then I saw that there was a dedicated version of account manager for trac 0.12 (previously we were using the version from the 0.11 branch) and ran easy_install https://trac-hacks.org/svn/accountmanagerplugin/trunk as specified on the plugin's home page. After that, when trying to access our trac environment all I get is the following stack trace:
Traceback (most recent call last):
File "c:\users\me\appdata\local\temp\easy_install-epr54e\Trac-0.12-py2.6-win32.egg.tmp\trac\web\api.py", line 436, in send_error
data, 'text/html')
File "c:\users\me\appdata\local\temp\easy_install-epr54e\Trac-0.12-py2.6-win32.egg.tmp\trac\web\chrome.py", line 808, in render_template
template = self.load_template(filename, method=method)
File "c:\users\me\appdata\local\temp\easy_install-epr54e\Trac-0.12-py2.6-win32.egg.tmp\trac\web\chrome.py", line 769, in load_template
self.get_all_templates_dirs(), auto_reload=self.auto_reload,
File "c:\users\me\appdata\local\temp\easy_install-epr54e\Trac-0.12-py2.6-win32.egg.tmp\trac\web\chrome.py", line 481, in get_all_templates_dirs
for provider in self.template_providers:
File "c:\users\me\appdata\local\temp\easy_install-epr54e\Trac-0.12-py2.6-win32.egg.tmp\trac\core.py", line 78, in extensions
return filter(None, [component.compmgr[cls] for cls in extensions])
File "c:\users\me\appdata\local\temp\easy_install-epr54e\Trac-0.12-py2.6-win32.egg.tmp\trac\core.py", line 213, in __getitem__
component = cls(self)
File "c:\users\me\appdata\local\temp\easy_install-epr54e\Trac-0.12-py2.6-win32.egg.tmp\trac\core.py", line 119, in maybe_init
init(self)
File "build\bdist.win32\egg\acct_mgr\web_ui.py", line 189, in __init__
self._write_check(log=True)
File "build\bdist.win32\egg\acct_mgr\web_ui.py", line 192, in _write_check
writable = AccountManager(self.env).get_all_supporting_stores('set_password')
File "c:\users\me\appdata\local\temp\easy_install-epr54e\Trac-0.12-py2.6-win32.egg.tmp\trac\core.py", line 119, in maybe_init
init(self)
File "build\bdist.win32\egg\acct_mgr\api.py", line 147, in __init__
locale_dir = resource_filename(__name__, 'locale')
File "C:\Program Files\Python26\lib\site-packages\pkg_resources.py", line 882, in resource_filename
self, resource_name
File "C:\Program Files\Python26\lib\site-packages\pkg_resources.py", line 1352, in get_resource_filename
return self._extract_resource(manager, zip_path)
File "C:\Program Files\Python26\lib\site-packages\pkg_resources.py", line 1363, in _extract_resource
zip_stat = self.zipinfo[zip_path]
KeyError: 'acct_mgr\\locale'
As you can see, this is on Windows 7. We're using Apache with MOD_WSGI and the HtPasswdStore? module. We also have the HttpAuthPlugin installed and enabled for the xmlrpc paths.
I've already tried uninstalling and reinstalling the account manager plugin but without success.
Any ideas?