pysaml2 icon indicating copy to clipboard operation
pysaml2 copied to clipboard

Examples guide does not work

Open ndinev opened this issue 2 years ago • 0 comments

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

ndinev avatar Jun 14 '23 15:06 ndinev