Michael Bayer wrote:
My apologies for dumping a bad build on the list here, but googling returned absolutely nothing for this one. I haven't had this issue before so it may be related to my usage of the latest python 2.6 mainentance branch which I got from http://svn.python.org/projects/python/branches/release26-maint .
It builds fine if I run a straight distutils build without setuptools being installed. Otherwise I get the below - tested against 2.1.5, 2.2, and 2.2.2, any ideas are appreciated.
root@stageassets lxml-2.2.2]# /usr/local/bin/python setup.py install [...] running build_ext Traceback (most recent call last): [...] File "/usr/local/lib/python2.6/distutils/command/build_ext.py", line 449, in build_extensions self.build_extension(ext) File "/var/web/hosts/fanfeedr.com/snapscores.com/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/build_ext.py", line 175, in build_extension File "/usr/local/lib/python2.6/distutils/command/build_ext.py", line 460, in build_extension ext_path = self.get_ext_fullpath(ext.name) File "/usr/local/lib/python2.6/distutils/command/build_ext.py", line 633, in get_ext_fullpath filename = self.get_ext_filename(modpath[-1]) File "/var/web/hosts/fanfeedr.com/snapscores.com/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/build_ext.py", line 85, in get_ext_filename KeyError: 'etree'
No idea, never seen this before. I use the same setuptools version under Py2.6.2, and it works perfectly well. Have you tried the bdist_egg target instead of a mere "install"? Also, the way setuptools patches into distutils makes it quite possible that newer Python releases introduce incompatibilities, so maybe there's an issue over there. Stefan