Edgewall Software

Ticket #3750 (closed defect: wontfix)

Opened 2 years ago

Last modified 2 years ago

easy_install broken on Windows

Reported by: tom-genp@… Owned by: mgood
Priority: normal Milestone:
Component: general Version: 0.9.6
Severity: normal Keywords: easy_install, ez_setup
Cc:

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

Change History

Changed 2 years ago by mgood

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.

Changed 2 years ago by mgood

  • owner changed from jonas to mgood

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.

Changed 2 years ago by mgood

  • status changed from new to closed
  • resolution set to wontfix

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

Add/Change #3750 (easy_install broken on Windows)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.