Opened 15 years ago
Closed 15 years ago
#9035 closed defect (fixed)
KeyError: 'trac' on Admin>Plugins page
Reported by: | Owned by: | Remy Blank | |
---|---|---|---|
Priority: | high | Milestone: | 0.12 |
Component: | admin/web | Version: | 0.12dev |
Severity: | major | Keywords: | KeyError |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
I'm getting a KeyError: 'trac' when trying to display the Plugins-Page of the Admin-Section of trac. I'm using 0.12dev-r9157 under WinXP with Apache 2.2.14, Python 2.5.4, mod_python-3.3.1.
The error appears not only in my existing trac environments but also if I setup a new trac environment and also if I install all the Python stuff (i.e. svn-python, setuptools, Genshi, pygments, Babel, docutils, …) from scratch.
There are no plugins involved, only "trac 0.12dev-r9157 c:\python25\lib\site-packages\trac-0.12dev_r9157-py2.5.egg" is listed as "plugin".
Before r9157, I had multirepos-r8774 installed, where the bug did not appear.
Attachments (1)
Change History (17)
comment:1 by , 15 years ago
follow-up: 7 comment:2 by , 15 years ago
Owner: | set to |
---|
Could you please post the complete traceback? This is weird, because the string used on line 497 of web_ui.py
is "Trac"
, not "trac"
.
follow-up: 4 comment:3 by , 15 years ago
I had change line 497 of web_ui.py(trac-0.12dev/trac/admin/) from "Trac" to "trac". After modified, re-compile catalog and then install trac. After all, i've solved. try and fun!!!!
plugin_list = [plugins['trac']]
follow-up: 8 comment:4 by , 15 years ago
Replying to tangokorea@…:
I had change line 497 of web_ui.py(trac-0.12dev/trac/admin/) from "Trac" to "trac".
You shouldn't need to do that. Could you please post the complete traceback from the log? Maybe there's some case sensitivity weirdness with setuptools. What version of setuptools do you have installed?
follow-up: 11 comment:5 by , 15 years ago
I have made plugin info processing more robust in [9164], so you shouldn't get an internal error anymore. But I'd still be interested to know why your Trac installation comes up as "trac"
instead of "Trac"
in the plugin information.
follow-up: 9 comment:6 by , 15 years ago
Replying to oli.b@…:
There are no plugins involved, only "trac 0.12dev-r9157 c:\python25\lib\site-packages\trac-0.12dev_r9157-py2.5.egg" is listed as "plugin".
Oh, funny, this shouldn't be listed under "plugins" at all… Did you by any chance rename the egg from "Trac-0.12dev_r9157-py2.5.egg" to "trac-0.12dev_r9157-py2.5.egg"? Normally, setuptools should warn about that, but as you're running on Windows, it probably didn't notice, due to the filesystem being case-insensitive.
I have just generated Trac eggs on Linux and Windows, and both are named "Trac-*".
comment:7 by , 15 years ago
Replying to rblank:
Could you please post the complete traceback? This is weird, because the string used on line 497 of
web_ui.py
is"Trac"
, not"trac"
.
This is the traceback from the trac logfile:
Traceback (most recent call last): File "build\bdist.win32\egg\trac\web\main.py", line 495, in _dispatch_request dispatcher.dispatch(req) File "build\bdist.win32\egg\trac\web\main.py", line 227, in dispatch resp = chosen_handler.process_request(req) File "build\bdist.win32\egg\trac\admin\web_ui.py", line 115, in process_request path_info) File "build\bdist.win32\egg\trac\admin\web_ui.py", line 415, in render_admin_panel return self._render_view(req) File "build\bdist.win32\egg\trac\admin\web_ui.py", line 497, in _render_view plugin_list = [plugins['Trac']]
comment:8 by , 15 years ago
Replying to rblank:
Replying to tangokorea@…:
I had change line 497 of web_ui.py(trac-0.12dev/trac/admin/) from "Trac" to "trac".
You shouldn't need to do that. Could you please post the complete traceback from the log?
see above!
Maybe there's some case sensitivity weirdness with setuptools. What version of setuptools do you have installed?
version 0.6c11
follow-up: 10 comment:9 by , 15 years ago
Replying to rblank:
Did you by any chance rename the egg from "Trac-0.12dev_r9157-py2.5.egg" to "trac-0.12dev_r9157-py2.5.egg"? Normally, setuptools should warn about that, but as you're running on Windows, it probably didn't notice, due to the filesystem being case-insensitive.
I did not rename the Trac-egg. It is c:\Python25\Lib\site-packages\Trac-0.12dev_r9157-py2.5.egg (with capital "T")
Thank you for Your help!
follow-up: 12 comment:10 by , 15 years ago
Replying to oli.b@…:
I did not rename the Trac-egg. It is c:\Python25\Lib\site-packages\Trac-0.12dev_r9157-py2.5.egg (with capital "T")
That's really weird. Could you please attach the egg here? Maybe the metadata is not generated correctly.
comment:11 by , 15 years ago
follow-up: 13 comment:12 by , 15 years ago
Replying to rblank:
That's really weird. Could you please attach the egg here?
max. size of attachment: 262144 Bytes, the egg's size is 3010993 Bytes…
Alternatively I could ZIP the EGG-INFO subdirectory of the egg. Is this sufficient?
comment:13 by , 15 years ago
Replying to oli.b@…:
max. size of attachment: 262144 Bytes, the egg's size is 3010993 Bytes…
Ah, yes, I didn't think of that.
Alternatively I could ZIP the EGG-INFO subdirectory of the egg. Is this sufficient?
Yes, this should be enough. Thanks!
follow-up: 15 comment:14 by , 15 years ago
Mmh, the metadata is correct. So I guess I'll have to turn to setuptools as the next suspect.
comment:15 by , 15 years ago
Replying to rblank:
Mmh, the metadata is correct. So I guess I'll have to turn to setuptools as the next suspect.
I did
wget http://peak.telecommunity.com/dist/ez_setup.py python ez_setup.py
what brought me setuptools-0.6c11-py2.5.egg
comment:16 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Looking a bit at setuptools, I couldn't find a quick explanation. But at least the issue is fixed, so I'm closing this ticket.
(forgot the) stacktrace: