In Python 3.13 the aifc module was removed from the standard library. However, this module is still used in pya/helpers/codec.py, meaning that it is not possible to import pya in Python versions 3.13 or higher.
Steps to reproduce:
- Create a virtualenv with Python 3.13 or higher
- Install pya
- Run
import pya
One way to solve this problem could be to use the standard-aifc library for versions higher than 3.12.