Skip to content
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

I can't install xmlsec on Windows 10 #88

Closed
priyank001 opened this issue Sep 20, 2018 · 10 comments
Closed

I can't install xmlsec on Windows 10 #88

priyank001 opened this issue Sep 20, 2018 · 10 comments

Comments

@priyank001
Copy link

I am trying to install xmlsec for Python3-SAML in Windows 10 .
I am using Python3.7.0
SAML2.4.0

> pip install xmlsec
Collecting xmlsec
  Using cached https://files.pythonhosted.org/packages/35/42/d7cd323c91d4706f3cc32ffe7d5f851ab8ef9898ccb350f6ba593dd8b89a/xmlsec-1.3.3.tar.gz
Requirement already satisfied: pkgconfig in c:\program files (x86)\python37-32\lib\site-packages (from xmlsec) (1.4.0)
Requirement already satisfied: lxml>=3.0 in c:\program files (x86)\python37-32\lib\site-packages (from xmlsec) (4.2.4)
Installing collected packages: xmlsec
  Running setup.py install for xmlsec ... error
    Complete output from command "c:\program files (x86)\python37-32\python.exe" -u -c "import setuptools, tokenize;__file__='C:\\Users\\PRIYAN~1.NAM\\AppData\\Local\\Temp\\pip-install-viofqfv7\\xmlsec\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\PRIYAN~1.NAM\AppData\Local\Temp\pip-record-d9pyi15h\install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_ext
    error: HTTP Error 404: The specified blob does not exist.
    Retrieving "https://ci.appveyor.com/api/buildjobs/7k878q7rvogcdyd9/artifacts/libxml2-2.9.4.win32.zip" to "build/extra\libxml2-2.9.4.win32.zip"

    ----------------------------------------
Command ""c:\program files (x86)\python37-32\python.exe" -u -c "import setuptools, tokenize;__file__='C:\\Users\\PRIYAN~1.NAM\\AppData\\Local\\Temp\\pip-install-viofqfv7\\xmlsec\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\PRIYAN~1.NAM\AppData\Local\Temp\pip-record-d9pyi15h\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\PRIYAN~1.NAM\AppData\Local\Temp\pip-install-viofqfv7\xmlsec\
@bgaifullin
Copy link
Collaborator

There is a problems with pushing new version to pypi, as a workarround you can download latest version from github. https://github.com/mehcode/python-xmlsec/releases/tag/1.3.5

@mehcode could you please check: travis fails with error

HTTPError: 401 Client Error: This password appears in a breach or has been compromised and cannot be used. See the FAQ entry at https://pypi.org/help/#compromised-password for more information. for url: https://upload.pypi.org/legacy/

@Jyotir-Parmar
Copy link

Jyotir-Parmar commented Sep 26, 2018

Hi @bgaifullin,

I am also not able to install it on Mac or Centos. This is the error i am getting.

Failed building wheel for xmlsec

Command "/Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/private/var/folders/j8/gzn7zrh52zz52pq1gnc_c4980000gn/T/pip-qr7r5w68-build/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /var/folders/j8/gzn7zrh52zz52pq1gnc_c4980000gn/T/pip-6bxlfqza-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/j8/gzn7zrh52zz52pq1gnc_c4980000gn/T/pip-qr7r5w68-build/

I have downloaded the source from and tried to pip install .. It is still giving same error.

@bgaifullin
Copy link
Collaborator

@Jyotir-Parmar can you try to build with vebose mode, to get more information about error.
pip -v install ...

@Jyotir-Parmar
Copy link

Jyotir-Parmar commented Oct 4, 2018

@bgaifullin here is the full error log

`Collecting xmlsec
1 location(s) to search for versions of xmlsec:

The link you have provided only for windows right?

@bgaifullin
Copy link
Collaborator

/tmp/pip-build-98_8l9kh/xmlsec/src/platform.h:16:20: fatal error: Python.h: No such file or directory
#include <Python.h>

the problem is here?

you need to add directory with python header files into headers search path, I am not familiar with windows and do not know how to do this. As alternative you can use pre-built binaries with are attached to repository. https://github.com/mehcode/python-xmlsec/releases/tag/1.3.5

@srianbury
Copy link

srianbury commented Feb 4, 2019

Maybe someone with more knowledge about xmlsec can provide more detail about my response but here is what I have found. @bgaifullin provided .whls above which are for python 2.7 and 3.6 which tells me there's no xmlsec for python 3.7? which the user stated they are using. I was also using python 3.7 and when after I downloaded the .whl and did pip install .whl I got something like "this whl is not supported for this platform" meaning not suitable for 3.7, I believe. I was just starting the project with boilerplate code so I switched to 3.6, downloaded the .whl, pip installed it and it downloaded successfully.

@vsingh63
Copy link

vsingh63 commented Feb 5, 2019

Maybe someone with more knowledge about xmlsec can provide more detail about my response but here is what I have found. @bgaifullin provided .whls above which are for python 2.7 and 3.6 which tells me there's no xmlsec for python 3.7? which the user stated they are using. I was also using python 3.7 and when after I downloaded the .whl and did pip install .whl I got something like "this whl is not supported for this platform" meaning not suitable for 3.7, I believe. I was just starting the project with boilerplate code so I switched to 3.6, downloaded the .whl, pip installed it and it downloaded.

yeah. I'm also facing the same issue, available binaries are supported till python 3.6 only.

@srianbury
Copy link

any plan/ timeline to write a version for python 3.7?

@talebi1
Copy link

talebi1 commented Jan 6, 2020

Duplicate of #98

@hoefling
Copy link
Member

A new version 1.3.7 was released today. One of the notable changes includes pushing prebuilt wheels for Windows on PyPI, so the issue with building Windows wheels locally should be resolved. Install as usual:

pip install xmlsec

Should you experience any issues with prebuilt wheels on Windows, please don't hesitate to open a new issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants