Bug 509203 - pyfits 1.3 is not compatible with Python 2.6
Summary: pyfits 1.3 is not compatible with Python 2.6
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: pyfits
Version: 11
Hardware: All
OS: Linux
low
high
Target Milestone: ---
Assignee: Sergio Pascual
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-07-01 18:18 UTC by Michael Droettboom
Modified: 2009-07-27 21:28 UTC (History)
1 user (show)

Fixed In Version: 2.1.1-1.fc11
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-07-27 21:28:26 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Michael Droettboom 2009-07-01 18:18:24 UTC
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

Comment 1 Fedora Update System 2009-07-01 20:43:45 UTC
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

Comment 2 Fedora Update System 2009-07-03 19:40:10 UTC
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

Comment 3 Michael Droettboom 2009-07-10 19:50:32 UTC
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.

Comment 4 Fedora Update System 2009-07-27 21:28:22 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.