trainman419 / python-cec

Other
171 stars 42 forks source link

Compilation error on macOS #31

Closed colde closed 5 years ago

colde commented 5 years ago

I am getting the following error when trying to install on macOS Mojave:

    running install
    running build
    running build_ext
    building 'cec' extension
    creating build
    creating build/temp.macosx-10.13-x86_64-3.7
    clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Iinclude -I/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c cec.cpp -o build/temp.macosx-10.13-x86_64-3.7/cec.o
    cec.cpp:487:17: error: cannot initialize a variable of type 'char *' with an rvalue of type 'const char *'
             char * arg_s = PyUnicode_AsUTF8(arg);
                    ^       ~~~~~~~~~~~~~~~~~~~~~
    1 error generated.
    error: command 'clang' failed with exit status 1

    ----------------------------------------

Error:  An error occurred while installing cec!
  Failed building wheel for cec