Skip to content

Error on installing xmlsec 1.3.15 #349

Open
@ruihilsar

Description

@ruihilsar

`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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions