Closed ptzz closed 6 years ago
I encounter this error today.
I have the exact same issue, but I was using python 3.6.5 from pyenv.
Using env PYTHON_CONFIGURE_OPTS="--enable-framework" pyenv install 3.6.5
and then PY3=ON ./install.sh
works for me.
I also encountered the same issue, using python 3.7.0 installed using pyenv with the --enable-framework
option.
I tentatively fixed the corresponding line (line 48 in src/python_extension.cc
):
*data = PyUnicode_AsUTF8AndSize(obj, size);
to
*data = const_cast<char*>(PyUnicode_AsUTF8AndSize(obj, size));
and succeeded to build.