netifaces.c:1:10: fatal error: Python.h: No such file or directory
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Fix Released
|
Critical
|
Unassigned |
Bug Description
tripleo-
We see this in TASK [run-test : run toci_gate_test.sh]
2022-02-21 14:22:59.047806 | primary | Building wheel for netifaces (setup.py): started
2022-02-21 14:23:00.928884 | primary | Building wheel for netifaces (setup.py): finished with status 'error'
2022-02-21 14:23:00.936893 | primary | error: subprocess-
2022-02-21 14:23:00.936926 | primary |
2022-02-21 14:23:00.936946 | primary | × python setup.py bdist_wheel did not run successfully.
2022-02-21 14:23:00.936951 | primary | │ exit code: 1
2022-02-21 14:23:00.936957 | primary | ╰─> [20 lines of output]
2022-02-21 14:23:00.936963 | primary | running bdist_wheel
2022-02-21 14:23:00.936968 | primary | running build
2022-02-21 14:23:00.936973 | primary | running build_ext
2022-02-21 14:23:00.936979 | primary | checking for getifaddrs...found.
2022-02-21 14:23:00.936984 | primary | checking for getnameinfo.
2022-02-21 14:23:00.936989 | primary | checking for IPv6 socket IOCTLs...not found.
2022-02-21 14:23:00.937004 | primary | checking for optional header files..
2022-02-21 14:23:00.937011 | primary | checking whether struct sockaddr has a length field...no.
2022-02-21 14:23:00.937017 | primary | checking which sockaddr_xxx structs are defined...at ax25 in in6 ipx un rose ash ec ll atmpvc atmsvc dn llc.
2022-02-21 14:23:00.937033 | primary | checking for routing socket support...no.
2022-02-21 14:23:00.937038 | primary | checking for sysctl(CTL_NET...) support...no.
2022-02-21 14:23:00.937043 | primary | checking for netlink support...yes.
2022-02-21 14:23:00.937048 | primary | will use netlink to read routing table
2022-02-21 14:23:00.937053 | primary | building 'netifaces' extension
2022-02-21 14:23:00.937060 | primary | gcc -Wno-unused-result -Wsign-compare -DDYNAMIC_
2022-02-21 14:23:00.937073 | primary | netifaces.c:1:10: fatal error: Python.h: No such file or directory
2022-02-21 14:23:00.937079 | primary | 1 | #include <Python.h>
2022-02-21 14:23:00.937084 | primary | | ^~~~~~~~~~
2022-02-21 14:23:00.937089 | primary | compilation terminated.
2022-02-21 14:23:00.937095 | primary | error: command '/usr/bin/gcc' failed with exit code 1
2022-02-21 14:23:00.937099 | primary | [end of output]
2022-02-21 14:23:00.937105 | primary |
2022-02-21 14:23:00.937110 | primary | note: This error originates from a subprocess, and is likely not a problem with pip.
2022-02-21 14:23:00.937370 | primary | ERROR: Failed building wheel for netifaces
2022-02-21 14:23:00.937804 | primary | Running setup.py clean for netifaces
Logs:
https:/
https:/
We can see this error from at least 2022-02-21 10:53:04
tags: | added: ci promotion-blocker |
Changed in tripleo: | |
milestone: | none → yoga-2 |
importance: | Undecided → Critical |
status: | New → Triaged |
Changed in tripleo: | |
status: | Triaged → In Progress |
In the passing jobs (master branch) the version of netifaces being downloaded is 0.11.0
Downloading https:/ /mirror. gra1.ovh. opendev. org/pypifiles/ packages/ 6b/07/613110af7 b7856cf0bea173a 866304f5476aba0 6f5ccf74c66acc7 3e36f1/ netifaces- 0.11.0- cp39-cp39- manylinux_ 2_5_x86_ 64.manylinux1_ x86_64. whl
In failing jobs (wallaby branch) the version is 0.10.9
Collecting netifaces>=0.10.4 /mirror. bhs1.ovh. opendev. org/pypifiles/ packages/ 0d/18/fd6e9c71a 35b67a73160ec80 a49da63d1eed2d2 055054cc2995714 949132/ netifaces- 0.10.9. tar.gz (28 kB)
2022-02-21 14:22:39.927192 | primary | Downloading https:/