Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

available for macos #506

Closed
jorgenspange opened this issue Jun 14, 2023 · 2 comments
Closed

available for macos #506

jorgenspange opened this issue Jun 14, 2023 · 2 comments

Comments

@jorgenspange
Copy link

jorgenspange commented Jun 14, 2023

While installing on macos it fails:

[jorgenspange@Jorgens-MBP Documents/ansible-network-automation (main) ]$ pip3 install ansible-pylibssh
Defaulting to user installation because normal site-packages is not writeable
Collecting ansible-pylibssh
  Using cached ansible-pylibssh-1.1.0.tar.gz (106 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
  Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: ansible-pylibssh
  Building wheel for ansible-pylibssh (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for ansible-pylibssh (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [6 lines of output]
      [1/1] Cythonizing /private/var/folders/3q/9k4kbkrd23d5cqh0lv32spjm0000gn/T/pip-install-361i30jd/ansible-pylibssh_116e4812957149af936655be7c4c8d70/src/pylibsshext/_libssh_version.pyx
      /private/var/folders/3q/9k4kbkrd23d5cqh0lv32spjm0000gn/T/pip-install-361i30jd/ansible-pylibssh_116e4812957149af936655be7c4c8d70/src/pylibsshext/_libssh_version.c:761:10: fatal error: 'libssh/libssh.h' file not found
      #include "libssh/libssh.h"
               ^~~~~~~~~~~~~~~~~
      1 error generated.
      error: command '/usr/bin/clang' failed with exit code 1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for ansible-pylibssh
Failed to build ansible-pylibssh
ERROR: Could not build wheels for ansible-pylibssh, which is required to install pyproject.toml-based projects

Would be nice to install pylibssh to macos (apple silicon) via homebrew aswell.

@webknjaz
Copy link
Member

Duplicate of #207.

@webknjaz webknjaz closed this as not planned Won't fix, can't repro, duplicate, stale Jan 18, 2024
@webknjaz
Copy link
Member

You can make the compilation succeed by putting the libssh-dev into the right location, like it's done in our CI.

Refs https://stackoverflow.com/a/75473525/595220

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants