Opened 15 years ago
Closed 15 years ago
#9318 closed defect (fixed)
Server error when accessing Plugins admin
Reported by: | Itamar Oren | Owned by: | Remy Blank |
---|---|---|---|
Priority: | normal | Milestone: | 0.12 |
Component: | admin/web | Version: | 0.12b1 |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
Serving Trac 0.12b1 using Apache WSGI frontend on Windows 7, all looks well, except when trying to access the Plugins admin web UI.
The browser gets "Internal server error", and the Apache error log shows an exception (see attached log snippet).
It seems that it is looking for "top_level.txt" under the egg-info directory of setuptools, but cannot find it. Manual inspection confirms that the directory exists, but there is no such file there.
Further inspection reveals that this file exists under another directory: C:\Python26\Lib\site-packages\setuptools-0.6c11-py2.6.egg-info.OLD.1269619926.62
I tried copying all files from C:\Python26\Lib\site-packages\setuptools-0.6c11-py2.6.egg-info.OLD.1269619926.62 to C:\Python26\Lib\site-packages\setuptools-0.6c11-py2.6.egg-info, and it worked, but it feels like an evil workaround…
Attachments (1)
Change History (6)
by , 15 years ago
Attachment: | traceback.log added |
---|
follow-up: 3 comment:2 by , 15 years ago
It looks like you installed Distribute and that this package fakes setuptools, but apparently not in a perfect way…
Try upgrading Distribute, we might also ignore the error in trac.util.get_sources
.
comment:3 by , 15 years ago
Replying to cboos:
It looks like you installed Distribute and that this package fakes setuptools, but apparently not in a perfect way…
Try upgrading Distribute, we might also ignore the error in
trac.util.get_sources
.
Indeed I installed Distribute. Trying to upgrade distribute failed, so I removed it and reinstalled setuptools. Seems to work fine now.
An interesting fact - I was running with Distribute for some time now (version 0.6.10), but until now I was running Trac only from a virtualenv (which worked fine), and just now tried a system-wide install. So it seems that although the fake setuptools is somehow broken system-wide, the setuptools that virtualenv fakes deals with it…
comment:5 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
This indeed looks like an incomplete update from setuptools to Distribute.
IOError
is now ignored with [9680]. We could probably even ignore Exception
, but I don't like catching such "wildcards".
(Of course, the changeset message is wrong, and should have referenced this ticket instead.)
Traceback snippet from Apache error log