belangeo / pyo

Python DSP module
GNU Lesser General Public License v3.0
1.28k stars 130 forks source link

compile error on linux: `expected ‘(’ before ‘PyType_HasFeature’` #217

Closed susca closed 3 years ago

susca commented 3 years ago

Problem

I tried installing pyo on arch linux in different ways (which probably all do exactly the same), and always get a rather long error, but this seems to be the relevant bit:

      In file included from /usr/include/python3.9/pytime.h:6,
                       from /usr/include/python3.9/Python.h:85,
                       from src/objects/bandsplitmodule.c:21:
      src/objects/bandsplitmodule.c: In function ‘MultiBandMain_setFrequencies’:
      /usr/include/python3.9/object.h:633:41: error: expected ‘(’ before ‘PyType_HasFeature’
        633 | #define PyType_FastSubclass(type, flag) PyType_HasFeature(type, flag)
            |                                         ^~~~~~~~~~~~~~~~~

Versions

Steps to reproduce

poetry add pyo

or

pip install pyo

belangeo commented 3 years ago

Hi, it's already fixed in sources.

https://github.com/belangeo/pyo/pull/195

susca commented 3 years ago

thank you for the link. I will close this and post there to ask when the fix will reach the pypi package.