[Distutils] easy_install fails for Amara XML Toolkit
Phillip J. Eby
pje at telecommunity.com
Tue Jun 20 23:14:25 CEST 2006
At 10:58 PM 6/20/2006 +0200, =?ISO-8859-2?Q?Micha=B3_Kwiatkowski?= wrote:
>easy_install from setuptools 0.6b3 fails when trying to download Amara
>XML Toolkit from PyPI. Full backtrace in attachement.
It appears that ftp:// URLs opened by urllib2 don't get any content-type
information. I'll fix this in the next release. In the meantime, if you
change this line:
File
"/usr/lib/python2.3/site-packages/setuptools-0.6b3-py2.3.egg/setuptools/package_index.py",
line 165, in process_url
if 'html' not in f.headers['content-type'].lower():
to read instead:
if 'html' not in f.headers.get('content-type', '').lower():
that should get you out of trouble till then. Thanks.
More information about the Distutils-SIG
mailing list