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

Examples guide does not work #915

Open
ndinev opened this issue Jun 14, 2023 · 0 comments
Open

Examples guide does not work #915

ndinev opened this issue Jun 14, 2023 · 0 comments

Comments

@ndinev
Copy link

ndinev commented Jun 14, 2023

I am trying to run some example but facing problems:

I'm using windows 2022, I installed with pip install pysaml2 - was ok

Docs I am reading: docs/examples/idp.rst

Example I am trying to run : example/idp2

Problem 1: it says run make_metadata.py idp_conf.py > idp.xml - there is no such file make_metadata.py in the local folder
I found that there is such file ..\..\src\saml2\tools\make_metadata.py and tried with it - > see fail below

# ..\..\src\saml2\tools\make_metadata.py ipd_conf.py > ipd.xml
Traceback (most recent call last):
  File "C:\github\pysaml2\src\saml2\tools\make_metadata.py", line 6, in <module>
    from saml2.config import Config
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\saml2\config.py", line 19, in <module>
    from saml2.mdstore import MetadataStore
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\saml2\mdstore.py", line 44, in <module>
    from saml2.httpbase import HTTPBase
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\saml2\httpbase.py", line 15, in <module>
    from saml2.pack import make_soap_enveloped_saml_thingy
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\saml2\pack.py", line 27, in <module>
    from saml2.sigver import REQ_ORDER
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\saml2\sigver.py", line 31, in <module>
    from OpenSSL import crypto
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\OpenSSL\__init__.py", line 8, in <module>
    from OpenSSL import SSL, crypto
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\OpenSSL\SSL.py", line 19, in <module>
    from OpenSSL.crypto import (
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\OpenSSL\crypto.py", line 3263, in <module>
    utils.deprecated(
TypeError: deprecated() got an unexpected keyword argument 'name'

Code Version

latest master

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

1 participant