jhnnsrs / arkitekt_next

MIT License
2 stars 0 forks source link

netifaces install error: command 'x86_64-linux-gnu-gcc' failed: No such file or directory #1

Closed alexschroeter closed 2 weeks ago

alexschroeter commented 1 month ago

Running on the following system, I got the following error, which happens when you don't have build-essential installed on your system.

Distributor ID: Ubuntu
Description:    Ubuntu 22.04.4 LTS
Release:        22.04
Codename:       jammy
(arkitekt-next) administrator@arkitekt:~/arkitekt-deployments/arkitekt-next-september$ pip install arkitekt-next[blok,al
l]>=0.7.56
  error: subprocess-exited-with-error

  × Running setup.py install for netifaces did not run successfully.
  │ exit code: 1
  ╰─> [17 lines of output]
      running install
      /home/administrator/arkitekt-deployments/arkitekt-next-september/arkitekt-next/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
        warnings.warn(
      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 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DNETIFACES_VERSION=0.11.0 -I/home/administrator/arkitekt-deployments/arkitekt-next-september/arkitekt-next/include -I/usr/include/python3.10 -c netifaces.c -o build/temp.linux-x86_64-3.10/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: legacy-install-failure

× Encountered error while trying to install package.
╰─> netifaces

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
jhnnsrs commented 1 month ago

hey, yes these seems to be an issue with pip install netifaces which is actually a non essential part of blok. I will refactor and than it should be good to go, however netifaces is amazing for autodetecting the ip adresses.

alexschroeter commented 2 weeks ago

Closed as fixed