-
-
Notifications
You must be signed in to change notification settings - Fork 30.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
scapy and no such file or directory: b'liblibc.a' (python 3.9 regression) #45918
Comments
dhcp documentation |
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. |
I get this when I add exclude entity_globs in configuration.yaml
|
This is also preventing "Restart" (in Server Controls -> Server management) from working. |
I haven't been able to replicate this. Can you provide a |
It's not stuck - it's just failing to shut down with the following log:
|
Thanks for the trace. That seems like a more general issue with not catching lower level exceptions in the restart. I’ll see what I can work up that should solve it for other cases as well as I don’t think the underlying python bug is going to be fixed soon |
Looks like we try to validate the config is valid before restarting. File not found and import errors aren’t configuration problems though. So it’s a bit to broad |
I've opened an issue with |
For now I symlinked my |
The issue seems to persist even in 2.4.5rc1 File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/components/dhcp/init.py", line 20, in If i am not missing something else here. |
https://github.com/secdev/scapy/blob/v2.4.5rc1/scapy/arch/bpf/core.py#L35 It looks like you are still running 2.4.4. If you manually upgraded and didn't modify manifest.json, its pinned to 2.4.4 so it probably downgraded again. |
Any chance you know where this manifest.json is located? Is more than one? There is no manifest.json file under the scapy cataloge. |
Worked like a charm, thank you for taking the time :) And sorry for bothering you! |
I just released Scapy v2.4.5! Enjoy. |
Thank you! |
Unfortunately we have hit a small snag pylint-dev/pylint#4383 |
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: secdev/scapy@46fa40f
The text was updated successfully, but these errors were encountered: