I just upgraded to 2024.3 and have a major dhcp issue.
Here is the log entry:
Logger: homeassistant.setup
Source: setup.py:296
First occurred: 8:33:53 AM (1 occurrences)
Last logged: 8:33:53 AM
Setup failed for 'dhcp': Unable to import component: No module named 'scapy.modules.six.moves'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/loader.py", line 886, in async_get_component
comp = await self.hass.async_add_import_executor_job(self.get_component)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 921, in get_component
ComponentProtocol, importlib.import_module(self.pkg_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/importlib/__init__.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 995, in exec_module
File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
File "/usr/src/homeassistant/homeassistant/components/dhcp/__init__.py", line 16, in <module>
import aiodhcpwatcher
File "/usr/local/lib/python3.12/site-packages/aiodhcpwatcher/__init__.py", line 10, in <module>
from scapy.config import conf
File "/usr/local/lib/python3.12/site-packages/scapy/config.py", line 25, in <module>
from scapy.base_classes import BasePacket
File "/usr/local/lib/python3.12/site-packages/scapy/base_classes.py", line 32, in <module>
from scapy.modules.six.moves import range
ModuleNotFoundError: No module named 'scapy.modules.six.moves'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 296, in _async_setup_component
component = await integration.async_get_component()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 892, in async_get_component
comp = self.get_component()
^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 921, in get_component
ComponentProtocol, importlib.import_module(self.pkg_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/importlib/__init__.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 995, in exec_module
File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
File "/usr/src/homeassistant/homeassistant/components/dhcp/__init__.py", line 16, in <module>
import aiodhcpwatcher
File "/usr/local/lib/python3.12/site-packages/aiodhcpwatcher/__init__.py", line 10, in <module>
from scapy.config import conf
File "/usr/local/lib/python3.12/site-packages/scapy/config.py", line 25, in <module>
from scapy.base_classes import BasePacket
File "/usr/local/lib/python3.12/site-packages/scapy/base_classes.py", line 32, in <module>
from scapy.modules.six.moves import range
ModuleNotFoundError: No module named 'scapy.modules.six.moves'
Things I have tried:
- Revert installation - everything works
- Home assistant safe mode to see if a custom component is an issue - still has dhcp issue
3 I noted in the change log :" Bump aiodhcpwatcher to 0.8.1 (@bdraco - #113096)". I used pip install aiodhcpwatcherā in terminal to upgrade to version 1 and rebooted - same
Issue with dhcp.
This prevents all my esphome devices from connecting, so it is a major issue for me.
Iām surprised that this does not seem to be affecting anyone else. What could be the issue?