python2.7 tools/run_tests/run_tests.py -l=python --compiler=python2.7 --newline_on_success pyenv-implicit: found multiple python2.7 in pyenv. Use version 2.7-dev. ++ dirname /Users/siddharthshukla/grpc/tools/run_tests/build_python.sh + cd /Users/siddharthshukla/grpc/tools/run_tests/../.. ++ uname -s + PLATFORM=Darwin + PYTHON=python2.7 + VENV=py27 + VENV_RELATIVE_PYTHON=bin/python + TOOLCHAIN=unix ++ pwd + ROOT=/Users/siddharthshukla/grpc + export 'CFLAGS=-I/Users/siddharthshukla/grpc/include -std=gnu99 -fno-wrapv ' + CFLAGS='-I/Users/siddharthshukla/grpc/include -std=gnu99 -fno-wrapv ' + export GRPC_PYTHON_BUILD_WITH_CYTHON=1 + GRPC_PYTHON_BUILD_WITH_CYTHON=1 + export LANG=en_US.UTF-8 + LANG=en_US.UTF-8 + HOST_PYTHON=python ++ is_linux ++ '[' Darwin '!=' Darwin ']' ++ exit 1 + '[' ']' ++ is_mingw ++ '[' Darwin '!=' Darwin ']' ++ exit 1 + '[' ']' + python2.7 -m virtualenv py27 New python executable in /Users/siddharthshukla/grpc/py27/bin/python2.7 Not overwriting existing python script /Users/siddharthshukla/grpc/py27/bin/python (you must use /Users/siddharthshukla/grpc/py27/bin/python2.7) Installing setuptools, pip, wheel...done. ++ script_realpath -s py27/bin/python +++ command -v realpath ++ '[' -x /usr/local/bin/realpath ']' ++ realpath -s py27/bin/python + VENV_PYTHON=/Users/siddharthshukla/grpc/py27/bin/python + /Users/siddharthshukla/grpc/py27/bin/python -m pip install --upgrade pip Requirement already up-to-date: pip in ./py27/lib/python2.7/site-packages + /Users/siddharthshukla/grpc/py27/bin/python -m pip install setuptools==25.1.1 Collecting setuptools==25.1.1 Using cached setuptools-25.1.1-py2.py3-none-any.whl Installing collected packages: setuptools Found existing installation: setuptools 30.2.0 Uninstalling setuptools-30.2.0: Successfully uninstalled setuptools-30.2.0 Successfully installed setuptools-30.0.0 + /Users/siddharthshukla/grpc/py27/bin/python -m pip install cython Requirement already satisfied: cython in ./py27/lib/python2.7/site-packages + pip_install_dir /Users/siddharthshukla/grpc ++ pwd + PWD=/Users/siddharthshukla/grpc + cd /Users/siddharthshukla/grpc + /Users/siddharthshukla/grpc/py27/bin/python setup.py build_ext -c unix running build_ext copying python_build/lib.macosx-10.11-x86_64-2.7/grpc/_cython/cygrpc.so -> src/python/grpcio/grpc/_cython + /Users/siddharthshukla/grpc/py27/bin/python -m pip install --upgrade . Processing /Users/siddharthshukla/grpc Requirement already up-to-date: six>=1.5.2 in ./py27/lib/python2.7/site-packages (from grpcio==1.0.1) Requirement already up-to-date: enum34>=1.0.4 in ./py27/lib/python2.7/site-packages (from grpcio==1.0.1) Requirement already up-to-date: protobuf>=3.0.0 in ./py27/lib/python2.7/site-packages (from grpcio==1.0.1) Requirement already up-to-date: futures>=2.2.0 in ./py27/lib/python2.7/site-packages (from grpcio==1.0.1) Collecting setuptools (from protobuf>=3.0.0->grpcio==1.0.1) Using cached setuptools-30.2.0-py2.py3-none-any.whl Installing collected packages: grpcio, setuptools Found existing installation: grpcio 1.0.1 Uninstalling grpcio-1.0.1: Successfully uninstalled grpcio-1.0.1 Running setup.py install for grpcio: started Running setup.py install for grpcio: finished with status 'done' Found existing installation: setuptools 30.0.0 Uninstalling setuptools-30.0.0: Successfully uninstalled setuptools-30.0.0 Rolling back uninstall of setuptools Exception: Traceback (most recent call last): File "/Users/siddharthshukla/grpc/py27/lib/python2.7/site-packages/pip/basecommand.py", line 215, in main status = self.run(options, args) File "/Users/siddharthshukla/grpc/py27/lib/python2.7/site-packages/pip/commands/install.py", line 342, in run prefix=options.prefix_path, File "/Users/siddharthshukla/grpc/py27/lib/python2.7/site-packages/pip/req/req_set.py", line 784, in install **kwargs File "/Users/siddharthshukla/grpc/py27/lib/python2.7/site-packages/pip/req/req_install.py", line 851, in install self.move_wheel_files(self.source_dir, root=root, prefix=prefix) File "/Users/siddharthshukla/grpc/py27/lib/python2.7/site-packages/pip/req/req_install.py", line 1064, in move_wheel_files isolated=self.isolated, File "/Users/siddharthshukla/grpc/py27/lib/python2.7/site-packages/pip/wheel.py", line 247, in move_wheel_files prefix=prefix, File "/Users/siddharthshukla/grpc/py27/lib/python2.7/site-packages/pip/locations.py", line 142, in distutils_scheme i = d.get_command_obj('install', create=True) File "/Users/siddharthshukla/.pyenv/versions/2.7-dev/lib/python2.7/distutils/dist.py", line 845, in get_command_obj klass = self.get_command_class(command) File "/Users/siddharthshukla/grpc/py27/lib/python2.7/site-packages/setuptools/dist.py", line 511, in get_command_class self.cmdclass[command] = cmdclass = ep.load() File "/Users/siddharthshukla/grpc/py27/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2235, in load return self.resolve() File "/Users/siddharthshukla/grpc/py27/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2241, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) ImportError: No module named command.install FAILED: /Users/siddharthshukla/grpc/tools/run_tests/build_python.sh [ret=2, pid=512] FAILED: Some tests failed