core: scapy and no such file or directory: b'liblibc.a' (python 3.9 regression)
The problem
Just updated to 2021.2.0 and it can’t load the dhcp integration
What is version of Home Assistant Core has the issue?
2021.2.0
What was the last working version of Home Assistant Core?
2021.1.5
What type of installation are you running?
Home Assistant Core
Integration causing the issue
dhcp
Link to integration documentation on our website
https://rc.home-assistant.io/integrations/dhcp/
Example YAML snippet
# Put your YAML below this line
Anything in the logs that might be useful for us?
# Put your logs below this line
from scapy.arch.bpf.core import get_if_raw_addr
File "/home/tommie/homeassistant/lib/python3.9/site-packages/scapy/arch/bpf/core.py", line 30, in <module>
LIBC = cdll.LoadLibrary(find_library("libc"))
File "/usr/lib/python3.9/ctypes/util.py", line 330, in find_library
_get_soname(_findLib_gcc(name)) or _get_soname(_findLib_ld(name))
File "/usr/lib/python3.9/ctypes/util.py", line 147, in _findLib_gcc
if not _is_elf(file):
File "/usr/lib/python3.9/ctypes/util.py", line 99, in _is_elf
with open(filename, 'br') as thefile:
FileNotFoundError: [Errno 2] No such file or directory: b'liblibc.a'
Probably related to this: https://github.com/secdev/scapy/commit/46fa40fde4049ad7770481f8806c59640df24059
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 3
- Comments: 19 (12 by maintainers)
Commits related to this issue
- Bump scapy to 2.4.5 for dhcp fixes #45918 fixes #45846 — committed to bdraco/home-assistant by bdraco 3 years ago
- Bump scapy to 2.4.5 for dhcp fixes #45918 fixes #45846 — committed to bdraco/home-assistant by bdraco 3 years ago
- Bump scapy to 2.4.5 for dhcp fixes #45918 fixes #45846 — committed to bdraco/home-assistant by bdraco 3 years ago
Worked like a charm, thank you for taking the time 😃 And sorry for bothering you!
I just released Scapy v2.4.5! Enjoy.
We will bump to scapy 2.4.5 when it comes out.
https://bugs.python.org/issue42580 could solve it sooner with a new version of python.