{"action":"created","issue":{"url":"https://api.github.com/repos/uber/horovod/issues/386","repository_url":"https://api.github.com/repos/uber/horovod","labels_url":"https://api.github.com/repos/uber/horovod/issues/386/labels{/name}","comments_url":"https://api.github.com/repos/uber/horovod/issues/386/comments","events_url":"https://api.github.com/repos/uber/horovod/issues/386/events","html_url":"https://github.com/uber/horovod/issues/386","id":342075869,"node_id":"MDU6SXNzdWUzNDIwNzU4Njk=","number":386,"title":"CentOS7 installation error","user":{"login":"1duo","id":6426433,"node_id":"MDQ6VXNlcjY0MjY0MzM=","avatar_url":"https://avatars2.githubusercontent.com/u/6426433?v=4","gravatar_id":"","url":"https://api.github.com/users/1duo","html_url":"https://github.com/1duo","followers_url":"https://api.github.com/users/1duo/followers","following_url":"https://api.github.com/users/1duo/following{/other_user}","gists_url":"https://api.github.com/users/1duo/gists{/gist_id}","starred_url":"https://api.github.com/users/1duo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/1duo/subscriptions","organizations_url":"https://api.github.com/users/1duo/orgs","repos_url":"https://api.github.com/users/1duo/repos","events_url":"https://api.github.com/users/1duo/events{/privacy}","received_events_url":"https://api.github.com/users/1duo/received_events","type":"User","site_admin":false},"labels":[{"id":665452437,"node_id":"MDU6TGFiZWw2NjU0NTI0Mzc=","url":"https://api.github.com/repos/uber/horovod/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-07-17T20:39:14Z","updated_at":"2018-07-24T18:45:43Z","closed_at":null,"author_association":"NONE","body":"```\r\n$ pip install horovod\r\nCollecting horovod\r\n  Using cached https://files.pythonhosted.org/packages/2c/7e/54f7759bc693ab19480c1b525decab5c1d846cd5fc3af97bda18364a1aa5/horovod-0.13.10.tar.gz\r\nRequirement already satisfied: cffi>=1.4.0 in /usr/lib64/python2.7/site-packages (from horovod) (1.6.0)\r\nRequirement already satisfied: pycparser in /usr/lib/python2.7/site-packages (from cffi>=1.4.0->horovod) (2.14)\r\nBuilding wheels for collected packages: horovod\r\n  Running setup.py bdist_wheel for horovod ... error\r\n  Complete output from command /usr/bin/python2 -u -c \"import setuptools, tokenize;__file__='/tmp/pip-install-MkrWxc/horovod/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\\r\\n', '\\n');f.close();exec(compile(code, __file__, 'exec'))\" bdist_wheel -d /tmp/pip-wheel-hqPEwf --python-tag cp27:\r\n  running bdist_wheel\r\n  running build\r\n  running build_py\r\n  creating build\r\n  creating build/lib.linux-x86_64-2.7\r\n  creating build/lib.linux-x86_64-2.7/horovod\r\n  copying horovod/__init__.py -> build/lib.linux-x86_64-2.7/horovod\r\n  creating build/lib.linux-x86_64-2.7/horovod/keras\r\n  copying horovod/keras/__init__.py -> build/lib.linux-x86_64-2.7/horovod/keras\r\n  copying horovod/keras/callbacks.py -> build/lib.linux-x86_64-2.7/horovod/keras\r\n  creating build/lib.linux-x86_64-2.7/horovod/torch\r\n  copying horovod/torch/mpi_ops.py -> build/lib.linux-x86_64-2.7/horovod/torch\r\n  copying horovod/torch/__init__.py -> build/lib.linux-x86_64-2.7/horovod/torch\r\n  creating build/lib.linux-x86_64-2.7/horovod/common\r\n  copying horovod/common/__init__.py -> build/lib.linux-x86_64-2.7/horovod/common\r\n  creating build/lib.linux-x86_64-2.7/horovod/tensorflow\r\n  copying horovod/tensorflow/mpi_ops.py -> build/lib.linux-x86_64-2.7/horovod/tensorflow\r\n  copying horovod/tensorflow/__init__.py -> build/lib.linux-x86_64-2.7/horovod/tensorflow\r\n  creating build/lib.linux-x86_64-2.7/horovod/torch/mpi_lib\r\n  copying horovod/torch/mpi_lib/__init__.py -> build/lib.linux-x86_64-2.7/horovod/torch/mpi_lib\r\n  creating build/lib.linux-x86_64-2.7/horovod/torch/mpi_lib_impl\r\n  copying horovod/torch/mpi_lib_impl/__init__.py -> build/lib.linux-x86_64-2.7/horovod/torch/mpi_lib_impl\r\n  running build_ext\r\n  gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -std=c++11 -fPIC -O2 -I/usr/include/python2.7 -c build/temp.linux-x86_64-2.7/test_compile/test_cpp_flags.cc -o build/temp.linux-x86_64-2.7/test_compile/test_cpp_flags.o\r\n  gcc -pthread -shared -Wl,-z,relro build/temp.linux-x86_64-2.7/test_compile/test_cpp_flags.o -L/usr/lib64 -o build/temp.linux-x86_64-2.7/test_compile/test_cpp_flags.so\r\n  error: mpicxx -show failed (see error below), is MPI in $PATH?\r\n  Note: If your version of MPI has a custom command to show compilation flags, please specify it with the HOROVOD_MPICXX_SHOW environment variable.\r\n  \r\n  Traceback (most recent call last):\r\n    File \"/tmp/pip-install-MkrWxc/horovod/setup.py\", line 193, in get_mpi_flags\r\n      shlex.split(show_command), universal_newlines=True).strip()\r\n    File \"/usr/lib64/python2.7/subprocess.py\", line 568, in check_output\r\n      process = Popen(stdout=PIPE, *popenargs, **kwargs)\r\n    File \"/usr/lib64/python2.7/subprocess.py\", line 711, in __init__\r\n      errread, errwrite)\r\n    File \"/usr/lib64/python2.7/subprocess.py\", line 1327, in _execute_child\r\n      raise child_exception\r\n  OSError: [Errno 2] No such file or directory\r\n  \r\n  \r\n  ----------------------------------------\r\n  Failed building wheel for horovod\r\n  Running setup.py clean for horovod\r\nFailed to build horovod\r\nipaclient 4.5.4 requires jinja2, which is not installed.\r\nrtslib-fb 2.1.63 has requirement pyudev>=0.16.1, but you'll have pyudev 0.15 which is incompatible.\r\nipapython 4.5.4 has requirement dnspython>=1.15, but you'll have dnspython 1.12.0 which is incompatible.\r\nInstalling collected packages: horovod\r\n  Running setup.py install for horovod ... error\r\n    Complete output from command /usr/bin/python2 -u -c \"import setuptools, tokenize;__file__='/tmp/pip-install-MkrWxc/horovod/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\\r\\n', '\\n');f.close();exec(compile(code, __file__, 'exec'))\" install --record /tmp/pip-record-ZjzybR/install-record.txt --single-version-externally-managed --compile:\r\n    running install\r\n    running build\r\n    running build_py\r\n    creating build\r\n    creating build/lib.linux-x86_64-2.7\r\n    creating build/lib.linux-x86_64-2.7/horovod\r\n    copying horovod/__init__.py -> build/lib.linux-x86_64-2.7/horovod\r\n    creating build/lib.linux-x86_64-2.7/horovod/keras\r\n    copying horovod/keras/__init__.py -> build/lib.linux-x86_64-2.7/horovod/keras\r\n    copying horovod/keras/callbacks.py -> build/lib.linux-x86_64-2.7/horovod/keras\r\n    creating build/lib.linux-x86_64-2.7/horovod/torch\r\n    copying horovod/torch/mpi_ops.py -> build/lib.linux-x86_64-2.7/horovod/torch\r\n    copying horovod/torch/__init__.py -> build/lib.linux-x86_64-2.7/horovod/torch\r\n    creating build/lib.linux-x86_64-2.7/horovod/common\r\n    copying horovod/common/__init__.py -> build/lib.linux-x86_64-2.7/horovod/common\r\n    creating build/lib.linux-x86_64-2.7/horovod/tensorflow\r\n    copying horovod/tensorflow/mpi_ops.py -> build/lib.linux-x86_64-2.7/horovod/tensorflow\r\n    copying horovod/tensorflow/__init__.py -> build/lib.linux-x86_64-2.7/horovod/tensorflow\r\n    creating build/lib.linux-x86_64-2.7/horovod/torch/mpi_lib\r\n    copying horovod/torch/mpi_lib/__init__.py -> build/lib.linux-x86_64-2.7/horovod/torch/mpi_lib\r\n    creating build/lib.linux-x86_64-2.7/horovod/torch/mpi_lib_impl\r\n    copying horovod/torch/mpi_lib_impl/__init__.py -> build/lib.linux-x86_64-2.7/horovod/torch/mpi_lib_impl\r\n    running build_ext\r\n    gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -std=c++11 -fPIC -O2 -I/usr/include/python2.7 -c build/temp.linux-x86_64-2.7/test_compile/test_cpp_flags.cc -o build/temp.linux-x86_64-2.7/test_compile/test_cpp_flags.o\r\n    gcc -pthread -shared -Wl,-z,relro build/temp.linux-x86_64-2.7/test_compile/test_cpp_flags.o -L/usr/lib64 -o build/temp.linux-x86_64-2.7/test_compile/test_cpp_flags.so\r\n    error: mpicxx -show failed (see error below), is MPI in $PATH?\r\n    Note: If your version of MPI has a custom command to show compilation flags, please specify it with the HOROVOD_MPICXX_SHOW environment variable.\r\n    \r\n    Traceback (most recent call last):\r\n      File \"/tmp/pip-install-MkrWxc/horovod/setup.py\", line 193, in get_mpi_flags\r\n        shlex.split(show_command), universal_newlines=True).strip()\r\n      File \"/usr/lib64/python2.7/subprocess.py\", line 568, in check_output\r\n        process = Popen(stdout=PIPE, *popenargs, **kwargs)\r\n      File \"/usr/lib64/python2.7/subprocess.py\", line 711, in __init__\r\n        errread, errwrite)\r\n      File \"/usr/lib64/python2.7/subprocess.py\", line 1327, in _execute_child\r\n        raise child_exception\r\n    OSError: [Errno 2] No such file or directory\r\n    \r\n    \r\n    ----------------------------------------\r\nCommand \"/usr/bin/python2 -u -c \"import setuptools, tokenize;__file__='/tmp/pip-install-MkrWxc/horovod/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\\r\\n', '\\n');f.close();exec(compile(code, __file__, 'exec'))\" install --record /tmp/pip-record-ZjzybR/install-record.txt --single-version-externally-managed --compile\" failed with error code 1 in /tmp/pip-install-MkrWxc/horovod/\r\n```\r\n\r\nError says: `error: mpicxx -show failed (see error below), is MPI in $PATH?`, but I have OpenMPI 3.1.0 installed:\r\n\r\n```\r\n$ mpirun --version\r\nmpirun (Open MPI) 3.1.0\r\n\r\nReport bugs to http://www.open-mpi.org/community/help/\r\n```\r\n\r\nand path already set in the `$PATH`:\r\n\r\n```\r\n$ which mpicc\r\n/usr/local/bin/mpicc\r\n$ echo $PATH\r\n/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/novuforce/.local/bin:/home/novuforce/bin:/usr/local/bin/\r\n```\r\n\r\nAny idea what is the root cause of this installation error?"},"comment":{"url":"https://api.github.com/repos/uber/horovod/issues/comments/407511870","html_url":"https://github.com/uber/horovod/issues/386#issuecomment-407511870","issue_url":"https://api.github.com/repos/uber/horovod/issues/386","id":407511870,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNzUxMTg3MA==","user":{"login":"1duo","id":6426433,"node_id":"MDQ6VXNlcjY0MjY0MzM=","avatar_url":"https://avatars2.githubusercontent.com/u/6426433?v=4","gravatar_id":"","url":"https://api.github.com/users/1duo","html_url":"https://github.com/1duo","followers_url":"https://api.github.com/users/1duo/followers","following_url":"https://api.github.com/users/1duo/following{/other_user}","gists_url":"https://api.github.com/users/1duo/gists{/gist_id}","starred_url":"https://api.github.com/users/1duo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/1duo/subscriptions","organizations_url":"https://api.github.com/users/1duo/orgs","repos_url":"https://api.github.com/users/1duo/repos","events_url":"https://api.github.com/users/1duo/events{/privacy}","received_events_url":"https://api.github.com/users/1duo/received_events","type":"User","site_admin":false},"created_at":"2018-07-24T18:45:43Z","updated_at":"2018-07-24T18:45:43Z","author_association":"NONE","body":"Hi @alsrgv , which docker base image are you using?"}}
{"actor":{"display_login":"1duo"}}