salt icon indicating copy to clipboard operation
salt copied to clipboard

[BUG] salt-pip install netifaces

Open rimskij opened this issue 5 months ago • 1 comments

salt-pip install netifaces Looking in indexes: https://repository/proxy/simple Collecting netifaces Using cached https://repository/pypi-proxy/packages/netifaces/0.11.0/netifaces-0.11.0.tar.gz (30 kB) Preparing metadata (setup.py) ... done Building wheels for collected packages: netifaces Building wheel for netifaces (setup.py) ... error error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [29 lines of output] /opt/saltstack/salt/lib/python3.10/site-packages/setuptools/config/setupcfg.py:293: _DeprecatedConfig: Deprecated config in setup.cfg !!

          ********************************************************************************
          The license_file parameter is deprecated, use license_files instead.

          This deprecation is overdue, please update your project and remove deprecated
          calls to avoid build errors in the future.

          See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
          ********************************************************************************

  !!
    parsed = self.parsers.get(option_name, lambda x: x)(value)
  running bdist_wheel
  running build
  running build_ext
  checking for getifaddrs...not found.
  checking for getnameinfo...not found.
  checking for socket IOCTLs...not found.
  checking for optional header files...none found.
  checking whether struct sockaddr has a length field...no.
  checking which sockaddr_xxx structs are defined...none!
  checking for routing socket support...no.
  checking for sysctl(CTL_NET...) support...no.
  checking for netlink support...no.
  building 'netifaces' extension
  x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -DNETIFACES_VERSION=0.11.0 -I/opt/saltstack/salt/include/python3.10 -c netifaces.c -o build/temp.linux-x86_64-cpython-310/netifaces.o
  error: command 'x86_64-linux-gnu-gcc' failed: No such file or directory
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for netifaces Running setup.py clean for netifaces Failed to build netifaces ERROR: Could not build wheels for netifaces, which is required to install pyproject.toml-based projects

[notice] A new release of pip is available: 23.3.2 -> 24.2 [notice] To update, run: /opt/saltstack/salt/bin/python3.10 -m pip install --upgrade pip

rimskij avatar Aug 26 '24 14:08 rimskij