simlmx / pyau

Python Audio Unit Host
7 stars 5 forks source link

Doesn't compile on Yosemite+Anaconda #2

Open AndreaCogliati opened 9 years ago

AndreaCogliati commented 9 years ago

Hi Simon,

thanks for your project. It looks exactly like what I need for my research project. Unfortunately, it seems I can't compile it under Yosemite+Anaconda. I receive a bunch of similar errors during the python setup.py build stage:

[...]
pyau/pyau_wrap.cpp:27788:21: error: use of undeclared identifier 'PyString_FromStringAndSize'; did you mean 'PyBytes_FromStringAndSize'?
        resultobj = PyString_FromStringAndSize(buffer, len);
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~
                    PyBytes_FromStringAndSize
/Users/andreac/anaconda/include/python3.4m/bytesobject.h:51:24: note: 'PyBytes_FromStringAndSize' declared here
PyAPI_FUNC(PyObject *) PyBytes_FromStringAndSize(const char *, Py_ssize_t);
                       ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
39 warnings and 20 errors generated.
error: command 'gcc' failed with exit status 1

Any suggestions?

Thanks!

Andrea

simlmx commented 9 years ago

Hi! Sorry for the late reply, but this might be due to the fact that you are using python 3. Try using python 2. When I coded this, python 3 didn't exist :D

AndreaCogliati commented 9 years ago

Thanks, Simon. I might give it a try if I have time to install a whole new Python 2 stack, even though I don’t want to mess up my setup.

On Jun 19, 2015, at 2:10 PM, Simon Lemieux notifications@github.com wrote:

Hi! Sorry for the late reply, but this might be due to the fact that you are using python 3. Try using python 2. When I coded this, python 3 didn't exist :D

— Reply to this email directly or view it on GitHub.