-
Notifications
You must be signed in to change notification settings - Fork 126
Install fails building wheel on alpine 3.15 #445
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
Comments
This looks like a duplicate of #432. python-ldap does not support OpenLDAP 2.5+ yet. |
Yes! So happy to see someone else is having the same relevant issue. I don't think this had ever happened to me before. I'm pretty much having the same issue
I only captured the last part of the output since it seems pretty similar at this point. @cessor correct me if I'm wrong here but I thought the FROM in the Dockerfile was supposed to be something like this: FROM python:3.8-alpine where I thought the syntax was something like [image][version-for-python]-[alpine] or is the version part supposed to be for Alpine and it pulls the latest python by default? I'm going to try what you do according the the alpine3.14 syntax. |
@cessor is using the Docker's Python container https://hub.docker.com/_/python Ticket #432 contains a simple workaround for the problem. Create a file |
@tiran thank you! I skipped that and did what @cessor did with the alpine switch. I have a bunch more packages involved so by doing that broke another when creating wheels. None the less I had to manipulate my Dockerfile as such:
I'll make a note of your suggestion just in case anything else brakes. |
@maczamora Thank you for your response; I was hesitant to post this issue at first because I thought that the case might be too specific. I am glad if I could be of help. As for your question:
Yes, the version part is for alpine; the structure is As of 2. Dec 2021, this tag is an alias for
I tend to use these very broad image tags because I want my images to keep up to date. I have my Gitlab set to build this as my base image every night so that I can detect version issues like this early on. To fix my problem, I changed my Dockerfile to:
That said: I managed to get @tiran 's suggestion to run by putting the alias for the linker into my Dockerfile:
This works as of 2. Dec 2021 when I will revisit this issue in some time. For now I don't fully understand the implications of @tiran 's solution. Ideally, I would want to do |
Should be resolved with 3.4.2 |
I apologize in advance for my ignorance but v3.4.2 of what? |
python-ldap, https://pypi.org/project/python-ldap/3.4.2/ |
Thanks for clarifying that but it did not help resolve the issue...
PRETTY_NAME="Alpine Linux v3.16" |
python-ldap 3.4.2 builds fine on Alpine 3.16 for me
|
Thanks but this is Home Assistant provided Alpine OS so not sure what they've removed/modified. The issue is with AstroWeather integration which just recently developed install issues. It uses wheel deep down. Author has JUST posted an update claiming problem solved. I will try it tomorrow... |
Could you switch to another Linux distro? |
No, that is not possible. The issue seems to have somehow been resolved though... mawinkler/astroweather#16 |
Issue description:
python-ldap does not build on Alpine 3.15.
Wheel Build crashes with error (build log attached)
/usr/lib/gcc/x86_64-alpine-linux-musl/10.3.1/../../../../x86_64-alpine-linux-musl/bin/ld: cannot find -lldap_r
Steps to reproduce:
Operating system:
Python version:
python-ldap version:
Notes:
FROM python:alpine3.14
)broken-on-python-alpine3.15.txt
The text was updated successfully, but these errors were encountered: