xmlsec / python-xmlsec

Python bindings for the XML Security Library.
MIT License
95 stars 99 forks source link

Unable to pip install on MacOS 12.6 #242

Closed syberen closed 2 years ago

syberen commented 2 years ago

I've been trying to install xmlsec into my virtual environment, but keep getting an error saying xmlsec1 is not installed or not in path.

I've installed the required packages from the docs using homebrew. Tried using python version 3.8, 3.9 and 3.10

Also running xmlsec1 --version returns xmlsec1 1.2.34 (openssl), so it appears to be installed.

Any help would greatly appreciated! Full error below

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.macosx-12.6-x86_64-cpython-38
      creating build/lib.macosx-12.6-x86_64-cpython-38/xmlsec
      copying src/xmlsec/py.typed -> build/lib.macosx-12.6-x86_64-cpython-38/xmlsec
      copying src/xmlsec/tree.pyi -> build/lib.macosx-12.6-x86_64-cpython-38/xmlsec
      copying src/xmlsec/__init__.pyi -> build/lib.macosx-12.6-x86_64-cpython-38/xmlsec
      copying src/xmlsec/constants.pyi -> build/lib.macosx-12.6-x86_64-cpython-38/xmlsec
      copying src/xmlsec/template.pyi -> build/lib.macosx-12.6-x86_64-cpython-38/xmlsec
      running build_ext
      error: xmlsec1 is not installed or not in path.
      [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
syberen commented 2 years ago

I had a path set in my .zshrc which I removed, that fixed it

export PATH=/Applications/MAMP/Library/bin:/Applications/MAMP/bin/php/php7.4.21/bin:$PATH