SystemError on Server recstart() Method

40 views
Skip to first unread message

Eb Auden

unread,
Jan 9, 2022, 11:06:00 AM1/9/22
to pyo-discuss
After updating Python from 3.9 to 3.10.1 the Server method recstart() now returns "SystemError:"

```
SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/auden/gilbert/recstart_error.py", line 7, in <module>
    s.recstart()
  File "/home/auden/.local/lib/python3.10/site-packages/pyo/lib/server.py", line 970, in recstart
    self._server.recstart(stringencode(filename))
SystemError: <method 'recstart' of '_pyo.Server' objects> returned a result with an exception set
```

I looked in the Python changelog and I'm guessing the change in behaviour was caused by https://bugs.python.org/issue43321


Marco Buongiorno Nardelli

unread,
Jan 18, 2022, 11:37:44 AM1/18/22
to pyo-discuss
I have the same problem. Apparently it is a "breaking change" introduced in python 3.10. Same happens with PyAudio (see https://stackoverflow.com/questions/70344884/pyaudio-write-systemerror-py-ssize-t-clean-macro-must-be-defined-for-format)
Any idea out there on how to fix it?
Thanks,

Marco Buongiorno Nardelli, PhD 
University Distinguished Research Professor, University of North Texas

External Professor, Santa Fe Institute
CEMI, Center for Experimental Music and Intermedia

iARTA, Initiative for Advanced Research in Technology and the Arts

ArtSciLab, ATEC @ the University of Texas at Dallas
 
http://ermes.unt.edu

http://www.materialssoundmusic.com


Reply all
Reply to author
Forward
0 new messages