0

I am trying to install parallel-ssh (pip install parallel-ssh) on MacOs Monterey but failing with the following error. I also tried to install parallel-ssh through Pycharm and failed. Does anyone have any idea on how to resolve this?

  Building wheel for ssh-python (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [12 lines of output]
      SYSTEM_LIBSSH is unset, starting embedded libssh build
      /bin/sh: cmake: command not found
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/private/tmp/pip-install-6a7nbbpj/ssh-python_eccf1f272ead42b1bfd160d149a858cb/setup.py", line 38, in <module>
          build_ssh()
        File "/private/tmp/pip-install-6a7nbbpj/ssh-python_eccf1f272ead42b1bfd160d149a858cb/_setup_libssh.py", line 44, in build_ssh
          check_call("""cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../local \
        File "/opt/homebrew/Cellar/python@3.9/3.9.16/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 373, in check_call
          raise CalledProcessError(retcode, cmd)
      subprocess.CalledProcessError: Command 'cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../local     -DWITH_GSSAPI=ON     -DWITH_EXAMPLES=OFF     ../libssh' returned non-zero exit status 127.
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for ssh-python
  Running setup.py clean for ssh-python
  Building wheel for ssh2-python (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [11 lines of output]
      /bin/sh: cmake: command not found
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/private/tmp/pip-install-6a7nbbpj/ssh2-python_a7d066eb610d4e788ed21e235ed8d243/setup.py", line 32, in <module>
          build_ssh2()
        File "/private/tmp/pip-install-6a7nbbpj/ssh2-python_a7d066eb610d4e788ed21e235ed8d243/_setup_libssh2.py", line 35, in build_ssh2
          check_call('cmake ../libssh2/libssh2 -DBUILD_SHARED_LIBS=ON \
        File "/opt/homebrew/Cellar/python@3.9/3.9.16/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 373, in check_call
          raise CalledProcessError(retcode, cmd)
      subprocess.CalledProcessError: Command 'cmake ../libssh2/libssh2 -DBUILD_SHARED_LIBS=ON     -DENABLE_ZLIB_COMPRESSION=ON -DENABLE_CRYPT_NONE=ON     -DENABLE_MAC_NONE=ON -DCRYPTO_BACKEND=OpenSSL' returned non-zero exit status 127.
      [end of output]
  
PloniStacker
  • 574
  • 4
  • 23

0 Answers0