[Debian-astro-maintainers] Bug#1110708: [python3-pyraf] Not properly working with Python 3.13

Ole Streicher olebole at debian.org
Sun Aug 10 10:58:06 BST 2025


Package: python3-pyraf
Version: 2.2.2-3
Severity: serious
Control: tags -1 patch

As pointed out in https://github.com/iraf-community/pyraf/issues/182, 
version 2.2.2-3 fails to work properly with Python 3.13:

     $ pyraf -c 'onedspec; splot dev$pix 34'
     [...]
       File "/usr/lib/python3/dist-packages/pyraf/gki.py", line 1423, in 
__init__
         p[0:4] = [0x92, 0x49, 0x24, 0x92]
     OverflowError: Python integer 146 out of bounds for int8

     PANIC in `/usr/lib/iraf/noao/bin/x_onedspec.e': Write to IPC with 
no reader

The proper solution is to apply 
https://github.com/iraf-community/pyraf/pull/176; however for a minimal 
fix one can just remove the line 208 from   pyraf/pyraf/gkitkbase.py:

index e55fe18..e77373d 100644
@@ -205,7 +205,6 @@ class GkiInteractiveTkBase(gki.GkiKernel, 
wutil.FocusEntity):
          self.colorManager.setColors(self.gwidget)
          self.wcs = irafgwcs.IrafGWcs()
          self.linestyles = gki.IrafLineStyles()
-        self.hatchfills = gki.IrafHatchFills()
          self.textAttributes = gki.TextAttributes()
          self.lineAttributes = gki.LineAttributes()
          self.fillAttributes = gki.FillAttributes()

This is severity serious as it prevents the package from any real use.



More information about the Debian-astro-maintainers mailing list