xmlsec / python-xmlsec

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

Building wheel error code 1 #213

Closed nightmare-wolf closed 2 years ago

nightmare-wolf commented 2 years ago

Here is an output: pip3.7: ]# pip3.7 install . Processing /root/Downloads/caldera/plugins/saml/python-xmlsec Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Requirement already satisfied: lxml>=3.8 in /opt/usr_local/lib/python3.7/site-packages (from xmlsec==1.3.13.dev5+gbf6984a) (4.6.5) 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 ╰─> [5 lines of output] running bdist_wheel running build running build_py 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

pip3.9: ]# pip3.9 install . Processing /root/Downloads/caldera/plugins/saml/python-xmlsec Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Requirement already satisfied: lxml>=3.8 in /opt/usr_local/lib/python3.9/site-packages (from xmlsec==1.3.13.dev5+gbf6984a) (4.6.5) 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 ╰─> [5 lines of output] running bdist_wheel running build running build_py 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

Outputs are the same. I am currently using Fedora RHEL 8. When i attempt to install the dependencies i get the following: dnf install libxml2-devel xmlsec1-devel xmlsec1-openssl-devel libtool-ltdl-devel Updating Subscription Management repositories. Last metadata expiration check: 3:02:11 ago on Wed 13 Jul 2022 09:07:07 AM CDT. No match for argument: libxml2-devel No match for argument: xmlsec1-devel No match for argument: xmlsec1-openssl-devel No match for argument: libtool-ltdl-devel Error: Unable to find a match: libxml2-devel xmlsec1-devel xmlsec1-openssl-devel libtool-ltdl-devel

But i do have the following libraries installed: libxml2.x86_64 xmlsec1.x86_64 xmlsec1-openssl.x86_64 libtool-ltdl.x86_64

I cannot figure out why the install is not completing.

nightmare-wolf commented 2 years ago

Corp was blocking access to the repos that hosted the dev packages. I was able to install them after they allowed the repos and xmlsec installed perfectly.