Skip to content

Error on installing xmlsec 1.3.15 #349

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

Open
ruihilsar opened this issue Apr 10, 2025 · 1 comment
Open

Error on installing xmlsec 1.3.15 #349

ruihilsar opened this issue Apr 10, 2025 · 1 comment

Comments

@ruihilsar
Copy link

`bash-5.1# pip3 install --no-cache-dir xmlsec
Looking in indexes: https://artifactory.oci.oraclecorp.com/api/pypi/global-release-pypi/simple
Collecting xmlsec
Downloading https://artifactory.oci.oraclecorp.com/api/pypi/global-release-pypi/packages/packages/6b/0b/d851367799b865500efd0b255c39fc5d30892ea28c1569ca185a76d19576/xmlsec-1.3.15.tar.gz (114 kB)
|████████████████████████████████| 114 kB 1.2 MB/s
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: lxml>=3.8 in /usr/local/lib64/python3.9/site-packages (from xmlsec) (5.3.2)
Building wheels for collected packages: xmlsec
Building wheel for xmlsec (pyproject.toml) ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 /usr/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py build_wheel /tmp/tmp08neabpc
cwd: /tmp/pip-install-bmlzwjcl/xmlsec_407e597ac11a41e1ad12553ef6cab1c2
Complete output (29 lines):
WARNING setuptools_scm.pyproject_reading toml section missing 'pyproject.toml does not contain a tool.setuptools_scm section'
Traceback (most recent call last):
File "/tmp/pip-build-env-s7dswzus/overlay/lib/python3.9/site-packages/setuptools_scm/_integration/pyproject_reading.py", line 36, in read_pyproject
section = defn.get("tool", {})[tool_name]
KeyError: 'setuptools_scm'
/tmp/pip-build-env-s7dswzus/overlay/lib/python3.9/site-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
!!

      ********************************************************************************
      Please consider removing the following classifiers in favor of a SPDX license expression:

      License :: OSI Approved :: MIT License

      See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
      ********************************************************************************

!!
self._finalize_license_expression()
running bdist_wheel
running build
running build_py
creating build/lib.linux-aarch64-cpython-39/xmlsec
copying src/xmlsec/init.pyi -> build/lib.linux-aarch64-cpython-39/xmlsec
copying src/xmlsec/constants.pyi -> build/lib.linux-aarch64-cpython-39/xmlsec
copying src/xmlsec/template.pyi -> build/lib.linux-aarch64-cpython-39/xmlsec
copying src/xmlsec/tree.pyi -> build/lib.linux-aarch64-cpython-39/xmlsec
copying src/xmlsec/py.typed -> build/lib.linux-aarch64-cpython-39/xmlsec
running build_ext
error: xmlsec1 is not installed or not in path.

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`

this is the error message above.
can not build because of pyproject.toml. and /tmp/pip-build-env-s7dswzus/overlay/lib/python3.9/site-packages/setuptools_scm/_integration/pyproject_reading.py is not available since it is in the tmp during the building process.

By the way, we have to make the alternative approach below, and it is working so far:
pip3 install --no-cache-dir xmlsec==1.3.14

@ruihilsar
Copy link
Author

ruihilsar commented Apr 14, 2025

this is the dockerFile building that replicate this issue:

FROM ghcr.io/oracle/oraclelinux:9

RUN dnf update -y \
    && dnf module enable nginx:1.24 \
    && dnf install -y python python-pip python-setuptools python-pip-wheel gcc python-devel \
    vi jq curl hostname vim-minimal nc man-pages man-db man net-tools

# This installs xmlsec 1.3.15
RUN pip3 install --no-cache-dir xmlsec

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