Skip to content

Failed to build installable wheels for some pyproject.toml based projects - netifaces #10038

@DaleRitchie

Description

@DaleRitchie

Issue search

  • I have searched the existing issues and this bug has not been reported yet

Which component is affected?

Prowler CLI/SDK

Cloud Provider (if applicable)

GitHub

Steps to Reproduce

Just run pip install prowler

Expected behavior

I expect prowler to install successfully

Actual Result with Screenshots or Logs

`  Building wheel for netifaces (pyproject.toml): finished with status 'error'
  error: subprocess-exited-with-error
  
  × Building wheel for netifaces (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [28 lines of output]
      /tmp/pip-build-env-j3gyoze6/overlay/lib/python3.11/site-packages/setuptools/dist.py:765: SetuptoolsDeprecationWarning: License classifiers are deprecated.
      !!
      
              ********************************************************************************
              Please consider removing the following classifiers in favor of a SPDX license expression:
      
Successfully built alibabacloud-gateway-oss-util shodan alibabacloud-credentials-api alibabacloud-endpoint-util alibabacloud-gateway-oss alibabacloud-darabonba-array alibabacloud-darabonba-encode-util alibabacloud-darabonba-map alibabacloud-darabonba-signature-util alibabacloud-darabonba-string alibabacloud-darabonba-time alibabacloud-gateway-spi alibabacloud_oss_util alibabacloud_tea_xml alibabacloud-tea
              License :: OSI Approved :: MIT License
Failed to build netifaces
      
              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_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
      gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DNETIFACES_VERSION=0.11.0 -I/home/runner/_work/_tool/Python/3.11.14/x64/include/python3.11 -c netifaces.c -o build/temp.linux-x86_64-cpython-311/netifaces.o
      error: command '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
error: failed-wheel-build-for-install
× Failed to build installable wheels for some pyproject.toml based projects
╰─> netifaces`

How did you install Prowler?

From pip package (pip install prowler)

Environment Resource

This is running in a GitHub Actions step on a ubuntu instance

OS used

  1. Ubuntu

Prowler version

5.18.1

Python version

3.11.14

Pip version

26.0.1

Context

Metadata

Metadata

Assignees

Labels

bugseverity/highBug capable of collapsing large parts of the execution.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions