Activity log for bug #432459

Date Who What changed Old value New value Message
2009-09-18 12:49:02 Ole Streicher bug added bug
2009-09-18 12:52:58 Ole Streicher description the following code fails for me if the output file already exists: >>> import pyfits >>> pyfits.PrimaryHDU().writeto('Map.fits', clobber='True') /var/lib/python-support/python2.6/pyfits/NP_pyfits.py:4895: DeprecationWarning: functions overriding warnings.showwarning() must support the 'line' argument warnings.warn( "Overwrite existing file '%s'." % name) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/var/lib/python-support/python2.6/pyfits/NP_pyfits.py", line 1483, in writeto classExtensions=classExtensions) File "/var/lib/python-support/python2.6/pyfits/NP_pyfits.py", line 4895, in writeto warnings.warn( "Overwrite existing file '%s'." % name) File "/var/lib/python-support/python2.6/pyfits/NP_pyfits.py", line 76, 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) This happens on Ubuntu 9.04 with python 2.6.2 and pyfits 1.3-2. I contacted the pyfits author and go the answer that pyfits 1.3 is not compatible with python 2.6. So, probably it would be the best to update the pyfits in the repository with a current version? the following code fails for me if the output file already exists: >>> import pyfits >>> pyfits.PrimaryHDU().writeto('Map.fits', clobber='True') /var/lib/python-support/python2.6/pyfits/NP_pyfits.py:4895: DeprecationWarning: functions overriding warnings.showwarning() must support the 'line' argument warnings.warn( "Overwrite existing file '%s'." % name) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/var/lib/python-support/python2.6/pyfits/NP_pyfits.py", line 1483, in writeto classExtensions=classExtensions) File "/var/lib/python-support/python2.6/pyfits/NP_pyfits.py", line 4895, in writeto warnings.warn( "Overwrite existing file '%s'." % name) File "/var/lib/python-support/python2.6/pyfits/NP_pyfits.py", line 76, 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) This happens on Ubuntu 9.04 with python 2.6.2 and pyfits 1.3-2. I contacted the pyfits author and go the answer that pyfits 1.3 is not compatible with python 2.6. So, probably it would be the best to update the pyfits in the repository with a current version? Fedora Linux had the same problem, see https://bugzilla.redhat.com/show_bug.cgi?id=509203 From there I got the following 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
2012-06-03 22:48:59 Launchpad Janitor pyfits (Ubuntu): status New Confirmed
2012-06-03 22:49:11 Julian Taylor pyfits (Ubuntu): status Confirmed Fix Released
2012-06-03 22:49:17 Julian Taylor nominated for series Ubuntu Lucid
2012-06-03 22:49:17 Julian Taylor bug task added pyfits (Ubuntu Lucid)
2012-06-03 23:05:05 Julian Taylor description the following code fails for me if the output file already exists: >>> import pyfits >>> pyfits.PrimaryHDU().writeto('Map.fits', clobber='True') /var/lib/python-support/python2.6/pyfits/NP_pyfits.py:4895: DeprecationWarning: functions overriding warnings.showwarning() must support the 'line' argument warnings.warn( "Overwrite existing file '%s'." % name) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/var/lib/python-support/python2.6/pyfits/NP_pyfits.py", line 1483, in writeto classExtensions=classExtensions) File "/var/lib/python-support/python2.6/pyfits/NP_pyfits.py", line 4895, in writeto warnings.warn( "Overwrite existing file '%s'." % name) File "/var/lib/python-support/python2.6/pyfits/NP_pyfits.py", line 76, 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) This happens on Ubuntu 9.04 with python 2.6.2 and pyfits 1.3-2. I contacted the pyfits author and go the answer that pyfits 1.3 is not compatible with python 2.6. So, probably it would be the best to update the pyfits in the repository with a current version? Fedora Linux had the same problem, see https://bugzilla.redhat.com/show_bug.cgi?id=509203 From there I got the following 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 TEST CASE: the following code fails for me if the output file already exists:    >>> import pyfits    >>> pyfits.PrimaryHDU().writeto('Map.fits', clobber='True')    /var/lib/python-support/python2.6/pyfits/NP_pyfits.py:4895:    DeprecationWarning: functions overriding warnings.showwarning() must    support the 'line' argument      warnings.warn( "Overwrite existing file '%s'." % name)    Traceback (most recent call last):      File "<stdin>", line 1, in <module>      File "/var/lib/python-support/python2.6/pyfits/NP_pyfits.py", line    1483, in writeto        classExtensions=classExtensions)      File "/var/lib/python-support/python2.6/pyfits/NP_pyfits.py", line    4895, in writeto        warnings.warn( "Overwrite existing file '%s'." % name)      File "/var/lib/python-support/python2.6/pyfits/NP_pyfits.py", line 76,    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) This happens on Ubuntu 9.04 with python 2.6.2 and pyfits 1.3-2. I contacted the pyfits author and go the answer that pyfits 1.3 is not compatible with python 2.6. So, probably it would be the best to update the pyfits in the repository with a current version? Fedora Linux had the same problem, see https://bugzilla.redhat.com/show_bug.cgi?id=509203 From there I got the following 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 REGRESSION POTENTIAL: simple fix to the 2.6 api of the warnings module, should not break anything.
2012-06-03 23:06:04 Julian Taylor description TEST CASE: the following code fails for me if the output file already exists:    >>> import pyfits    >>> pyfits.PrimaryHDU().writeto('Map.fits', clobber='True')    /var/lib/python-support/python2.6/pyfits/NP_pyfits.py:4895:    DeprecationWarning: functions overriding warnings.showwarning() must    support the 'line' argument      warnings.warn( "Overwrite existing file '%s'." % name)    Traceback (most recent call last):      File "<stdin>", line 1, in <module>      File "/var/lib/python-support/python2.6/pyfits/NP_pyfits.py", line    1483, in writeto        classExtensions=classExtensions)      File "/var/lib/python-support/python2.6/pyfits/NP_pyfits.py", line    4895, in writeto        warnings.warn( "Overwrite existing file '%s'." % name)      File "/var/lib/python-support/python2.6/pyfits/NP_pyfits.py", line 76,    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) This happens on Ubuntu 9.04 with python 2.6.2 and pyfits 1.3-2. I contacted the pyfits author and go the answer that pyfits 1.3 is not compatible with python 2.6. So, probably it would be the best to update the pyfits in the repository with a current version? Fedora Linux had the same problem, see https://bugzilla.redhat.com/show_bug.cgi?id=509203 From there I got the following 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 REGRESSION POTENTIAL: simple fix to the 2.6 api of the warnings module, should not break anything. TEST CASE: the following code fails for me if the output file already exists:    >>> import pyfits >>> pyfits.PrimaryHDU().writeto('Map.fits', clobber='True')    >>> pyfits.PrimaryHDU().writeto('Map.fits', clobber='True')    /var/lib/python-support/python2.6/pyfits/NP_pyfits.py:4895:    DeprecationWarning: functions overriding warnings.showwarning() must    support the 'line' argument      warnings.warn( "Overwrite existing file '%s'." % name)    Traceback (most recent call last):      File "<stdin>", line 1, in <module>      File "/var/lib/python-support/python2.6/pyfits/NP_pyfits.py", line    1483, in writeto        classExtensions=classExtensions)      File "/var/lib/python-support/python2.6/pyfits/NP_pyfits.py", line    4895, in writeto        warnings.warn( "Overwrite existing file '%s'." % name)      File "/var/lib/python-support/python2.6/pyfits/NP_pyfits.py", line 76,    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) This happens on Ubuntu 10.04 with python 2.6.2 and pyfits 1.3-2. REGRESSION POTENTIAL: simple fix to the 2.6 api of the warnings module, should not break anything. original report: I contacted the pyfits author and go the answer that pyfits 1.3 is not compatible with python 2.6. So, probably it would be the best to update the pyfits in the repository with a current version? Fedora Linux had the same problem, see https://bugzilla.redhat.com/show_bug.cgi?id=509203 From there I got the following 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
2012-06-03 23:30:11 Julian Taylor bug added subscriber Julian Taylor
2012-06-21 23:49:39 Clint Byrum pyfits (Ubuntu Lucid): status New Fix Committed
2012-06-21 23:49:41 Clint Byrum bug added subscriber Ubuntu Stable Release Updates Team
2012-06-21 23:49:45 Clint Byrum bug added subscriber SRU Verification
2012-06-21 23:49:47 Clint Byrum tags verification-needed
2012-06-22 00:10:34 Launchpad Janitor branch linked lp:~ubuntu-branches/ubuntu/lucid/pyfits/lucid-proposed
2012-07-05 07:23:36 Ole Streicher removed subscriber Ole Streicher
2012-11-16 17:29:45 Brian Murray tags verification-needed removal-candidate verification-needed
2012-11-30 22:17:52 Brian Murray pyfits (Ubuntu Lucid): status Fix Committed Triaged
2012-11-30 22:18:29 Brian Murray tags removal-candidate verification-needed removal-candidate
2012-11-30 22:18:30 Brian Murray tags removal-candidate
2015-06-17 12:17:37 Rolf Leggewie pyfits (Ubuntu Lucid): status Triaged Won't Fix