Red Hat Bugzilla – Bug 509203
pyfits 1.3 is not compatible with Python 2.6
Last modified: 2009-07-27 17:28:26 EDT
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):
Steps to Reproduce:
Run the following Python script:
> python test.py
test.py:4: DeprecationWarning: functions overriding warnings.showwarning() must support the 'line' argument
Traceback (most recent call last):
File "test.py", line 4, in <module>
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)
> python test.py
This bug was fixed upstream in pyfits version 2.1. See the CHANGELOG here:
See this scipy mailing list thread:
pyfits-2.1.1-1.fc11 has been submitted as an update for Fedora 11.
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.