Re: [Distutils] easy_install fails for Amara XML Toolkit
20 Jun
2006
20 Jun
'06
11:14 p.m.
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.
6519
Age (days ago)
6519
Last active (days ago)
0 comments
1 participants
participants (1)
-
Phillip J. Eby