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

Support for Python3.11 #356

Open
mariya-interra opened this issue May 9, 2023 · 10 comments
Open

Support for Python3.11 #356

mariya-interra opened this issue May 9, 2023 · 10 comments

Comments

@mariya-interra
Copy link

I am not able to install dependencies of this package on Python 3.11.

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

However, python3-saml package can successfully be installed on Python 3.8.
Is there any plan to support Python 3.11 ?

@Danxx26hub
Copy link

not just 3.11 but seems to be anything higher than 3.8:

pip 22.0.2 from /home/danielgalvan/PythonProjects/Onelogin/env/lib/python3.10/site-packages/pip (python 3.10)
(saml) danielgalvan@ubnt22:/PythonProjects/Onelogin$ python --version
Python 3.10.6
(saml) danielgalvan@ubnt22:
/PythonProjects/Onelogin$ pip install python3-saml
Collecting python3-saml
Using cached python3_saml-1.15.0-py3-none-any.whl (76 kB)
Collecting xmlsec>=1.3.9
Using cached xmlsec-1.3.13.tar.gz (64 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting isodate>=0.6.1
Using cached isodate-0.6.1-py2.py3-none-any.whl (41 kB)
Requirement already satisfied: lxml!=4.7.0,>=4.6.5 in ./env/lib/python3.10/site-packages (from python3-saml) (4.9.2)
Collecting six
Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
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
╰─> [13 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-cpython-310
creating build/lib.linux-x86_64-cpython-310/xmlsec
copying src/xmlsec/py.typed -> build/lib.linux-x86_64-cpython-310/xmlsec
copying src/xmlsec/init.pyi -> build/lib.linux-x86_64-cpython-310/xmlsec
copying src/xmlsec/constants.pyi -> build/lib.linux-x86_64-cpython-310/xmlsec
copying src/xmlsec/tree.pyi -> build/lib.linux-x86_64-cpython-310/xmlsec
copying src/xmlsec/template.pyi -> build/lib.linux-x86_64-cpython-310/xmlsec
running build_ext
error: Unable to invoke pkg-config.
[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
(saml) danielgalvan@ubnt22:~/PythonProjects/Onelogin$

@davetrollope
Copy link

I ran in to this trying to install python3-saml on an m1 mac recently using python 3.8. I believe the issue lies in the xmlsec project, not python3-saml. You might want to reach out to that project to understand its dependencies.

@pitbulk
Copy link
Contributor

pitbulk commented May 13, 2023

@Danxx26hub
Copy link

Thanks @pitbulk and @davetrollope! Appreciate the response even if its something that you can't fix at the moment! I was able to make the toolkit work with Python 3.8 but its going to be an issue in Prod since that's running 3.9.0 fortunately we are good for a little bit longer.

@mariya-interra
Copy link
Author

mariya-interra commented May 15, 2023

Thanks @pitbulk for the response. I'll follow the respective tickets of xmlsec library.

@eljeffeg
Copy link

eljeffeg commented Aug 2, 2023

Is there an alternative to using xmlsec for this project? They seem fairly non-responsive in addressing the issue even though someone created a PR to fix it back in march.

@eljeffeg
Copy link

eljeffeg commented Sep 1, 2023

I wanted to follow up on this.. I know it's not your issue, but perhaps you can reach out to the xmlsec team and get some movement. The PR is already there, they just have to merge it in and push to pypi. I have a new SAML implementation for a project and I'm going to have to recommend the team use pythonsaml2 if we can't get them to update their library, which causes issues updating containers to the latest patched versions. I do really appreciate your software and efforts. 🙏

Is there a particular piece of XMLSEC you might be able to take out of the overall library and embed in python3-saml?

@eljeffeg
Copy link

Possible replacement for python-xmlsec. https://github.com/XML-Security/signxml

@kennedymeadows
Copy link

Hey did this ever get resolved? I'm running into this issue trying to use python3-saml

@CyDefender
Copy link

CyDefender commented Mar 26, 2024

Just waiting on https://github.com/xmlsec/python-xmlsec to push a new release to pypi, but they've made the updates.

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

No branches or pull requests

7 participants