I've had a similar problem with 1.6a2, so I'm currently using PyXML 0.5.5.1 div@div:~/py/PyXML-0.6.2$ python setup.py Traceback (most recent call last): File "setup.py", line 8, in ? from distutils.core import setup, Extension ImportError: cannot import name Extension