SAML-Toolkits / python3-saml

MIT License
704 stars 309 forks source link

Cannot install python3-saml #318

Closed rafzei closed 2 years ago

rafzei commented 2 years ago

Hi, got an error during pip install python3-saml: I've python 3.10 venv

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/template.pyi -> build/lib.linux-x86_64-cpython-310/xmlsec
      copying src/xmlsec/tree.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
rafzei commented 2 years ago

Solved, missing packages: libxmlsec1 libxmlsec1-dev libxml2 pkg-config

johnnymetz commented 1 year ago

Got it working on mac with brew install libxmlsec1

My coworker needed brew install libxmlsec1 libxml2 pkg-config on his older mac.