Skip to content

Doesn't compile on Yosemite+Anaconda #2

@AndreaCogliati

Description

@AndreaCogliati

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions