Can somebody help me with this? I don't seem to be able to get this
repaired.

Oops…
Trac detected an internal error:
KeyError: 'trac/locale'
This is probably a local installation issue.


User agent: `Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1;
Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR
3.0.4506.2152; .NET CLR 3.5.30729; MS-RTC EA 2; OfficeLiveConnector.
1.5; OfficeLivePatch.1.3)`

==== System Information ====
|| '''`Trac`''' || `0.12` ||
|| '''`Babel`''' || `0.9.5` ||
|| '''`CustomFieldAdmin`''' || `0.2.2` ||
|| '''`Docutils`''' || `0.6` ||
|| '''`Genshi`''' || `0.6` ||
|| '''`mod_python`''' || `3.3.1` ||
|| '''`Pygments`''' || `1.2.2` ||
|| '''`pysqlite`''' || `2.4.1` ||
|| '''`Python`''' || `2.6.5 (r265:79063, Apr 16 2010, 13:28:26) `
[[br]] `[GCC 4.4.3]` ||
|| '''`pytz`''' || `2010b` ||
|| '''`setuptools`''' || `0.6c12` ||
|| '''`SQLite`''' || `3.6.22` ||
|| '''`Subversion`''' || `1.6.6 (r40053)` ||
|| '''`jQuery`''' || `1.4.2` ||

==== Enabled Plugins ====
|| '''`CalendarPopUp`''' || `0.0.2` ||
|| '''`IniAdmin`''' || `0.2` ||
|| '''`SvnAuthzAdminPlugin`''' || `0.1.2.-Moved.to.Trac.0.11-` ||
|| '''`TracAccountManager`''' || `0.2.1dev-r7737` ||
|| '''`TracCustomFieldAdmin`''' || `0.2.2` ||
|| '''`TracEmoticons`''' || `0.1` ||
|| '''`TracGanttCalendarPlugin`''' || `0.1` ||
|| '''`TracGoogleAnalytics`''' || `0.2.2` ||
|| '''`TracMasterTickets`''' || `2.1.3` ||
|| '''`TracPageToPDF`''' || `0.2` ||
|| '''`TracProgressMeterMacro`''' || `0.2` ||
|| '''`TracThemeEngine`''' || `2.0.1` ||
|| '''`TracUserManagerPlugin`''' || `0.4` ||
|| '''`TracWysiwyg`''' || `0.2-r7350` ||

==== Python Traceback ====
{{{
Traceback (most recent call last):
  File "build/bdist.linux-i686/egg/trac/web/main.py", line 513, in
_dispatch_request
    dispatcher.dispatch(req)
  File "build/bdist.linux-i686/egg/trac/web/main.py", line 200, in
dispatch
    chosen_handler)
  File "build/bdist.linux-i686/egg/trac/web/main.py", line 346, in
_pre_process_request
    chosen_handler = filter_.pre_process_request(req, chosen_handler)
  File "build/bdist.linux-i686/egg/trac/versioncontrol/api.py", line
327, in pre_process_request
    if is_default(reponame):
  File "build/bdist.linux-i686/egg/trac/versioncontrol/api.py", line
32, in is_default
    return not reponame or reponame in ('(default)', _('(default)'))
  File "build/bdist.linux-i686/egg/trac/util/translation.py", line
186, in gettext
    if not self.isactive:
  File "build/bdist.linux-i686/egg/trac/util/translation.py", line
175, in isactive
    self.activate(get_locale(), env_path)
  File "build/bdist.linux-i686/egg/trac/util/translation.py", line
141, in activate
    locale_dir = pkg_resources.resource_filename('trac', 'locale')
  File "build/bdist.linux-i686/egg/pkg_resources.py", line 882, in
resource_filename
    self, resource_name
  File "build/bdist.linux-i686/egg/pkg_resources.py", line 1352, in
get_resource_filename
    return self._extract_resource(manager, zip_path)
  File "build/bdist.linux-i686/egg/pkg_resources.py", line 1363, in
_extract_resource
    zip_stat = self.zipinfo[zip_path]
KeyError: 'trac/locale'
}}}  a new bug report describing the problem and explain how to
reproduce it.

Python Traceback
Most recent call last:
File "build/bdist.linux-i686/egg/trac/web/main.py", line 513, in
_dispatch_request
Code fragment:Line
508     try:
509         if not env and env_error:
510             raise HTTPInternalError(env_error)
511         try:
512             dispatcher = RequestDispatcher(env)
513             dispatcher.dispatch(req)
514         except RequestDone:
515             pass
516         resp = req._response or []
517
518     except HTTPException, e:

Local variables:Name Value
dispatcher <trac.web.main.RequestDispatcher object at 0x22da75ec>
e KeyError('trac/locale',)
env <trac.env.Environment object at 0x229e938c>
env_error None
req <Request "GET '/login'">
resp []

File "build/bdist.linux-i686/egg/trac/web/main.py", line 200, in
dispatch
Code fragment:Line
195                         if not req.path_info or req.path_info ==
'/':
196                             chosen_handler = self.default_handler
197                     # pre-process any incoming request, whether a
handler
198                     # was found or not
199                     chosen_handler =
self._pre_process_request(req,
200
chosen_handler)
201                 except TracError, e:
202                     raise HTTPInternalError(e)
203                 if not chosen_handler:
204                     if req.path_info.endswith('/'):
205                         # Strip trailing / and redirect

Local variables:Name Value
chosen_handler <trac.web.auth.LoginModule object at 0x22bfc7ac>
chrome <trac.web.chrome.Chrome object at 0x22da762c>
err (<type 'exceptions.KeyError'>, KeyError('trac/locale',),
<traceback object ...
handler <trac.web.auth.LoginModule object at 0x22bfc7ac>
req <Request "GET '/login'">
self <trac.web.main.RequestDispatcher object at 0x22da75ec>

File "build/bdist.linux-i686/egg/trac/web/main.py", line 346, in
_pre_process_request
Code fragment:Line
341                 req.outcookie['trac_form_token']['secure'] = True
342             return req.outcookie['trac_form_token'].value
343
344     def _pre_process_request(self, req, chosen_handler):
345         for filter_ in self.filters:
346             chosen_handler = filter_.pre_process_request(req,
chosen_handler)
347         return chosen_handler
348
349     def _post_process_request(self, req, *args):
350         nbargs = len(args)
351         resp = args

Local variables:Name Value
chosen_handler <trac.web.auth.LoginModule object at 0x22bfc7ac>
filter_ <trac.versioncontrol.api.RepositoryManager object at
0x22bfc52c>
req <Request "GET '/login'">
self <trac.web.main.RequestDispatcher object at 0x22da75ec>

File "build/bdist.linux-i686/egg/trac/versioncontrol/api.py", line
327, in pre_process_request
Code fragment:Line
322     def pre_process_request(self, req, handler):
323         from trac.web.chrome import Chrome, add_warning
324         if handler is not Chrome(self.env):
325             for reponame in self.repository_sync_per_request:
326                 start = time.time()
327                 if is_default(reponame):
328                     reponame = ''
329                 try:
330                     repo = self.get_repository(reponame)
331                     if repo:
332                         repo.sync()

Local variables:Name Value
Chrome <class 'trac.web.chrome.Chrome'>
add_warning <function add_warning at 0x228cf87c>
handler <trac.web.auth.LoginModule object at 0x22bfc7ac>
reponame u'(default)'
req <Request "GET '/login'">
self <trac.versioncontrol.api.RepositoryManager object at 0x22bfc52c>
start 1277141137.237937

File "build/bdist.linux-i686/egg/trac/versioncontrol/api.py", line 32,
in is_default
Code fragment:Line
27 from trac.web.api import IRequestFilter
28
29
30 def is_default(reponame):
31     """Check whether `reponame` is the default repository."""
32     return not reponame or reponame in ('(default)',
_('(default)'))
33
34
35 class IRepositoryConnector(Interface):
36     """Provide support for a specific version control system."""
37

Local variables:Name Value
reponame u'(default)'

File "build/bdist.linux-i686/egg/trac/util/translation.py", line 186,
in gettext
Code fragment:Line
181             return getattr(self.active, name)
182
183         def gettext(self, string, **kwargs):
184             def _gettext():
185                 return safefmt(self.active.ugettext(string),
kwargs)
186             if not self.isactive:
187                 return LazyProxy(_gettext)
188             return _gettext()
189
190         def dgettext(self, domain, string, **kwargs):
191             def _dgettext():

Local variables:Name Value
_gettext <function _gettext at 0x228b809c>
kwargs {}
self <trac.util.translation.TranslationsProxy object at 0x22651e8c>
string '(default)'

File "build/bdist.linux-i686/egg/trac/util/translation.py", line 175,
in isactive
Code fragment:Line
170         @property
171         def isactive(self):
172             if self._current.args is not None:
173                 get_locale, env_path = self._current.args
174                 self._current.args = None
175                 self.activate(get_locale(), env_path)
176             return self._current.translations is not None
177
178         # Delegated methods
179
180         def __getattr__(self, name):

Local variables:Name Value
env_path '/var/lib/trac/nachtwachtluna'
get_locale <function <lambda> at 0x228b8304>
self <trac.util.translation.TranslationsProxy object at 0x22651e8c>

File "build/bdist.linux-i686/egg/trac/util/translation.py", line 141,
in activate
Code fragment:Line
136         def make_activable(self, get_locale, env_path=None):
137             self._current.args = (get_locale, env_path)
138
139         def activate(self, locale, env_path=None):
140             try:
141                 locale_dir =
pkg_resources.resource_filename('trac', 'locale')
142             except pkg_resources.ExtractionError:
143                 return # delay extraction
144             t = Translations.load(locale_dir, locale or 'en_US')
145             if not t or t.__class__ is NullTranslations:
146                 t = self._null_translations

Local variables:Name Value
env_path '/var/lib/trac/nachtwachtluna'
locale None
self <trac.util.translation.TranslationsProxy object at 0x22651e8c>

File "build/bdist.linux-i686/egg/pkg_resources.py", line 882, in
resource_filename
Code fragment:Line
877         )
878
879     def resource_filename(self, package_or_requirement,
resource_name):
880         """Return a true filesystem path for specified
resource"""
881         return
get_provider(package_or_requirement).get_resource_filename(
882             self, resource_name
883         )
884
885     def resource_stream(self, package_or_requirement,
resource_name):
886         """Return a readable file-like object for specified
resource"""
887         return
get_provider(package_or_requirement).get_resource_stream(

Local variables:Name Value
package_or_requirement 'trac'
resource_name 'locale'
self <pkg_resources.ResourceManager instance at 0x22481d2c>

File "build/bdist.linux-i686/egg/pkg_resources.py", line 1352, in
get_resource_filename
Code fragment:Line
1347         zip_path = self._resource_to_zip(resource_name)
1348         eagers = self._get_eager_resources()
1349         if '/'.join(self._parts(zip_path)) in eagers:
1350             for name in eagers:
1351                 self._extract_resource(manager,
self._eager_to_zip(name))
1352         return self._extract_resource(manager, zip_path)
1353
1354     def _extract_resource(self, manager, zip_path):
1355
1356         if zip_path in self._index():
1357             for name in self._index()[zip_path]:

Local variables:Name Value
eagers []
manager <pkg_resources.ResourceManager instance at 0x22481d2c>
resource_name 'locale'
self <pkg_resources.ZipProvider instance at 0x233ae42c>
zip_path 'trac/locale'

File "build/bdist.linux-i686/egg/pkg_resources.py", line 1363, in
_extract_resource
Code fragment:Line
1358                 last = self._extract_resource(
1359                     manager, os.path.join(zip_path, name)
1360                 )
1361             return os.path.dirname(last)  # return the extracted
directory name
1362
1363         zip_stat = self.zipinfo[zip_path]
1364         t,d,size = zip_stat[5], zip_stat[6], zip_stat[3]
1365         date_time = (
1366             (d>>9)+1980, (d>>5)&0xF, d&0x1F,
# ymd
1367             (t&0xFFFF)>>11, (t>>5)&0x3F, (t&0x1F) * 2, 0, 0, -1
# hms, etc.
1368         )

Local variables:Name Value
manager <pkg_resources.ResourceManager instance at 0x22481d2c>
self <pkg_resources.ZipProvider instance at 0x233ae42c>
zip_path 'trac/locale'

File "build/bdist.linux-i686/egg/trac/web/main.py", line 513, in
_dispatch_request
  dispatcher.dispatch(req)
File "build/bdist.linux-i686/egg/trac/web/main.py", line 200, in
dispatch
  chosen_handler)
File "build/bdist.linux-i686/egg/trac/web/main.py", line 346, in
_pre_process_request
  chosen_handler = filter_.pre_process_request(req, chosen_handler)
File "build/bdist.linux-i686/egg/trac/versioncontrol/api.py", line
327, in pre_process_request
  if is_default(reponame):
File "build/bdist.linux-i686/egg/trac/versioncontrol/api.py", line 32,
in is_default
  return not reponame or reponame in ('(default)', _('(default)'))
File "build/bdist.linux-i686/egg/trac/util/translation.py", line 186,
in gettext
  if not self.isactive:
File "build/bdist.linux-i686/egg/trac/util/translation.py", line 175,
in isactive
  self.activate(get_locale(), env_path)
File "build/bdist.linux-i686/egg/trac/util/translation.py", line 141,
in activate
  locale_dir = pkg_resources.resource_filename('trac', 'locale')
File "build/bdist.linux-i686/egg/pkg_resources.py", line 882, in
resource_filename
  self, resource_name
File "build/bdist.linux-i686/egg/pkg_resources.py", line 1352, in
get_resource_filename
  return self._extract_resource(manager, zip_path)
File "build/bdist.linux-i686/egg/pkg_resources.py", line 1363, in
_extract_resource
  zip_stat = self.zipinfo[zip_path]


System Information:
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/
4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR
3.0.4506.2152; .NET CLR 3.5.30729; MS-RTC EA 2; OfficeLiveConnector.
1.5; OfficeLivePatch.1.3)

Trac 0.12
Babel 0.9.5
CustomFieldAdmin 0.2.2
Docutils 0.6
Genshi 0.6
mod_python 3.3.1
Pygments 1.2.2
pysqlite 2.4.1
Python 2.6.5 (r265:79063, Apr 16 2010, 13:28:26) [GCC 4.4.3]
pytz 2010b
setuptools 0.6c12
SQLite 3.6.22
Subversion 1.6.6 (r40053)
jQuery 1.4.2

Enabled Plugins:
CalendarPopUp  0.0.2 /usr/local/lib/python2.6/dist-packages/
CalendarPopUp-0.0.2-py2.6.egg
IniAdmin  0.2 /usr/local/lib/python2.6/dist-packages/IniAdmin-0.2-
py2.6.egg
SvnAuthzAdminPlugin  0.1.2.-Moved.to.Trac.0.11- /usr/local/lib/
python2.6/dist-packages/SvnAuthzAdminPlugin-0.1.2._Moved.to.Trac.0.11_-
py2.6.egg
TracAccountManager  0.2.1dev-r7737 /usr/local/lib/python2.6/dist-
packages/TracAccountManager-0.2.1dev_r7737-py2.6.egg
TracCustomFieldAdmin  0.2.2 /usr/local/lib/python2.6/dist-packages/
TracCustomFieldAdmin-0.2.2-py2.6.egg
TracEmoticons  0.1 /usr/local/lib/python2.6/dist-packages/
TracEmoticons-0.1-py2.6.egg
TracGanttCalendarPlugin  0.1 /usr/local/lib/python2.6/dist-packages/
TracGanttCalendarPlugin-0.1-py2.6.egg
TracGoogleAnalytics  0.2.2 /usr/local/lib/python2.6/dist-packages/
TracGoogleAnalytics-0.2.2-py2.6.egg
TracMasterTickets  2.1.3 /usr/local/lib/python2.6/dist-packages/
TracMasterTickets-2.1.3-py2.6.egg
TracPageToPDF  0.2 /usr/local/lib/python2.6/dist-packages/
TracPageToPDF-0.2-py2.6.egg
TracProgressMeterMacro  0.2 /usr/local/lib/python2.6/dist-packages/
TracProgressMeterMacro-0.2-py2.6.egg
TracThemeEngine  2.0.1 /usr/local/lib/python2.6/dist-packages/
TracThemeEngine-2.0.1-py2.6.egg
TracUserManagerPlugin  0.4 /usr/local/lib/python2.6/dist-packages/
TracUserManagerPlugin-0.4-py2.6.egg
TracWysiwyg  0.2-r7350 /usr/local/lib/python2.6/dist-packages/
TracWysiwyg-0.2_r7350-py2.6.egg

-- 
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.

Reply via email to