substantic / rain

Framework for large distributed pipelines
https://substantic.github.io/rain/docs/
MIT License
748 stars 54 forks source link

error in pip3 install rain-python #73

Closed chenray844 closed 6 years ago

chenray844 commented 6 years ago

@all

hi all:

when installing rain-python using pip3 install rain-python

error information

Installing collected packages: pycapnp, rain-python
  Running setup.py install for pycapnp ... error
    Complete output from command /Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/private/var/folders/y3/xb_8fx894lq_89d7kv0k3gq00000gp/T/pip-install-pdz0rc5o/pycapnp/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/y3/xb_8fx894lq_89d7kv0k3gq00000gp/T/pip-record-5zxre8wk/install-record.txt --single-version-externally-managed --compile:
    Compiling capnp/lib/capnp.pyx because it changed.
    [1/1] Cythonizing capnp/lib/capnp.pyx
    running install
    running build
    running build_py
    creating build/lib.macosx-10.6-intel-3.6
    creating build/lib.macosx-10.6-intel-3.6/capnp
    copying capnp/version.py -> build/lib.macosx-10.6-intel-3.6/capnp
    copying capnp/__init__.py -> build/lib.macosx-10.6-intel-3.6/capnp
    copying capnp/_gen.py -> build/lib.macosx-10.6-intel-3.6/capnp
    copying capnp/__init__.pxd -> build/lib.macosx-10.6-intel-3.6/capnp
    copying capnp/schema.capnp -> build/lib.macosx-10.6-intel-3.6/capnp
    copying capnp/c++.capnp -> build/lib.macosx-10.6-intel-3.6/capnp
    creating build/lib.macosx-10.6-intel-3.6/capnp/helpers
    copying capnp/helpers/helpers.pxd -> build/lib.macosx-10.6-intel-3.6/capnp/helpers
    copying capnp/helpers/non_circular.pxd -> build/lib.macosx-10.6-intel-3.6/capnp/helpers
    copying capnp/helpers/__init__.pxd -> build/lib.macosx-10.6-intel-3.6/capnp/helpers
    copying capnp/helpers/rpcHelper.h -> build/lib.macosx-10.6-intel-3.6/capnp/helpers
    copying capnp/helpers/fixMaybe.h -> build/lib.macosx-10.6-intel-3.6/capnp/helpers
    copying capnp/helpers/capabilityHelper.h -> build/lib.macosx-10.6-intel-3.6/capnp/helpers
    copying capnp/helpers/asyncHelper.h -> build/lib.macosx-10.6-intel-3.6/capnp/helpers
    copying capnp/helpers/checkCompiler.h -> build/lib.macosx-10.6-intel-3.6/capnp/helpers
    copying capnp/helpers/serialize.h -> build/lib.macosx-10.6-intel-3.6/capnp/helpers
    creating build/lib.macosx-10.6-intel-3.6/capnp/includes
    copying capnp/includes/types.pxd -> build/lib.macosx-10.6-intel-3.6/capnp/includes
    copying capnp/includes/__init__.pxd -> build/lib.macosx-10.6-intel-3.6/capnp/includes
    copying capnp/includes/schema_cpp.pxd -> build/lib.macosx-10.6-intel-3.6/capnp/includes
    copying capnp/includes/capnp_cpp.pxd -> build/lib.macosx-10.6-intel-3.6/capnp/includes
    creating build/lib.macosx-10.6-intel-3.6/capnp/lib
    copying capnp/lib/capnp.pxd -> build/lib.macosx-10.6-intel-3.6/capnp/lib
    copying capnp/lib/__init__.pxd -> build/lib.macosx-10.6-intel-3.6/capnp/lib
    copying capnp/lib/__init__.py -> build/lib.macosx-10.6-intel-3.6/capnp/lib
    copying capnp/lib/pickle_helper.py -> build/lib.macosx-10.6-intel-3.6/capnp/lib
    copying capnp/lib/capnp.pyx -> build/lib.macosx-10.6-intel-3.6/capnp/lib
    creating build/lib.macosx-10.6-intel-3.6/capnp/templates
    copying capnp/templates/setup.py.tmpl -> build/lib.macosx-10.6-intel-3.6/capnp/templates
    copying capnp/templates/module.pyx -> build/lib.macosx-10.6-intel-3.6/capnp/templates
    running build_ext
    creating var/folders/y3/xb_8fx894lq_89d7kv0k3gq00000gp/T/tmpl5n886va
    /usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -c /var/folders/y3/xb_8fx894lq_89d7kv0k3gq00000gp/T/tmpl5n886va/vers.cpp -o var/folders/y3/xb_8fx894lq_89d7kv0k3gq00000gp/T/tmpl5n886va/vers.o --std=c++11
    /var/folders/y3/xb_8fx894lq_89d7kv0k3gq00000gp/T/tmpl5n886va/vers.cpp:4:10: fatal error: 'capnp/common.h' file not found
    #include "capnp/common.h"
             ^~~~~~~~~~~~~~~~
    1 error generated.
    *WARNING* no libcapnp detected or rebuild forced. Will download and build it from source now. If you have C++ Cap'n Proto installed, it may be out of date or is not being detected. Downloading and building libcapnp may take a while.
    already have /private/var/folders/y3/xb_8fx894lq_89d7kv0k3gq00000gp/T/pip-install-pdz0rc5o/pycapnp/bundled/capnproto-c++
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: /private/var/folders/y3/xb_8fx894lq_89d7kv0k3gq00000gp/T/pip-install-pdz0rc5o/pycapnp/build/lib/libkj-async.a(async-win32.o) has no symbols
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: /private/var/folders/y3/xb_8fx894lq_89d7kv0k3gq00000gp/T/pip-install-pdz0rc5o/pycapnp/build/lib/libkj-async.a(async-io-win32.o) has no symbols
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: /private/var/folders/y3/xb_8fx894lq_89d7kv0k3gq00000gp/T/pip-install-pdz0rc5o/pycapnp/build/lib/libcapnp.a(list.o) has no symbols
    building 'capnp.lib.capnp' extension
    creating build/temp.macosx-10.6-intel-3.6
    creating build/temp.macosx-10.6-intel-3.6/capnp
    creating build/temp.macosx-10.6-intel-3.6/capnp/lib
    /usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -I. -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -I/private/var/folders/y3/xb_8fx894lq_89d7kv0k3gq00000gp/T/pip-install-pdz0rc5o/pycapnp/build/include -c capnp/lib/capnp.cpp -o build/temp.macosx-10.6-intel-3.6/capnp/lib/capnp.o --std=c++11
    In file included from capnp/lib/capnp.cpp:520:
    ./capnp/helpers/checkCompiler.h:4:8: warning: "Your compiler supports C++11 but your C++ standard library does not.  If your system has libc++ installed (as should be the case on e.g. Mac OSX), try adding -stdlib=libc++ to your CFLAGS (ignore the other warning that says to use CXXFLAGS)." [-W#warnings]
          #warning "Your compiler supports C++11 but your C++ standard library does not.  If your system has libc++ installed (as should be the case on e.g. Mac OSX), try adding -stdlib=libc++ to your CFLAGS (ignore the other warning that says to use CXXFLAGS)."
           ^
    In file included from capnp/lib/capnp.cpp:520:
    In file included from ./capnp/helpers/checkCompiler.h:9:
    In file included from /private/var/folders/y3/xb_8fx894lq_89d7kv0k3gq00000gp/T/pip-install-pdz0rc5o/pycapnp/build/include/capnp/dynamic.h:40:
    In file included from /private/var/folders/y3/xb_8fx894lq_89d7kv0k3gq00000gp/T/pip-install-pdz0rc5o/pycapnp/build/include/capnp/schema.h:33:
    In file included from /private/var/folders/y3/xb_8fx894lq_89d7kv0k3gq00000gp/T/pip-install-pdz0rc5o/pycapnp/build/include/capnp/schema.capnp.h:7:
    In file included from /private/var/folders/y3/xb_8fx894lq_89d7kv0k3gq00000gp/T/pip-install-pdz0rc5o/pycapnp/build/include/capnp/generated-header-support.h:31:
    In file included from /private/var/folders/y3/xb_8fx894lq_89d7kv0k3gq00000gp/T/pip-install-pdz0rc5o/pycapnp/build/include/capnp/raw-schema.h:29:
    In file included from /private/var/folders/y3/xb_8fx894lq_89d7kv0k3gq00000gp/T/pip-install-pdz0rc5o/pycapnp/build/include/capnp/common.h:34:
    /private/var/folders/y3/xb_8fx894lq_89d7kv0k3gq00000gp/T/pip-install-pdz0rc5o/pycapnp/build/include/kj/string.h:29:10: fatal error: 'initializer_list' file not found
    #include <initializer_list>
             ^~~~~~~~~~~~~~~~~~
    1 warning and 1 error generated.
    error: command '/usr/bin/clang' failed with exit status 1

    ----------------------------------------
Command "/Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/private/var/folders/y3/xb_8fx894lq_89d7kv0k3gq00000gp/T/pip-install-pdz0rc5o/pycapnp/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/y3/xb_8fx894lq_89d7kv0k3gq00000gp/T/pip-record-5zxre8wk/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/y3/xb_8fx894lq_89d7kv0k3gq00000gp/T/pip-install-pdz0rc5o/pycapnp/

clang version

/usr/bin/clang --version
Apple LLVM version 9.1.0 (clang-902.0.39.2)
Target: x86_64-apple-darwin17.7.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

can some one give an advice to fix this error?

chenray844 commented 6 years ago

I followed the issue for pycapnp at https://github.com/capnproto/pycapnp/issues/63 by using

export MACOSX_DEPLOYMENT_TARGET="10.13"

I do successfully install pycapnp, so install rain-python OK.