alpacahq / pylivetrader

Python live trade execution library with zipline interface.
https://pypi.org/project/pylivetrader/
Apache License 2.0
661 stars 196 forks source link

bcolz Build Error on MacOS (Resolved) #162

Closed kdjacobs118 closed 4 years ago

kdjacobs118 commented 4 years ago

I tried a pip install of pylivetrader and received an error when building the wheel for bcolz. I'm running on MacOS Catalina v10.15.5 with Anaconda 1.9.12.

bcolz Build Error.pdf

jmaslek commented 4 years ago

I had similar issues. No idea why, but setting this env variable did it for me: export MACOSX_DEPLOYMENT_TARGET=10.14.6 , so maybe try with 10.15.5

kdjacobs118 commented 4 years ago

That worked. Thanks for the help.

On Jun 12, 2020, at 11:36 AM, jmaslek notifications@github.com wrote:

I had similar issues. No idea why, but setting this env variable did it for me: export MACOSX_DEPLOYMENT_TARGET=10.14.6

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/alpacahq/pylivetrader/issues/162#issuecomment-643339264, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANZJPFFJ25NIKGSELOO6DWLRWJDQPANCNFSM4N4NWGXQ.

spritehc commented 3 years ago

I have similar issue and export MACOSX_DEPLOYMENT_TARGET=10.15.7 does not help

Failed to build trading-calendars zipline bcolz intervaltree lru-dict empyrical
Installing collected packages: bcolz, click, multipledispatch, MarkupSafe, Mako, sqlalchemy, python-editor, alembic, sortedcontainers, intervaltree, lru-dict, empyrical, tables, trading-calendars, zipline, pipeline-live, pylivetrader, lxml
    Running setup.py install for bcolz ... error
    ERROR: Command errored out with exit status 1:
     command: /Users/cheng_huang/opt/anaconda3/envs/zipline/bin/python3.6 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/sy/013z05w16z327twg_2p28g8m0000gn/T/pip-install-tm5_rom1/bcolz/setup.py'"'"'; __file__='"'"'/private/var/folders/sy/013z05w16z327twg_2p28g8m0000gn/T/pip-install-tm5_rom1/bcolz/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/sy/013z05w16z327twg_2p28g8m0000gn/T/pip-record-m4w77l4s/install-record.txt --single-version-externally-managed --compile --install-headers /Users/cheng_huang/opt/anaconda3/envs/zipline/include/python3.6m/bcolz
         cwd: /private/var/folders/sy/013z05w16z327twg_2p28g8m0000gn/T/pip-install-tm5_rom1/bcolz/
    Complete output (249 lines):
    running install
    running build
    running build_py
    creating build
    creating build/lib.macosx-10.7-x86_64-3.6
    creating build/lib.macosx-10.7-x86_64-3.6/bcolz
    copying bcolz/py2help_tests.py -> build/lib.macosx-10.7-x86_64-3.6/bcolz
    copying bcolz/version.py -> build/lib.macosx-10.7-x86_64-3.6/bcolz
    copying bcolz/toplevel.py -> build/lib.macosx-10.7-x86_64-3.6/bcolz
    copying bcolz/ctable.py -> build/lib.macosx-10.7-x86_64-3.6/bcolz
    copying bcolz/__init__.py -> build/lib.macosx-10.7-x86_64-3.6/bcolz
    copying bcolz/utils.py -> build/lib.macosx-10.7-x86_64-3.6/bcolz
    copying bcolz/chunked_eval.py -> build/lib.macosx-10.7-x86_64-3.6/bcolz
    copying bcolz/defaults.py -> build/lib.macosx-10.7-x86_64-3.6/bcolz
    copying bcolz/attrs.py -> build/lib.macosx-10.7-x86_64-3.6/bcolz
    copying bcolz/py2help.py -> build/lib.macosx-10.7-x86_64-3.6/bcolz
    copying bcolz/arrayprint.py -> build/lib.macosx-10.7-x86_64-3.6/bcolz
    creating build/lib.macosx-10.7-x86_64-3.6/bcolz/tests
    copying bcolz/tests/test_ndcarray.py -> build/lib.macosx-10.7-x86_64-3.6/bcolz/tests
    copying bcolz/tests/test_carray_objects.py -> build/lib.macosx-10.7-x86_64-3.6/bcolz/tests
    copying bcolz/tests/test_attrs.py -> build/lib.macosx-10.7-x86_64-3.6/bcolz/tests
    copying bcolz/tests/__init__.py -> build/lib.macosx-10.7-x86_64-3.6/bcolz/tests
    copying bcolz/tests/all.py -> build/lib.macosx-10.7-x86_64-3.6/bcolz/tests
    copying bcolz/tests/common.py -> build/lib.macosx-10.7-x86_64-3.6/bcolz/tests
    copying bcolz/tests/test_queries.py -> build/lib.macosx-10.7-x86_64-3.6/bcolz/tests
    copying bcolz/tests/test_ctable.py -> build/lib.macosx-10.7-x86_64-3.6/bcolz/tests
    copying bcolz/tests/test_carray.py -> build/lib.macosx-10.7-x86_64-3.6/bcolz/tests
    copying bcolz/carray_ext.pxd -> build/lib.macosx-10.7-x86_64-3.6/bcolz
    running build_ext
    skipping 'bcolz/carray_ext.c' Cython extension (up-to-date)
    building 'bcolz.carray_ext' extension
    creating build/temp.macosx-10.7-x86_64-3.6
    creating build/temp.macosx-10.7-x86_64-3.6/bcolz
    creating build/temp.macosx-10.7-x86_64-3.6/c-blosc
    creating build/temp.macosx-10.7-x86_64-3.6/c-blosc/blosc
    creating build/temp.macosx-10.7-x86_64-3.6/c-blosc/internal-complibs
    creating build/temp.macosx-10.7-x86_64-3.6/c-blosc/internal-complibs/lz4-r119
    creating build/temp.macosx-10.7-x86_64-3.6/c-blosc/internal-complibs/snappy-1.1.1
    creating build/temp.macosx-10.7-x86_64-3.6/c-blosc/internal-complibs/zlib-1.2.8
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/cheng_huang/opt/anaconda3/envs/zipline/include -arch x86_64 -I/Users/cheng_huang/opt/anaconda3/envs/zipline/include -arch x86_64 -DHAVE_LZ4=1 -DHAVE_SNAPPY=1 -DHAVE_ZLIB=1 -Ibcolz -Ic-blosc/blosc -Ic-blosc/internal-complibs/snappy-1.1.1 -Ic-blosc/internal-complibs/lz4-r119 -Ic-blosc/internal-complibs/zlib-1.2.8 -I/Users/cheng_huang/.local/lib/python3.6/site-packages/numpy/core/include -I/Users/cheng_huang/opt/anaconda3/envs/zipline/include/python3.6m -c bcolz/carray_ext.c -o build/temp.macosx-10.7-x86_64-3.6/bcolz/carray_ext.o
    In file included from bcolz/carray_ext.c:242:
    In file included from /Users/cheng_huang/.local/lib/python3.6/site-packages/numpy/core/include/numpy/arrayobject.h:4:
    In file included from /Users/cheng_huang/.local/lib/python3.6/site-packages/numpy/core/include/numpy/ndarrayobject.h:12:
    In file included from /Users/cheng_huang/.local/lib/python3.6/site-packages/numpy/core/include/numpy/ndarraytypes.h:1822:
    /Users/cheng_huang/.local/lib/python3.6/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: "Using deprecated NumPy API, disable it with "          "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings]
    #warning "Using deprecated NumPy API, disable it with " \
     ^
    bcolz/carray_ext.c:3075:140: warning: code will never be executed [-Wunreachable-code]
              __pyx_t_7 = PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_5); __Pyx_INCREF(__pyx_t_7); __pyx_t_5++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 216; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
                                                                                                                                               ^~~~~~~
    bcolz/carray_ext.c:3067:139: warning: code will never be executed [-Wunreachable-code]
              __pyx_t_7 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_5); __Pyx_INCREF(__pyx_t_7); __pyx_t_5++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 216; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
                                                                                                                                              ^~~~~~~
    bcolz/carray_ext.c:12063:138: warning: code will never be executed [-Wunreachable-code]
            __pyx_t_2 = PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_4); __Pyx_INCREF(__pyx_t_2); __pyx_t_4++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 910; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
                                                                                                                                             ^~~~~~~
    bcolz/carray_ext.c:12055:137: warning: code will never be executed [-Wunreachable-code]
            __pyx_t_2 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_4); __Pyx_INCREF(__pyx_t_2); __pyx_t_4++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 910; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
                                                                                                                                            ^~~~~~~
    bcolz/carray_ext.c:15415:142: warning: code will never be executed [-Wunreachable-code]
              __pyx_t_14 = PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_6); __Pyx_INCREF(__pyx_t_14); __pyx_t_6++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1177; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
                                                                                                                                                 ^~~~~~~
    bcolz/carray_ext.c:15407:141: warning: code will never be executed [-Wunreachable-code]
              __pyx_t_14 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_6); __Pyx_INCREF(__pyx_t_14); __pyx_t_6++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1177; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
                                                                                                                                                ^~~~~~~
    bcolz/carray_ext.c:23127:138: warning: code will never be executed [-Wunreachable-code]
            __pyx_t_3 = PyTuple_GET_ITEM(__pyx_t_6, __pyx_t_7); __Pyx_INCREF(__pyx_t_3); __pyx_t_7++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1747; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
                                                                                                                                             ^~~~~~~
    bcolz/carray_ext.c:23119:137: warning: code will never be executed [-Wunreachable-code]
            __pyx_t_3 = PyList_GET_ITEM(__pyx_t_6, __pyx_t_7); __Pyx_INCREF(__pyx_t_3); __pyx_t_7++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1747; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
                                                                                                                                            ^~~~~~~
    bcolz/carray_ext.c:24302:138: warning: code will never be executed [-Wunreachable-code]
            __pyx_t_7 = PyTuple_GET_ITEM(__pyx_t_5, __pyx_t_8); __Pyx_INCREF(__pyx_t_7); __pyx_t_8++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1851; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
                                                                                                                                             ^~~~~~~
    bcolz/carray_ext.c:24294:137: warning: code will never be executed [-Wunreachable-code]
            __pyx_t_7 = PyList_GET_ITEM(__pyx_t_5, __pyx_t_8); __Pyx_INCREF(__pyx_t_7); __pyx_t_8++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1851; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
                                                                                                                                            ^~~~~~~
    bcolz/carray_ext.c:25575:144: warning: code will never be executed [-Wunreachable-code]
                __pyx_t_6 = PyTuple_GET_ITEM(__pyx_t_9, __pyx_t_10); __Pyx_INCREF(__pyx_t_6); __pyx_t_10++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1951; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
                                                                                                                                                   ^~~~~~~
    bcolz/carray_ext.c:25567:143: warning: code will never be executed [-Wunreachable-code]
                __pyx_t_6 = PyList_GET_ITEM(__pyx_t_9, __pyx_t_10); __Pyx_INCREF(__pyx_t_6); __pyx_t_10++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1951; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
                                                                                                                                                  ^~~~~~~
    bcolz/carray_ext.c:27353:143: warning: code will never be executed [-Wunreachable-code]
                __pyx_t_5 = PyTuple_GET_ITEM(__pyx_t_10, __pyx_t_6); __Pyx_INCREF(__pyx_t_5); __pyx_t_6++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2100; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
                                                                                                                                                  ^~~~~~~
    bcolz/carray_ext.c:27345:142: warning: code will never be executed [-Wunreachable-code]
                __pyx_t_5 = PyList_GET_ITEM(__pyx_t_10, __pyx_t_6); __Pyx_INCREF(__pyx_t_5); __pyx_t_6++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2100; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
                                                                                                                                                 ^~~~~~~
    bcolz/carray_ext.c:35799:134: warning: code will never be executed [-Wunreachable-code]
        __pyx_t_3 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_3); __pyx_t_2++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 794; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
                                                                                                                                         ^~~~~~~
    bcolz/carray_ext.c:43580:32: warning: unused function '__Pyx_PyUnicode_FromString' [-Wunused-function]
    static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char* c_str) {
                                   ^
    bcolz/carray_ext.c:40725:26: warning: unused function '__Pyx_PyBytes_Equals' [-Wunused-function]
    static CYTHON_INLINE int __Pyx_PyBytes_Equals(PyObject* s1, PyObject* s2, int equals) {
                             ^
    bcolz/carray_ext.c:40908:32: warning: unused function '__Pyx_GetItemInt_List_Fast' [-Wunused-function]
    static CYTHON_INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i,
                                   ^
    bcolz/carray_ext.c:40923:32: warning: unused function '__Pyx_GetItemInt_Tuple_Fast' [-Wunused-function]
    static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i,
                                   ^
    bcolz/carray_ext.c:43162:32: warning: unused function '__Pyx_PyInt_From_char' [-Wunused-function]
    static CYTHON_INLINE PyObject* __Pyx_PyInt_From_char(char value) {
                                   ^
    bcolz/carray_ext.c:43199:48: warning: unused function '__pyx_t_float_complex_from_parts' [-Wunused-function]
        static CYTHON_INLINE __pyx_t_float_complex __pyx_t_float_complex_from_parts(float x, float y) {
                                                   ^
    bcolz/carray_ext.c:43209:30: warning: unused function '__Pyx_c_eqf' [-Wunused-function]
        static CYTHON_INLINE int __Pyx_c_eqf(__pyx_t_float_complex a, __pyx_t_float_complex b) {
                                 ^
    bcolz/carray_ext.c:43212:48: warning: unused function '__Pyx_c_sumf' [-Wunused-function]
        static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_sumf(__pyx_t_float_complex a, __pyx_t_float_complex b) {
                                                   ^
    bcolz/carray_ext.c:43218:48: warning: unused function '__Pyx_c_difff' [-Wunused-function]
        static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_difff(__pyx_t_float_complex a, __pyx_t_float_complex b) {
                                                   ^
    bcolz/carray_ext.c:43230:48: warning: unused function '__Pyx_c_quotf' [-Wunused-function]
        static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_quotf(__pyx_t_float_complex a, __pyx_t_float_complex b) {
                                                   ^
    bcolz/carray_ext.c:43237:48: warning: unused function '__Pyx_c_negf' [-Wunused-function]
        static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_negf(__pyx_t_float_complex a) {
                                                   ^
    bcolz/carray_ext.c:43243:30: warning: unused function '__Pyx_c_is_zerof' [-Wunused-function]
        static CYTHON_INLINE int __Pyx_c_is_zerof(__pyx_t_float_complex a) {
                                 ^
    bcolz/carray_ext.c:43246:48: warning: unused function '__Pyx_c_conjf' [-Wunused-function]
        static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_conjf(__pyx_t_float_complex a) {
                                                   ^
    bcolz/carray_ext.c:43260:52: warning: unused function '__Pyx_c_powf' [-Wunused-function]
            static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_powf(__pyx_t_float_complex a, __pyx_t_float_complex b) {
                                                       ^
    bcolz/carray_ext.c:43319:49: warning: unused function '__pyx_t_double_complex_from_parts' [-Wunused-function]
        static CYTHON_INLINE __pyx_t_double_complex __pyx_t_double_complex_from_parts(double x, double y) {
                                                    ^
    bcolz/carray_ext.c:43329:30: warning: unused function '__Pyx_c_eq' [-Wunused-function]
        static CYTHON_INLINE int __Pyx_c_eq(__pyx_t_double_complex a, __pyx_t_double_complex b) {
                                 ^
    bcolz/carray_ext.c:43332:49: warning: unused function '__Pyx_c_sum' [-Wunused-function]
        static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_sum(__pyx_t_double_complex a, __pyx_t_double_complex b) {
                                                    ^
    bcolz/carray_ext.c:43338:49: warning: unused function '__Pyx_c_diff' [-Wunused-function]
        static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_diff(__pyx_t_double_complex a, __pyx_t_double_complex b) {
                                                    ^
    bcolz/carray_ext.c:43350:49: warning: unused function '__Pyx_c_quot' [-Wunused-function]
        static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_quot(__pyx_t_double_complex a, __pyx_t_double_complex b) {
                                                    ^
    bcolz/carray_ext.c:43357:49: warning: unused function '__Pyx_c_neg' [-Wunused-function]
        static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_neg(__pyx_t_double_complex a) {
                                                    ^
    bcolz/carray_ext.c:43363:30: warning: unused function '__Pyx_c_is_zero' [-Wunused-function]
        static CYTHON_INLINE int __Pyx_c_is_zero(__pyx_t_double_complex a) {
                                 ^
    bcolz/carray_ext.c:43366:49: warning: unused function '__Pyx_c_conj' [-Wunused-function]
        static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_conj(__pyx_t_double_complex a) {
                                                    ^
    bcolz/carray_ext.c:43380:53: warning: unused function '__Pyx_c_pow' [-Wunused-function]
            static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_pow(__pyx_t_double_complex a, __pyx_t_double_complex b) {
                                                        ^
    bcolz/carray_ext.c:35492:32: warning: unused function '__pyx_f_5numpy_PyArray_MultiIterNew1' [-Wunused-function]
    static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew1(PyObject *__pyx_v_a) {
                                   ^
    bcolz/carray_ext.c:35542:32: warning: unused function '__pyx_f_5numpy_PyArray_MultiIterNew2' [-Wunused-function]
    static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew2(PyObject *__pyx_v_a, PyObject *__pyx_v_b) {
                                   ^
    bcolz/carray_ext.c:35592:32: warning: unused function '__pyx_f_5numpy_PyArray_MultiIterNew3' [-Wunused-function]
    static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew3(PyObject *__pyx_v_a, PyObject *__pyx_v_b, PyObject *__pyx_v_c) {
                                   ^
    bcolz/carray_ext.c:35642:32: warning: unused function '__pyx_f_5numpy_PyArray_MultiIterNew4' [-Wunused-function]
    static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew4(PyObject *__pyx_v_a, PyObject *__pyx_v_b, PyObject *__pyx_v_c, PyObject *__pyx_v_d) {
                                   ^
    bcolz/carray_ext.c:35692:32: warning: unused function '__pyx_f_5numpy_PyArray_MultiIterNew5' [-Wunused-function]
    static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew5(PyObject *__pyx_v_a, PyObject *__pyx_v_b, PyObject *__pyx_v_c, PyObject *__pyx_v_d, PyObject *__pyx_v_e) {
                                   ^
    bcolz/carray_ext.c:36500:27: warning: unused function '__pyx_f_5numpy_set_array_base' [-Wunused-function]
    static CYTHON_INLINE void __pyx_f_5numpy_set_array_base(PyArrayObject *__pyx_v_arr, PyObject *__pyx_v_base) {
                              ^
    bcolz/carray_ext.c:36596:32: warning: unused function '__pyx_f_5numpy_get_array_base' [-Wunused-function]
    static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__pyx_v_arr) {
                                   ^
    46 warnings generated.
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/cheng_huang/opt/anaconda3/envs/zipline/include -arch x86_64 -I/Users/cheng_huang/opt/anaconda3/envs/zipline/include -arch x86_64 -DHAVE_LZ4=1 -DHAVE_SNAPPY=1 -DHAVE_ZLIB=1 -Ibcolz -Ic-blosc/blosc -Ic-blosc/internal-complibs/snappy-1.1.1 -Ic-blosc/internal-complibs/lz4-r119 -Ic-blosc/internal-complibs/zlib-1.2.8 -I/Users/cheng_huang/.local/lib/python3.6/site-packages/numpy/core/include -I/Users/cheng_huang/opt/anaconda3/envs/zipline/include/python3.6m -c c-blosc/blosc/blosc.c -o build/temp.macosx-10.7-x86_64-3.6/c-blosc/blosc/blosc.o
    In file included from c-blosc/blosc/blosc.c:24:
    c-blosc/internal-complibs/lz4-r119/lz4.h:179:23: warning: this function declaration is not a prototype [-Wstrict-prototypes]
    void* LZ4_createStream();
                          ^
                           void
    c-blosc/internal-complibs/lz4-r119/lz4.h:237:29: warning: this function declaration is not a prototype [-Wstrict-prototypes]
    void* LZ4_createStreamDecode();
                                ^
                                 void
    2 warnings generated.
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/cheng_huang/opt/anaconda3/envs/zipline/include -arch x86_64 -I/Users/cheng_huang/opt/anaconda3/envs/zipline/include -arch x86_64 -DHAVE_LZ4=1 -DHAVE_SNAPPY=1 -DHAVE_ZLIB=1 -Ibcolz -Ic-blosc/blosc -Ic-blosc/internal-complibs/snappy-1.1.1 -Ic-blosc/internal-complibs/lz4-r119 -Ic-blosc/internal-complibs/zlib-1.2.8 -I/Users/cheng_huang/.local/lib/python3.6/site-packages/numpy/core/include -I/Users/cheng_huang/opt/anaconda3/envs/zipline/include/python3.6m -c c-blosc/blosc/shuffle.c -o build/temp.macosx-10.7-x86_64-3.6/c-blosc/blosc/shuffle.o
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/cheng_huang/opt/anaconda3/envs/zipline/include -arch x86_64 -I/Users/cheng_huang/opt/anaconda3/envs/zipline/include -arch x86_64 -DHAVE_LZ4=1 -DHAVE_SNAPPY=1 -DHAVE_ZLIB=1 -Ibcolz -Ic-blosc/blosc -Ic-blosc/internal-complibs/snappy-1.1.1 -Ic-blosc/internal-complibs/lz4-r119 -Ic-blosc/internal-complibs/zlib-1.2.8 -I/Users/cheng_huang/.local/lib/python3.6/site-packages/numpy/core/include -I/Users/cheng_huang/opt/anaconda3/envs/zipline/include/python3.6m -c c-blosc/blosc/blosclz.c -o build/temp.macosx-10.7-x86_64-3.6/c-blosc/blosc/blosclz.o
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/cheng_huang/opt/anaconda3/envs/zipline/include -arch x86_64 -I/Users/cheng_huang/opt/anaconda3/envs/zipline/include -arch x86_64 -DHAVE_LZ4=1 -DHAVE_SNAPPY=1 -DHAVE_ZLIB=1 -Ibcolz -Ic-blosc/blosc -Ic-blosc/internal-complibs/snappy-1.1.1 -Ic-blosc/internal-complibs/lz4-r119 -Ic-blosc/internal-complibs/zlib-1.2.8 -I/Users/cheng_huang/.local/lib/python3.6/site-packages/numpy/core/include -I/Users/cheng_huang/opt/anaconda3/envs/zipline/include/python3.6m -c c-blosc/internal-complibs/lz4-r119/lz4hc.c -o build/temp.macosx-10.7-x86_64-3.6/c-blosc/internal-complibs/lz4-r119/lz4hc.o
    In file included from c-blosc/internal-complibs/lz4-r119/lz4hc.c:142:
    c-blosc/internal-complibs/lz4-r119/lz4.h:179:23: warning: this function declaration is not a prototype [-Wstrict-prototypes]
    void* LZ4_createStream();
                          ^
                           void
    c-blosc/internal-complibs/lz4-r119/lz4.h:237:29: warning: this function declaration is not a prototype [-Wstrict-prototypes]
    void* LZ4_createStreamDecode();
                                ^
                                 void
    2 warnings generated.
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/cheng_huang/opt/anaconda3/envs/zipline/include -arch x86_64 -I/Users/cheng_huang/opt/anaconda3/envs/zipline/include -arch x86_64 -DHAVE_LZ4=1 -DHAVE_SNAPPY=1 -DHAVE_ZLIB=1 -Ibcolz -Ic-blosc/blosc -Ic-blosc/internal-complibs/snappy-1.1.1 -Ic-blosc/internal-complibs/lz4-r119 -Ic-blosc/internal-complibs/zlib-1.2.8 -I/Users/cheng_huang/.local/lib/python3.6/site-packages/numpy/core/include -I/Users/cheng_huang/opt/anaconda3/envs/zipline/include/python3.6m -c c-blosc/internal-complibs/lz4-r119/lz4.c -o build/temp.macosx-10.7-x86_64-3.6/c-blosc/internal-complibs/lz4-r119/lz4.o
    In file included from c-blosc/internal-complibs/lz4-r119/lz4.c:163:
    c-blosc/internal-complibs/lz4-r119/lz4.h:179:23: warning: this function declaration is not a prototype [-Wstrict-prototypes]
    void* LZ4_createStream();
                          ^
                           void
    c-blosc/internal-complibs/lz4-r119/lz4.h:237:29: warning: this function declaration is not a prototype [-Wstrict-prototypes]
    void* LZ4_createStreamDecode();
                                ^
                                 void
    2 warnings generated.
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/cheng_huang/opt/anaconda3/envs/zipline/include -arch x86_64 -I/Users/cheng_huang/opt/anaconda3/envs/zipline/include -arch x86_64 -DHAVE_LZ4=1 -DHAVE_SNAPPY=1 -DHAVE_ZLIB=1 -Ibcolz -Ic-blosc/blosc -Ic-blosc/internal-complibs/snappy-1.1.1 -Ic-blosc/internal-complibs/lz4-r119 -Ic-blosc/internal-complibs/zlib-1.2.8 -I/Users/cheng_huang/.local/lib/python3.6/site-packages/numpy/core/include -I/Users/cheng_huang/opt/anaconda3/envs/zipline/include/python3.6m -c c-blosc/internal-complibs/snappy-1.1.1/snappy-stubs-internal.cc -o build/temp.macosx-10.7-x86_64-3.6/c-blosc/internal-complibs/snappy-1.1.1/snappy-stubs-internal.o
    clang: warning: include path for libstdc++ headers not found; pass '-stdlib=libc++' on the command line to use the libc++ standard library instead [-Wstdlibcxx-not-found]
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/cheng_huang/opt/anaconda3/envs/zipline/include -arch x86_64 -I/Users/cheng_huang/opt/anaconda3/envs/zipline/include -arch x86_64 -DHAVE_LZ4=1 -DHAVE_SNAPPY=1 -DHAVE_ZLIB=1 -Ibcolz -Ic-blosc/blosc -Ic-blosc/internal-complibs/snappy-1.1.1 -Ic-blosc/internal-complibs/lz4-r119 -Ic-blosc/internal-complibs/zlib-1.2.8 -I/Users/cheng_huang/.local/lib/python3.6/site-packages/numpy/core/include -I/Users/cheng_huang/opt/anaconda3/envs/zipline/include/python3.6m -c c-blosc/internal-complibs/snappy-1.1.1/snappy-c.cc -o build/temp.macosx-10.7-x86_64-3.6/c-blosc/internal-complibs/snappy-1.1.1/snappy-c.o
    clang: warning: include path for libstdc++ headers not found; pass '-stdlib=libc++' on the command line to use the libc++ standard library instead [-Wstdlibcxx-not-found]
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/cheng_huang/opt/anaconda3/envs/zipline/include -arch x86_64 -I/Users/cheng_huang/opt/anaconda3/envs/zipline/include -arch x86_64 -DHAVE_LZ4=1 -DHAVE_SNAPPY=1 -DHAVE_ZLIB=1 -Ibcolz -Ic-blosc/blosc -Ic-blosc/internal-complibs/snappy-1.1.1 -Ic-blosc/internal-complibs/lz4-r119 -Ic-blosc/internal-complibs/zlib-1.2.8 -I/Users/cheng_huang/.local/lib/python3.6/site-packages/numpy/core/include -I/Users/cheng_huang/opt/anaconda3/envs/zipline/include/python3.6m -c c-blosc/internal-complibs/snappy-1.1.1/snappy-sinksource.cc -o build/temp.macosx-10.7-x86_64-3.6/c-blosc/internal-complibs/snappy-1.1.1/snappy-sinksource.o
    clang: warning: include path for libstdc++ headers not found; pass '-stdlib=libc++' on the command line to use the libc++ standard library instead [-Wstdlibcxx-not-found]
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/cheng_huang/opt/anaconda3/envs/zipline/include -arch x86_64 -I/Users/cheng_huang/opt/anaconda3/envs/zipline/include -arch x86_64 -DHAVE_LZ4=1 -DHAVE_SNAPPY=1 -DHAVE_ZLIB=1 -Ibcolz -Ic-blosc/blosc -Ic-blosc/internal-complibs/snappy-1.1.1 -Ic-blosc/internal-complibs/lz4-r119 -Ic-blosc/internal-complibs/zlib-1.2.8 -I/Users/cheng_huang/.local/lib/python3.6/site-packages/numpy/core/include -I/Users/cheng_huang/opt/anaconda3/envs/zipline/include/python3.6m -c c-blosc/internal-complibs/snappy-1.1.1/snappy.cc -o build/temp.macosx-10.7-x86_64-3.6/c-blosc/internal-complibs/snappy-1.1.1/snappy.o
    clang: warning: include path for libstdc++ headers not found; pass '-stdlib=libc++' on the command line to use the libc++ standard library instead [-Wstdlibcxx-not-found]
    c-blosc/internal-complibs/snappy-1.1.1/snappy.cc:1013:33: warning: comparison of integers of different signs: 'int' and 'const size_t' (aka 'const unsigned long') [-Wsign-compare]
            if (curr_iov_index_ + 1 >= output_iov_count_) {
                ~~~~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~~~
    c-blosc/internal-complibs/snappy-1.1.1/snappy.cc:1095:35: warning: comparison of integers of different signs: 'int' and 'const size_t' (aka 'const unsigned long') [-Wsign-compare]
              if (curr_iov_index_ + 1 >= output_iov_count_) {
                  ~~~~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~~~
    2 warnings generated.
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/cheng_huang/opt/anaconda3/envs/zipline/include -arch x86_64 -I/Users/cheng_huang/opt/anaconda3/envs/zipline/include -arch x86_64 -DHAVE_LZ4=1 -DHAVE_SNAPPY=1 -DHAVE_ZLIB=1 -Ibcolz -Ic-blosc/blosc -Ic-blosc/internal-complibs/snappy-1.1.1 -Ic-blosc/internal-complibs/lz4-r119 -Ic-blosc/internal-complibs/zlib-1.2.8 -I/Users/cheng_huang/.local/lib/python3.6/site-packages/numpy/core/include -I/Users/cheng_huang/opt/anaconda3/envs/zipline/include/python3.6m -c c-blosc/internal-complibs/zlib-1.2.8/inflate.c -o build/temp.macosx-10.7-x86_64-3.6/c-blosc/internal-complibs/zlib-1.2.8/inflate.o
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/cheng_huang/opt/anaconda3/envs/zipline/include -arch x86_64 -I/Users/cheng_huang/opt/anaconda3/envs/zipline/include -arch x86_64 -DHAVE_LZ4=1 -DHAVE_SNAPPY=1 -DHAVE_ZLIB=1 -Ibcolz -Ic-blosc/blosc -Ic-blosc/internal-complibs/snappy-1.1.1 -Ic-blosc/internal-complibs/lz4-r119 -Ic-blosc/internal-complibs/zlib-1.2.8 -I/Users/cheng_huang/.local/lib/python3.6/site-packages/numpy/core/include -I/Users/cheng_huang/opt/anaconda3/envs/zipline/include/python3.6m -c c-blosc/internal-complibs/zlib-1.2.8/compress.c -o build/temp.macosx-10.7-x86_64-3.6/c-blosc/internal-complibs/zlib-1.2.8/compress.o
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/cheng_huang/opt/anaconda3/envs/zipline/include -arch x86_64 -I/Users/cheng_huang/opt/anaconda3/envs/zipline/include -arch x86_64 -DHAVE_LZ4=1 -DHAVE_SNAPPY=1 -DHAVE_ZLIB=1 -Ibcolz -Ic-blosc/blosc -Ic-blosc/internal-complibs/snappy-1.1.1 -Ic-blosc/internal-complibs/lz4-r119 -Ic-blosc/internal-complibs/zlib-1.2.8 -I/Users/cheng_huang/.local/lib/python3.6/site-packages/numpy/core/include -I/Users/cheng_huang/opt/anaconda3/envs/zipline/include/python3.6m -c c-blosc/internal-complibs/zlib-1.2.8/deflate.c -o build/temp.macosx-10.7-x86_64-3.6/c-blosc/internal-complibs/zlib-1.2.8/deflate.o
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/cheng_huang/opt/anaconda3/envs/zipline/include -arch x86_64 -I/Users/cheng_huang/opt/anaconda3/envs/zipline/include -arch x86_64 -DHAVE_LZ4=1 -DHAVE_SNAPPY=1 -DHAVE_ZLIB=1 -Ibcolz -Ic-blosc/blosc -Ic-blosc/internal-complibs/snappy-1.1.1 -Ic-blosc/internal-complibs/lz4-r119 -Ic-blosc/internal-complibs/zlib-1.2.8 -I/Users/cheng_huang/.local/lib/python3.6/site-packages/numpy/core/include -I/Users/cheng_huang/opt/anaconda3/envs/zipline/include/python3.6m -c c-blosc/internal-complibs/zlib-1.2.8/gzread.c -o build/temp.macosx-10.7-x86_64-3.6/c-blosc/internal-complibs/zlib-1.2.8/gzread.o
    c-blosc/internal-complibs/zlib-1.2.8/gzread.c:30:15: error: implicit declaration of function 'read' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
            ret = read(state->fd, buf + *have, len - *have);
                  ^
    c-blosc/internal-complibs/zlib-1.2.8/gzread.c:30:15: note: did you mean 'fread'?
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:158:9: note: 'fread' declared here
    size_t   fread(void * __restrict __ptr, size_t __size, size_t __nitems, FILE * __restrict __stream);
             ^
    c-blosc/internal-complibs/zlib-1.2.8/gzread.c:591:11: error: implicit declaration of function 'close' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
        ret = close(state->fd);
              ^
    2 errors generated.
    error: command 'gcc' failed with exit status 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /Users/cheng_huang/opt/anaconda3/envs/zipline/bin/python3.6 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/sy/013z05w16z327twg_2p28g8m0000gn/T/pip-install-tm5_rom1/bcolz/setup.py'"'"'; __file__='"'"'/private/var/folders/sy/013z05w16z327twg_2p28g8m0000gn/T/pip-install-tm5_rom1/bcolz/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/sy/013z05w16z327twg_2p28g8m0000gn/T/pip-record-m4w77l4s/install-record.txt --single-version-externally-managed --compile --install-headers /Users/cheng_huang/opt/anaconda3/envs/zipline/include/python3.6m/bcolz Check the logs for full command output.