PY_SSIZE_T_CLEAN macro must be defined for '#' formats

Bug #1960092 reported by Andreas Hasenack
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pyx3 (Ubuntu)
Fix Released
Undecided
Andreas Hasenack

Bug Description

From https://autopkgtest.ubuntu.com/results/autopkgtest-jammy/jammy/amd64/p/pyx3/20220126_093524_8132a@/log.gz:

Traceback (most recent call last):
  File "/tmp/autopkgtest.UtTakl/autopkgtest_tmp/examples/text/marker.py", line 10, in <module>
    c.writeEPSfile("marker")
  File "/usr/lib/python3/dist-packages/pyx/canvas.py", line 50, in wrappedindocument
    return method(d, file, **write_kwargs)
  File "/usr/lib/python3/dist-packages/pyx/document.py", line 185, in writeEPSfile
    pswriter.EPSwriter(self, f, **kwargs)
  File "/usr/lib/python3/dist-packages/pyx/pswriter.py", line 169, in __init__
    registry.output(file, self)
  File "/usr/lib/python3/dist-packages/pyx/pswriter.py", line 52, in output
    resource.output(file, writer, self)
  File "/usr/lib/python3/dist-packages/pyx/font/font.py", line 57, in output
    self.t1file.getstrippedfont(self.glyphnames, self.charcodes).outputPS(file, writer)
  File "/usr/lib/python3/dist-packages/pyx/font/t1file.py", line 1019, in getstrippedfont
    self.gatherglyphcalls(glyph, seacglyphs, subrs, T1context(self))
  File "/usr/lib/python3/dist-packages/pyx/font/t1file.py", line 900, in gatherglyphcalls
    self.gathercalls(self.getglyphcmds(glyph), seacglyphs, subrs, context)
  File "/usr/lib/python3/dist-packages/pyx/font/t1file.py", line 859, in getglyphcmds
    self._data2decode()
  File "/usr/lib/python3/dist-packages/pyx/font/t1file.py", line 721, in _data2decode
    self._data2 = self._eexecdecode(self._data2eexec)
  File "/usr/lib/python3/dist-packages/pyx/font/t1file.py", line 670, in _eexecdecode
    return decoder(code, self.eexecr, 4)
SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats

See:
https://www.python.org/dev/peps/pep-0353/
https://docs.python.org/3/c-api/arg.html#arg-parsing

Related branches

Revision history for this message
Andreas Hasenack (ahasenack) wrote :
Changed in pyx3 (Ubuntu):
assignee: nobody → Andreas Hasenack (ahasenack)
status: New → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package pyx3 - 0.15-5ubuntu1

---------------
pyx3 (0.15-5ubuntu1) jammy; urgency=medium

  * d/p/py310-py_ssize_t_clean.patch: fix t1 extension with Python 3.10
    (LP: #1960092)

 -- Andreas Hasenack <email address hidden> Sat, 05 Feb 2022 18:25:58 +0000

Changed in pyx3 (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.