Unable to Launch respeaker_ros2 on Voice Teleop

Hi!

I am currently trying to run the Voice Teleop example on RE3, but when I run
ros2 launch respeaker_ros2 respeaker.launch.py in the terminal, it returns the error << PY_SSIZE_T_CLEAN macro must be defined for ‘#’ formats >>.

Some things I’ve tried was installing pycryptodome and updating systemd-python to version 235 (from 234). Unfortunately, neither solved the issue.

Please let me know if there is a fix to this issue, and thanks!!

Hi @dsquid, welcome to the forum! Looks like the pyaudio library had a breaking change that causes the bug you’re seeing. The fix is to simply update to the latest version:

pip3 install --upgrade pyaudio

We’ve patched this on our end, so new robots shouldn’t have this issue.