update ez_setup.py

Bug #456472 reported by cmnorton
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GNU Mailman
Fix Released
High
Barry Warsaw

Bug Description

This is probably a duplicate of an existing bug. I could not see that fact in the titles of the existing bugs.

I just downloaded the latest version of mailman, 3.0.0a3.

I am getting this error:

Downloading http://cheeseshop.python.org/packages/2.4/s/setuptools/setuptools-0.6c5-py2.4.
egg
Traceback (most recent call last):
  File "./setup.py", line 26, in ?
    from mailman.version import VERSION as __version__
  File "src/mailman/__init__.py", line 20
    from __future__ import absolute_import, unicode_literals
SyntaxError: future feature absolute_import is not defined

Are there changes I can make in the existing sources to fix this?
Should I be downloading an earlier version, and if so, which one?

Thanks.
cmn

Related branches

Revision history for this message
Mark Sapiro (msapiro) wrote :

It looks like your underlying Python is 2.4.x. This is too old. Mailman 3 requires at least Python 2.6. This is a bug in setup.py to not detect your Python version until it's too late. Setup.py was fixed at rev 6796.

Revision history for this message
cmnorton (octopusgrabbus) wrote :

Thanks. I'll go upgrade Python.

Changed in mailman:
status: New → Invalid
Revision history for this message
cmnorton (octopusgrabbus) wrote :

I've installed 2.6, but am now getting this error from line 19 in setup.py

 File "/usr/local/lib/python2.6/urllib2.py", line 510, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 404: Not Found

What should I install?

Changed in mailman:
status: Invalid → New
Revision history for this message
cmnorton (octopusgrabbus) wrote :

One thing I've noticed is I cannot get this version of setup tools:
setuptools-0.6c5-py2.6.egg

It's 06c11 now. Should I modify the source to go grab the latest version?

Revision history for this message
Mark Sapiro (msapiro) wrote :

You need to replace the ez_setup.py in the MM 3 distribution with the latest version from http://peak.telecommunity.com/dist/ez_setup.py.

Revision history for this message
cmnorton (octopusgrabbus) wrote :

Replaced file. Got these errors (attached)

Revision history for this message
Mark Sapiro (msapiro) wrote :

These errors are all from Apache and relate to files that have nothing to do with Mailman. Apache's issue is the directory (folder) named /*pg3. It doesn't like the unescaped '*'.

I don't know what's going on here. Mailman's setup.py does not invoke Apache. Did you attach the correct file?

Also, This appears to be Windows. I don't know if you can successfully install Mailman on Windows.

Revision history for this message
cmnorton (octopusgrabbus) wrote :

I am installing on Red Hat EL 5 WS.

I went to the link you gave me, copied the text into a file of the same name, and preserved the file in the load directory.

I'm attaching what I fetched at the link you provided.

Revision history for this message
cmnorton (octopusgrabbus) wrote :

Am I supposed to be root or mailman when installing?

Revision history for this message
cmnorton (octopusgrabbus) wrote :

I've re-installed everything, put the latest ez_setup.py in the directory, and got this error log.

Revision history for this message
Mark Sapiro (msapiro) wrote :

The ez_setup.py is fine. That is not the issue.

You should install (python setup.py install) as root.

Is the attachment at comment #6 the correct file? It is an Apache error_log from a startup of a 'Win 32' version of Apache.

Revision history for this message
Mark Sapiro (msapiro) wrote :

My comment #11 was written before I saw your Comment #10.

There are problems with some of the message catalogs. Also see the comment thread at https://bugs.launchpad.net/mailman/+bug/457649

See the last 6 lines in the log attached at comment #10. You need to give setup a command. e.g.

python setup.py build

or

python setup.py install

not just

python setup.py

Revision history for this message
cmnorton (octopusgrabbus) wrote :

Mark:

Thank you for your help. It's installed. I've got to find documentation, but that's a different issue.

Revision history for this message
Barry Warsaw (barry) wrote :

ez_setup.py updated in r6808

Please note that for the alphas, it might not be best to install the code. Instead, use zc.buildout to create a local copy in your development directory. You should not do this as root:

% python2.6 bootstrap.py
% bin/buildout

Changed in mailman:
status: New → Triaged
importance: Undecided → High
assignee: nobody → Barry Warsaw (barry)
milestone: none → 3.0.0a4
summary: - absolute_import is not defined
+ update ez_setup.py
Changed in mailman:
status: Triaged → Fix Released
Barry Warsaw (barry)
Changed in mailman:
status: Fix Released → Fix Committed
Barry Warsaw (barry)
Changed in mailman:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.