-
Notifications
You must be signed in to change notification settings - Fork 99
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
xmlsec installation is getting failed on windows. #263
Comments
I am stuck around this area too. I do believe that the windows C++ stuff is a red herring. `..... note: This error originates from a subprocess, and is likely not a problem with pip. |
For Windows. there is a work around with WSL I installed Ubuntu 22.04 on WSL and tried installing xmlsec there. But again same kind of issue. Installed brew in Ubuntu, and followed the same workaround as written in #254 (comment) Now, I could install xmlsec. Hopefully, in new version these issues with different platforms will be taken care. Detailed Medium Article for this issue on windows |
I'm currently trying to ugprade from python 3.10 to 3.11 and this is blocking me, is there any update since this was opened? |
For people who want to build their own wheel for 3.11 and 3.12 on Windows. Pre-req
You can do the following in Powershell (v7.4x) git clone https://github.com/xmlsec/python-xmlsec.git The wheel file will be in the dist folder. Hope this helps I'm hoping @hoefling or someone who has merge priveleges can make these generate a new release for 3.11 and 3.12 |
@tkbaca I can't get your solution to work. C:...\libxml2-win-binaries\libiconv\MSVC14\libiconv.sln.metaproj : error MSB4126: The speci |
@hegeteus Try running the build with Run .\build.ps1 /x64 |
@tkbaca Thanks for the quick reply and help with the issue. That didn't work for me so I bruteforced the build.ps1 to only accept X64 and now it works... $x64Dir = "\x64" This isn't a familiar environment for me (obviously), so maybe I screwed up while installing or configuring something with VS or the PowerShell. Gonna try building the wheel tomorrow though, but at least the zip files now seem to be in place as described in dist folder! |
I uploaded here for Python 3.12: https://github.com/mymy47/python-builds-for-windows/releases |
Can you try it with the new release 1.3.14? We also provided wheels for windows OS. |
This works for window i can confirm. |
I am getting the error me too
|
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?
The text was updated successfully, but these errors were encountered: