Skip to content

xmlsec installation is getting failed on windows. #263

Open
@fahedm

Description

@fahedm

Hi,

I'm on Windows Machine with Python 3.11
I don't want to downgrad python as other packages are dependent on it.
I'm trying to install python3-saml, it has dependency of xmlsec. This package is giving me issues while installation.

Building wheels for collected packages: xmlsec
Building wheel for xmlsec (pyproject.toml) ... error
error: subprocess-exited-with-error

× Building wheel for xmlsec (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [22 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-311
creating build\lib.win-amd64-cpython-311\xmlsec
copying src\xmlsec\py.typed -> build\lib.win-amd64-cpython-311\xmlsec
copying src\xmlsec\constants.pyi -> build\lib.win-amd64-cpython-311\xmlsec
copying src\xmlsec\template.pyi -> build\lib.win-amd64-cpython-311\xmlsec
copying src\xmlsec\tree.pyi -> build\lib.win-amd64-cpython-311\xmlsec
copying src\xmlsec_init_.pyi -> build\lib.win-amd64-cpython-311\xmlsec
running build_ext
starting static build on win32
Lib sources in: C:\Users\css148300\Desktop\OfficeProjects\DevHub\gsso-devhub-be\python-xmlsec\libs
Retrieving "https://github.com/bgaifullin/libxml2-win-binaries/releases/download/v2018.08/libxml2-2.9.4.win64.zip" to "libs\libxml2-2.9.4.win64.zip"
Retrieving "https://github.com/bgaifullin/libxml2-win-binaries/releases/download/v2018.08/libxslt-1.1.29.win64.zip" to "libs\libxslt-1.1.29.win64.zip"
Retrieving "https://github.com/bgaifullin/libxml2-win-binaries/releases/download/v2018.08/zlib-1.2.8.win64.zip" to "libs\zlib-1.2.8.win64.zip"
Retrieving "https://github.com/bgaifullin/libxml2-win-binaries/releases/download/v2018.08/iconv-1.14.win64.zip" to "libs\iconv-1.14.win64.zip"
Retrieving "https://github.com/bgaifullin/libxml2-win-binaries/releases/download/v2018.08/openssl-1.0.1.win64.zip" to "libs\openssl-1.0.1.win64.zip"
Retrieving "https://github.com/bgaifullin/libxml2-win-binaries/releases/download/v2018.08/xmlsec-1.2.24.win64.zip" to "libs\xmlsec-1.2.24.win64.zip"
building 'xmlsec' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
[end of output]

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

I have build tools installed. I read numerous articles and tried every workaround but still no solution to this.
I have tried in WSL as well, but same kind of issue.
I have tried on Mac, there it was giving issue, but with help of #254 (comment) , I was able to resolve the issue on Mac.

do we have any solution/workaround for windows system?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions