Skip to content

Help installing ssh2-python on alpine docker container #184

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

Closed
Maz4id opened this issue Dec 11, 2022 · 2 comments
Closed

Help installing ssh2-python on alpine docker container #184

Maz4id opened this issue Dec 11, 2022 · 2 comments

Comments

@Maz4id
Copy link

Maz4id commented Dec 11, 2022

This is not an issue with ssh2-python, I just need some help getting it to work on stock alpine.

I built an app and now I'm trying to add docker support to it. As os, I picked alpine because it's lightweight, but I'm getting an error while using python3 -m pip install ssh2-python
I will also attach a screenshot of each error because it's easier to read
error1.png
error2.png

Steps to reproduce:

user@localhost:~$ docker run -it alpine:latest
/ # apk update && apk upgrade
/ # apk add python3 py3-pip
/ # python3 -m pip install --upgrade pip
/ # python3 -m pip install ssh2-python
After this command I get:
error1.txt
I also tried to add cmake to the system by running apk add cmake, but then you get another error:
error2.txt

@namruf15
Copy link

Most likely my feature request for musllinux whell would help you here - #191

@pkittenis
Copy link
Member

Best to get any compilation working first. Installing on another architecture means building libssh2 which requires a GCC or equivalent toolchain.

@ParallelSSH ParallelSSH locked as resolved and limited conversation to collaborators Jan 12, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants