Edgewall Software
Modify

Opened 14 years ago

Closed 14 years ago

#9318 closed defect (fixed)

Server error when accessing Plugins admin

Reported by: Itamar Ostricher 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)

traceback.log (3.0 KB ) - added by Itamar Ostricher 14 years ago.
Traceback snippet from Apache error log

Download all attachments as: .zip

Change History (6)

by Itamar Ostricher, 14 years ago

Attachment: traceback.log added

Traceback snippet from Apache error log

comment:1 by Remy Blank, 14 years ago

Milestone: 0.12
Owner: set to Remy Blank

I'll check that.

comment:2 by Christian Boos, 14 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.

in reply to:  2 comment:3 by Itamar Ostricher, 14 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:4 by Remy Blank, 14 years ago

I am also using Distribute, but it's working fine here.

comment:5 by Remy Blank, 14 years ago

Resolution: fixed
Status: newclosed

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

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Remy Blank.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Remy Blank to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.