Closed mr-jadeja closed 7 months ago
Alpine 3.18 uses libxmlsec v1.3.0, which is not yet supported by this project, it seems.
While there are many multiple ways to fix this, one easy suggestion would be try updating you base image in Dockerfile to 3.8-alpine3.10 (if running python 3.8 is fine with your project).
Other solution is, to change the Alpine Package Registry url in after the image and before doing the apk update.
You can try sharing your Dockerfile code which can help look deeper in the issue.
@lapak10 thank you for the idea of using python:3.8-alpine3.10, it works fine. Any ETA about a fix for this issue ?
Hello
In the meantime if you need to build a docker image you can just add the Alpine 3.10 repository to apk repository list:
echo "https://dl-cdn.alpinelinux.org/alpine/v3.10/community/" | tee -a /etc/apk/repositories
After that just do: apk update && apk --no-cache add xmlsec=1.2.28-r0 xmlsec-dev=1.2.28-r0
.
Now you should be able to install xmlsec via pip
My working script for using xmlsec
echo "https://dl-cdn.alpinelinux.org/alpine/v3.15/community/" | tee -a /etc/apk/repositories
echo "https://dl-cdn.alpinelinux.org/alpine/v3.15/main" | tee -a /etc/apk/repositories
apk add --no-cache libxml2-dev=2.9.14-r2 xmlsec-dev=1.2.33-r0 python3-dev py3-pip
pip install xmlsec
That's it
To prevent confusion, it would be helpful to explicitly state in the README that the requirements for libxmlsec1 should be below version 1.3 until this is addressed. Wouldn't you agree?
The new release (1.3.14) is gonna work with xmlsec1 >= 1.3.x but apparantly it still has issues with xmlsec1 1.2.x. We already have an issue (https://github.com/xmlsec/python-xmlsec/issues/314) so I'm gonna close this one.
Details