Edgewall Software
Modify

Opened 18 years ago

Closed 18 years ago

#3750 closed defect (wontfix)

easy_install broken on Windows

Reported by: tom-genp@… Owned by: Matthew Good
Priority: normal Milestone:
Component: general Version: 0.9.6
Severity: normal Keywords: easy_install, ez_setup
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

Gives error "trac-0.10b1.win32.exe is not a valid distutils Windows .exe".

C:> easy_install trac
Searching for trac
Reading http://www.python.org/pypi/trac/
Reading http://projects.edgewall.com/trac
Reading http://projects.edgewall.com/trac/wiki/TracDownload
Reading http://www.python.org/pypi/trac/0.9
Best match: trac 0.10b1
Downloading ftp://ftp.edgewall.com/pub/trac/trac-0.10b1.win32.exe
Processing trac-0.10b1.win32.exe
error: c:\docume~1\tom\locals~1\temp\easy_install-7kyhmf\trac-0.10b1.win32.exe is not a valid distutils Windows .exe

Attachments (0)

Change History (3)

comment:1 by Matthew Good, 18 years ago

Try upgrading setuptools:

easy_install -U setuptools

If it still doesn't work I believe this is a bug in setuptools, since the Trac installer is generated by distutils.

comment:2 by Matthew Good, 18 years ago

Owner: changed from Jonas Borgström to Matthew Good

I've confirmed this on the setuptools trunk. There seems to be an error in how setuptools is locating the config information which was fixed for me with the following patch:

  • setuptools/command/easy_install.py

     
    12491249        if tag not in (0x1234567A, 0x1234567B):
    12501250            return None     # not a valid tag
    12511251
    1252         f.seek(prepended-(12+cfglen+bmlen))
     1252        f.seek(prepended-(12+cfglen))
    12531253        cfg = ConfigParser.RawConfigParser({'version':'','target_version':''})
    12541254        try:
    12551255            cfg.readfp(StringIO.StringIO(f.read(cfglen).split(chr(0),1)[0]))

However, I don't know if this will break support for easy_install with other distutils installers. I've reporting the issue on the distutils mailing list for feedback.

comment:3 by Matthew Good, 18 years ago

Resolution: wontfix
Status: newclosed

Well, even with that patch easy_install still doesn't work with the Windows installer, or any of the Trac source downloads. It bypasses the Trac installer's generation of the "siteconfig.py" file needed to locate the Trac resources, so for now installing Trac with easy_install does not seem to be an option.

Trac 0.11 will support setuptools for installation, so I think you'll have to wait until then to "easy_install trac".

Modify Ticket

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