esp32dev compile error
Closed this issue · 1 comments
jmorris644 commented
I am trying to compile for an M5wstack Atom Echo. I am getting the following error when compiling.
UserSideException: Processing esp32dev (platform: espressif32@4.2.0; board: esp32dev; framework: arduino)
--------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
KeyError: 'username':
File "C:\Users\joeom\.platformio\penv\Lib\site-packages\platformio\builder\main.py", line 167:
env.SConscript(env.GetExtraScripts("pre"), exports="env")
File "C:\Users\joeom\.platformio\packages\tool-scons\scons-local-4.5.2\SCons\Script\SConscript.py", line 598:
return _SConscript(self.fs, *files, **subst_kw)
File "C:\Users\joeom\.platformio\packages\tool-scons\scons-local-4.5.2\SCons\Script\SConscript.py", line 285:
exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
File "C:\Users\joeom\OneDrive\Documents\PlatformIO\Projects\ESP32-Rhasspy-Satellite\PlatformIO\load_settings.py", line 27:
("MQTT_USER", "\\\"" + config[sectionMqtt]["username"] + "\\\""),
File "C:\Users\joeom\.platformio\python3\Lib\configparser.py", line 1273:
raise KeyError(key)
========================== [FAILED] Took 1.57 seconds ==========================
Environment Status Duration
------------- -------- ------------
esp32dev FAILED 00:00:01.570
==================== 1 failed, 0 succeeded in 00:00:01.570 ====================
jmorris644 commented
I found my issue. I had mistakenly commented out the MQTT username and password because I do not use them. This is what caused the error.