-
Notifications
You must be signed in to change notification settings - Fork 62
Description
Sorry for my poor English.
My OS is Ubuntu 25.04, which comes with Python3 pre-installed.
I then ran:
git clone https://github.com/BigBobbas/ESP32-S3-Box3-Custom-ESPHome.git
Following the ESPHome official installation guide, I created a directory in the project folder:
mkdir .box-venv
Then:
python3 -m venv .box-venv
Activated the virtual environment:
source .box-venv/bin/activate
Installed ESPHome:
pip3 install esphome
esphome version: 2025.7.5
All previous steps completed without errors.
However, when executing:
esphome compile s3b.yaml
The following error occurred:
INFO ESPHome 2025.7.5
INFO Reading configuration s3b.yaml...
INFO Detected timezone 'Asia/Shanghai'
INFO Generating C++ source...
Traceback (most recent call last):
File "/home/abc/workspace/ESP32-S3-Box3-Custom-ESPHome/.venv-esp32s3box3/bin/esphome", line 8, in
sys.exit(main())
~~~~^^
File "/home/abc/workspace/ESP32-S3-Box3-Custom-ESPHome/.venv-esp32s3box3/lib/python3.13/site-packages/esphome/main.py", line 1087, in main
return run_esphome(sys.argv)
File "/home/abc/workspace/ESP32-S3-Box3-Custom-ESPHome/.venv-esp32s3box3/lib/python3.13/site-packages/esphome/main.py", line 1074, in run_esphome
rc = POST_CONFIG_ACTIONS[args.command](args, config)
File "/home/abc/workspace/ESP32-S3-Box3-Custom-ESPHome/.venv-esp32s3box3/lib/python3.13/site-packages/esphome/main.py", line 461, in command_compile
exit_code = write_cpp(config)
File "/home/abc/workspace/ESP32-S3-Box3-Custom-ESPHome/.venv-esp32s3box3/lib/python3.13/site-packages/esphome/main.py", line 212, in write_cpp
generate_cpp_contents(config)
~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
File "/home/abc/workspace/ESP32-S3-Box3-Custom-ESPHome/.venv-esp32s3box3/lib/python3.13/site-packages/esphome/main.py", line 224, in generate_cpp_contents
CORE.flush_tasks()
~~~~~~~~~~~~~~~~^^
File "/home/abc/workspace/ESP32-S3-Box3-Custom-ESPHome/.venv-esp32s3box3/lib/python3.13/site-packages/esphome/core/init.py", line 694, in flush_tasks
self.event_loop.flush_tasks()
~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/home/abc/workspace/ESP32-S3-Box3-Custom-ESPHome/.venv-esp32s3box3/lib/python3.13/site-packages/esphome/coroutine.py", line 245, in flush_tasks
next(task.iterator)
~~~~^^^^^^^^^^^^^^^
File "/home/abc/workspace/ESP32-S3-Box3-Custom-ESPHome/.venv-esp32s3box3/lib/python3.13/site-packages/esphome/main.py", line 204, in wrapped
await coro(conf)
File "/home/abc/workspace/ESP32-S3-Box3-Custom-ESPHome/.venv-esp32s3box3/lib/python3.13/site-packages/esphome/components/micro_wake_word/init.py", line 513, in to_code
cg.add(var.set_features_step_size(manifest[KEY_MICRO][CONF_FEATURE_STEP_SIZE]))
^^^^^^^^
UnboundLocalError: cannot access local variable 'manifest' where it is not associated with a value
I’ve Googled the error but couldn’t find a solution.