Johannes, This exception is raised due to a change in the warnings module made in python 2.6. The current version of pyfits (version 2.1.1) contains a fix for this problem. You may download the latest version at our download website http://www.stsci.edu/resources/software_hardware/pyfits/Download. Jim T.