Opened 18 years ago
Closed 18 years ago
#3750 closed defect (wontfix)
easy_install broken on Windows
Reported by: | 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 , 18 years ago
comment:2 by , 18 years ago
Owner: | changed from | to
---|
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
1249 1249 if tag not in (0x1234567A, 0x1234567B): 1250 1250 return None # not a valid tag 1251 1251 1252 f.seek(prepended-(12+cfglen +bmlen))1252 f.seek(prepended-(12+cfglen)) 1253 1253 cfg = ConfigParser.RawConfigParser({'version':'','target_version':''}) 1254 1254 try: 1255 1255 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 , 18 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
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".
Try upgrading setuptools:
If it still doesn't work I believe this is a bug in setuptools, since the Trac installer is generated by distutils.