Description of problem: The version of pyfits included in FC11 is not compatible with Python 2.6 Version-Release number of selected component (if applicable): 1.3 How reproducible: Always Steps to Reproduce: Run the following Python script: import pyfits import warnings warnings.warn("TEST") Actual results: > python test.py test.py:4: DeprecationWarning: functions overriding warnings.showwarning() must support the 'line' argument warnings.warn("TEST") Traceback (most recent call last): File "test.py", line 4, in <module> warnings.warn("TEST") File "/usr/lib/python2.6/site-packages/pyfits/NP_pyfits.py", line 75, in showwarning _showwarning(message, category, filename, lineno, file) File "/usr/lib/python2.6/warnings.py", line 29, in _show_warning file.write(formatwarning(message, category, filename, lineno, line)) TypeError: formatwarning() takes exactly 4 arguments (5 given) Expected results: > python test.py TEST Additional info: This bug was fixed upstream in pyfits version 2.1. See the CHANGELOG here: http://www.stsci.edu/resources/software_hardware/pyfits/release See this scipy mailing list thread: http://mail.scipy.org/pipermail/astropy/2009-June/000827.html
pyfits-2.1.1-1.fc11 has been submitted as an update for Fedora 11. http://admin.fedoraproject.org/updates/pyfits-2.1.1-1.fc11
pyfits-2.1.1-1.fc11 has been pushed to the Fedora 11 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update pyfits'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F11/FEDORA-2009-7331
Thank you. The updated package appears to work for the original bug and anything else I can throw at it. It also passes pyfits' nosetests.
pyfits-2.1.1-1.fc11 has been pushed to the Fedora 11 stable repository. If problems still persist, please make note of it in this bug report.