bsd ~ [1]> pip install --user netifaces --no-binary :all: Collecting netifaces Using…
- User
bsd ~ [1]> pip install --user netifaces --no-binary :all: Collecting netifaces Using cached netifaces-0.11.0.tar.gz (30 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Building wheels for collected packages: netifaces Building wheel for netifaces (pyproject.toml) ... error error: subprocess-exited-with-error
× Building wheel for netifaces (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [33 lines of output] /tmp/pip-build-env-81wcnvu3/overlay/lib/python3.11/site-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated. !!
code******************************************************************************** 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_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 cc -pthread -Wsign-compare -Wunreachable-code -DNDEBUG -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -fPIC -DNETIFACES_VERSION=0.11.0 -I/usr/local/include/python3.11 -c netifaces.c -o build/temp.freebsd-14.2-RELEASE-p1-amd64-cpython-311/netifaces.o In file included from netifaces.c:1: /usr/local/include/python3.11/Python.h:23:12: fatal error: 'stdlib.h' file not found 23 | # include <stdlib.h> | ^~~~~~~~~~ 1 error generated. error: command '/usr/bin/cc' failed with exit code 1 [end of output] - Assistant
The error message you provided indicates that there was an issue building the Python package from source, specifically related to a missing system header file (). This file is part of the standard library in C and is typically included with compiler installations.
- User
All repositories are up to date. pkg: No packages available to install matching 'make' have been found in the repositories pkg: No packages available to install matching 'python3-devel' have been found in the repositories pkg install gcc make python3-devel
- Assistant
It appears that you're using a FreeBSD system, and it seems you're encountering issues finding packages like
make,gcc, andpython3-devel. The names of packages may differ based on the version of FreeBSD you are using. Let's try the following steps to address your situation: - User
bsd ~ [1]> portsnap fetch update fish: Unknown command: portsnap bsd ~ [127]> cd /usr/ports/devel/gcc && make install clean cd: The directory '/usr/ports/devel/gcc' does not exist bsd ~ [1]> pkg search python3 linux-rl9-python39-3.9.21 Python Language (Rocky Linux 9.5) py311-antlr4-python3-runtime-4.9_1,1 ANother Tool for Language Recognition (python3 runtime) py311-python3-openid-3.2.0_2 Python 3 port of the python-openid library py311-python3-saml-1.16.0 Add SAML support to your Python software python3-3_4 Meta-port for the Python interpreter 3.x python310-3.10.16 Interpreted object-oriented programming language python311-3.11.11 Interpreted object-oriented programming language python38-3.8.20 Interpreted object-oriented programming language python39-3.9.21 Interpreted object-oriented programming language unit-python311-1.34.2 Python module for NGINX Unit bsd ~> uname -r 14.2-RELEASE-p1
- Assistant