Edgewall Software
Modify

Opened 15 years ago

Closed 15 years ago

#8138 closed defect (worksforme)

TracSpamFilter installation not working

Reported by: Woody Gilk <woody.gilk@…> Owned by:
Priority: normal Milestone:
Component: general Version: none
Severity: normal Keywords: easy install html error spam filter
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

easy_install TracSpamFilter results in:

error: Unexpected HTML page found at http://svn.edgewall.com/repos/trac/sandbox/spam-filter/

Attachments (0)

Change History (7)

comment:1 by Jonas Borgström, 15 years ago

Resolution: worksforme
Status: newclosed

As far as I can tell it works fine. So either you have a too old version of setuptools (tested with 0.6c9) or you're behind some kind of http proxy breaking things.

Please reopen this ticket if the problem still persists after upgrading setuptools.

$ easy_install TracSpamFilter
Searching for TracSpamFilter
Reading http://pypi.python.org/simple/TracSpamFilter/
Reading http://trac.edgewall.org/wiki/SpamFilter
Best match: TracSpamFilter dev
Downloading http://svn.edgewall.com/repos/trac/sandbox/spam-filter#egg=TracSpamFilter-dev
Doing subversion checkout from http://svn.edgewall.com/repos/trac/sandbox/spam-filter to something
Processing spam-filter
Running setup.py -q bdist_egg --dist-dir something
Adding TracSpamFilter 0.2.1dev-r7539 to easy-install.pth file

Installed /private/tmp/testenv/lib/python2.5/site-packages/TracSpamFilter-0.2.1dev_r7539-py2.5.egg
Processing dependencies for TracSpamFilter
Finished processing dependencies for TracSpamFilter

comment:2 by Woody Gilk <woody.gilk@…>, 15 years ago

Resolution: worksforme
Status: closedreopened

Here is the response from curl http://svn.edgewall.com/repos/trac/sandbox/spam-filter:

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>301 Moved Permanently</title>
</head><body>
<h1>Moved Permanently</h1>
<p>The document has moved <a href="http://svn.edgewall.com/repos/trac/sandbox/spam-filter/">here</a>.</p>
<hr>
<address>Apache/2.2.9 (Ubuntu) DAV/2 SVN/1.5.1 mod_ssl/2.2.9 OpenSSL/0.9.8g Server at svn.edgewall.com Port 80</address>
</body></html>

It looks like SVN misconfiguration to me.

comment:3 by Woody Gilk <woody.gilk@…>, 15 years ago

How can I see what version of setuptools I have installed?

comment:4 by Jonas Borgström, 15 years ago

I don't think this is due to SVN misconfiguration. This redirect is normal web server behavior trying to redirect us to the "correct" url which in this case is supposed to end with a trailing slash.

Setuptools is supposed to follow both temporary and permanent redirects automatically. So I have no idea why your copy ignores them.

Anyway, I've updated the TracSpamFilter? pypi-entry to include a trailing slash and thereby hopefully avoid this issue. Let me know how it works out

About the version number: One way is to look inside the easy_install script. It should include the version number at the top of the file.

comment:5 by Woody Gilk <woody.gilk@…>, 15 years ago

Still getting the same error.

head -5 $(which easy_install)

#!/usr/local/bin/python2.4
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==0.6c7','console_scripts','easy_install'
__requires__ = 'setuptools==0.6c7'
import sys
from pkg_resources import load_entry_point

comment:6 by Jonas Borgström, 15 years ago

Try upgrading setuptools:

easy_install -U setuptools

This should give you setuptools 0.6c9

comment:7 by Woody Gilk <woody.gilk@…>, 15 years ago

Resolution: worksforme
Status: reopenedclosed

Thanks, you were correct. The newer setuptools fixed the issue.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) 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.