Modify ↓
Opened 13 years ago
Closed 13 years ago
#10362 closed defect (duplicate)
OSError: [Errno 2] No such file or directory: '/usr/local/lib/python2.6/dist-packages/Trac-0.12-py2.6.egg/trac/locale'
Reported by: | chungbd | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | general | Version: | 0.12 |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
How to Reproduce
While doing a GET operation on /prefs
, Trac issued an internal error.
(please provide additional details here)
Request parameters:
{'panel_id': None}
User agent: Mozilla/5.0 (X11; Linux i686; rv:6.0.1) Gecko/20100101 Firefox/6.0.1
System Information
Trac | 0.12
|
Babel | 0.9.6
|
Docutils | 0.7
|
Genshi | 0.6
|
Mercurial | 1.8.3
|
mod_python | 3.3.1
|
Pygments | 1.4
|
pysqlite | 2.6.3
|
Python | 2.6.7 (r267:88850, Jul 10 2011, 08:37:35) [GCC 4.6.1]
|
pytz | 2010b
|
setuptools | 0.6
|
SQLite | 3.7.7
|
Subversion | 1.6.17 (r1128011)
|
jQuery | 1.4.2
|
Enabled Plugins
TracAccountManager | 0.2.1dev-r9247
|
TracMercurial | 0.12.0.23dev-r9953
|
Python Traceback
Traceback (most recent call last): File "/usr/local/lib/python2.6/dist-packages/Trac-0.12-py2.6.egg/trac/web/main.py", line 514, in _dispatch_request dispatcher.dispatch(req) File "/usr/local/lib/python2.6/dist-packages/Trac-0.12-py2.6.egg/trac/web/main.py", line 236, in dispatch resp = chosen_handler.process_request(req) File "/usr/local/lib/python2.6/dist-packages/Trac-0.12-py2.6.egg/trac/prefs/web_ui.py", line 77, in process_request template, data = chosen_provider.render_preference_panel(req, panel_id) File "/usr/local/lib/python2.6/dist-packages/Trac-0.12-py2.6.egg/trac/prefs/web_ui.py", line 109, in render_preference_panel locales = map(Locale.parse, get_available_locales()) File "/usr/local/lib/python2.6/dist-packages/Trac-0.12-py2.6.egg/trac/util/translation.py", line 329, in get_available_locales in pkg_resources.resource_listdir('trac', 'locale') File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 887, in resource_listdir resource_name File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 1184, in resource_listdir return self._listdir(self._fn(self.module_path,resource_name)) File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 1275, in _listdir return os.listdir(path) OSError: [Errno 2] No such file or directory: '/usr/local/lib/python2.6/dist-packages/Trac-0.12-py2.6.egg/trac/locale'
Attachments (0)
Note:
See TracTickets
for help on using tickets.
I suppose it's a variant of #9439.
If you upgrade to the latest stable release, the problem will most likely go away as the translation catalogs will always be compiled before the install.