Skip to content
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

Unable to install on mac 13.5.2 (22G91) VENTURA #266

Closed
anandlingaraj opened this issue Sep 22, 2023 · 1 comment
Closed

Unable to install on mac 13.5.2 (22G91) VENTURA #266

anandlingaraj opened this issue Sep 22, 2023 · 1 comment

Comments

@anandlingaraj
Copy link

grumpysage > pip install xmlsec
Collecting xmlsec
Using cached xmlsec-1.3.13.tar.gz (64 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting lxml>=3.8 (from xmlsec)
Using cached lxml-4.9.3-cp39-cp39-macosx_10_9_x86_64.whl
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
╰─> [81 lines of output]
ERROR setuptools_scm._integration.setuptools pyproject.toml does not contain a tool.setuptools_scm section
Traceback (most recent call last):
File "/private/var/folders/cp/5hg790sn131_h9433n83zkb00000gn/T/pip-build-env-krklnu_o/overlay/lib/python3.9/site-packages/setuptools_scm/_integration/pyproject_reading.py", line 53, in read_pyproject
section = defn.get("tool", {})[tool_name]
KeyError: 'setuptools_scm'

  The above exception was the direct cause of the following exception:
  
  Traceback (most recent call last):
    File "/private/var/folders/cp/5hg790sn131_h9433n83zkb00000gn/T/pip-build-env-krklnu_o/overlay/lib/python3.9/site-packages/setuptools_scm/_integration/setuptools.py", line 121, in infer_version
      config = _config.Configuration.from_file(dist_name=dist_name)
    File "/private/var/folders/cp/5hg790sn131_h9433n83zkb00000gn/T/pip-build-env-krklnu_o/overlay/lib/python3.9/site-packages/setuptools_scm/_config.py", line 128, in from_file
      pyproject_data = _read_pyproject(name, _load_toml=_load_toml)
    File "/private/var/folders/cp/5hg790sn131_h9433n83zkb00000gn/T/pip-build-env-krklnu_o/overlay/lib/python3.9/site-packages/setuptools_scm/_integration/pyproject_reading.py", line 55, in read_pyproject
      raise LookupError(f"{name} does not contain a tool.{tool_name} section") from e
  LookupError: pyproject.toml does not contain a tool.setuptools_scm section
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.macosx-10.9-x86_64-cpython-39
  creating build/lib.macosx-10.9-x86_64-cpython-39/xmlsec
  copying src/xmlsec/py.typed -> build/lib.macosx-10.9-x86_64-cpython-39/xmlsec
  copying src/xmlsec/tree.pyi -> build/lib.macosx-10.9-x86_64-cpython-39/xmlsec
  copying src/xmlsec/__init__.pyi -> build/lib.macosx-10.9-x86_64-cpython-39/xmlsec
  copying src/xmlsec/constants.pyi -> build/lib.macosx-10.9-x86_64-cpython-39/xmlsec
  copying src/xmlsec/template.pyi -> build/lib.macosx-10.9-x86_64-cpython-39/xmlsec
  running build_ext
  building 'xmlsec' extension
  creating build/temp.macosx-10.9-x86_64-cpython-39
  creating build/temp.macosx-10.9-x86_64-cpython-39/private
  creating build/temp.macosx-10.9-x86_64-cpython-39/private/var
  creating build/temp.macosx-10.9-x86_64-cpython-39/private/var/folders
  creating build/temp.macosx-10.9-x86_64-cpython-39/private/var/folders/cp
  creating build/temp.macosx-10.9-x86_64-cpython-39/private/var/folders/cp/5hg790sn131_h9433n83zkb00000gn
  creating build/temp.macosx-10.9-x86_64-cpython-39/private/var/folders/cp/5hg790sn131_h9433n83zkb00000gn/T
  creating build/temp.macosx-10.9-x86_64-cpython-39/private/var/folders/cp/5hg790sn131_h9433n83zkb00000gn/T/pip-install-s0nk0ale
  creating build/temp.macosx-10.9-x86_64-cpython-39/private/var/folders/cp/5hg790sn131_h9433n83zkb00000gn/T/pip-install-s0nk0ale/xmlsec_29a92ac960da43698215f1b2256088cc
  creating build/temp.macosx-10.9-x86_64-cpython-39/private/var/folders/cp/5hg790sn131_h9433n83zkb00000gn/T/pip-install-s0nk0ale/xmlsec_29a92ac960da43698215f1b2256088cc/src
  gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -D__XMLSEC_FUNCTION__=__func__ -DXMLSEC_NO_FTP=1 -DXMLSEC_NO_MD5=1 -DXMLSEC_NO_GOST=1 -DXMLSEC_NO_GOST2012=1 -DXMLSEC_NO_CRYPTO_DYNAMIC_LOADING=1 -DXMLSEC_CRYPTO_OPENSSL=1 -DMODULE_NAME=xmlsec -DMODULE_VERSION=1.3.13 -I/usr/local/Cellar/libxmlsec1/1.3.1_1/include/xmlsec1 -I/usr/local/opt/openssl@3/include -I/usr/local/opt/openssl@3/include/openssl -I/private/var/folders/cp/5hg790sn131_h9433n83zkb00000gn/T/pip-build-env-krklnu_o/overlay/lib/python3.9/site-packages/lxml/includes -I/private/var/folders/cp/5hg790sn131_h9433n83zkb00000gn/T/pip-build-env-krklnu_o/overlay/lib/python3.9/site-packages/lxml -I/private/var/folders/cp/5hg790sn131_h9433n83zkb00000gn/T/pip-build-env-krklnu_o/overlay/lib/python3.9/site-packages/lxml/includes/__pycache__ -I/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c /private/var/folders/cp/5hg790sn131_h9433n83zkb00000gn/T/pip-install-s0nk0ale/xmlsec_29a92ac960da43698215f1b2256088cc/src/constants.c -o build/temp.macosx-10.9-x86_64-cpython-39/private/var/folders/cp/5hg790sn131_h9433n83zkb00000gn/T/pip-install-s0nk0ale/xmlsec_29a92ac960da43698215f1b2256088cc/src/constants.o -g -std=c99 -fPIC -fno-strict-aliasing -Wno-error=declaration-after-statement -Werror=implicit-function-declaration -Os
  /private/var/folders/cp/5hg790sn131_h9433n83zkb00000gn/T/pip-install-s0nk0ale/xmlsec_29a92ac960da43698215f1b2256088cc/src/constants.c:319:5: error: use of undeclared identifier 'xmlSecSoap11Ns'
      PYXMLSEC_ADD_NS_CONSTANT(Soap11Ns, "SOAP11");
      ^
  /private/var/folders/cp/5hg790sn131_h9433n83zkb00000gn/T/pip-install-s0nk0ale/xmlsec_29a92ac960da43698215f1b2256088cc/src/constants.c:304:46: note: expanded from macro 'PYXMLSEC_ADD_NS_CONSTANT'
      tmp = PyUnicode_FromString((const char*)(JOIN(xmlSec, name))); \
                                               ^
  /private/var/folders/cp/5hg790sn131_h9433n83zkb00000gn/T/pip-install-s0nk0ale/xmlsec_29a92ac960da43698215f1b2256088cc/src/common.h:19:19: note: expanded from macro 'JOIN'
  #define JOIN(X,Y) DO_JOIN1(X,Y)
                    ^
  /private/var/folders/cp/5hg790sn131_h9433n83zkb00000gn/T/pip-install-s0nk0ale/xmlsec_29a92ac960da43698215f1b2256088cc/src/common.h:20:23: note: expanded from macro 'DO_JOIN1'
  #define DO_JOIN1(X,Y) DO_JOIN2(X,Y)
                        ^
  /private/var/folders/cp/5hg790sn131_h9433n83zkb00000gn/T/pip-install-s0nk0ale/xmlsec_29a92ac960da43698215f1b2256088cc/src/common.h:21:23: note: expanded from macro 'DO_JOIN2'
  #define DO_JOIN2(X,Y) X##Y
                        ^
  <scratch space>:209:1: note: expanded from here
  xmlSecSoap11Ns
  ^
  /private/var/folders/cp/5hg790sn131_h9433n83zkb00000gn/T/pip-install-s0nk0ale/xmlsec_29a92ac960da43698215f1b2256088cc/src/constants.c:320:5: error: use of undeclared identifier 'xmlSecSoap12Ns'; did you mean 'xmlSecXPath2Ns'?
      PYXMLSEC_ADD_NS_CONSTANT(Soap12Ns, "SOAP12");
      ^
  /private/var/folders/cp/5hg790sn131_h9433n83zkb00000gn/T/pip-install-s0nk0ale/xmlsec_29a92ac960da43698215f1b2256088cc/src/constants.c:304:46: note: expanded from macro 'PYXMLSEC_ADD_NS_CONSTANT'
      tmp = PyUnicode_FromString((const char*)(JOIN(xmlSec, name))); \
                                               ^
  /private/var/folders/cp/5hg790sn131_h9433n83zkb00000gn/T/pip-install-s0nk0ale/xmlsec_29a92ac960da43698215f1b2256088cc/src/common.h:19:19: note: expanded from macro 'JOIN'
  #define JOIN(X,Y) DO_JOIN1(X,Y)
                    ^
  /private/var/folders/cp/5hg790sn131_h9433n83zkb00000gn/T/pip-install-s0nk0ale/xmlsec_29a92ac960da43698215f1b2256088cc/src/common.h:20:23: note: expanded from macro 'DO_JOIN1'
  #define DO_JOIN1(X,Y) DO_JOIN2(X,Y)
                        ^
  /private/var/folders/cp/5hg790sn131_h9433n83zkb00000gn/T/pip-install-s0nk0ale/xmlsec_29a92ac960da43698215f1b2256088cc/src/common.h:21:23: note: expanded from macro 'DO_JOIN2'
  #define DO_JOIN2(X,Y) X##Y
                        ^
  <scratch space>:3:1: note: expanded from here
  xmlSecSoap12Ns
  ^
  /usr/local/Cellar/libxmlsec1/1.3.1_1/include/xmlsec1/xmlsec/strings.h:34:33: note: 'xmlSecXPath2Ns' declared here
  XMLSEC_EXPORT_VAR const xmlChar xmlSecXPath2Ns[];
                                  ^
  2 errors generated.
  error: command '/usr/bin/gcc' failed with exit code 1
  [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
grumpysage > CC

@deronnax
Copy link

duplicate of #254, please close. Also please look at opened issues before opening a new one.

@mxamin mxamin closed this as completed Apr 18, 2024
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

3 participants