Error while compiling on Windows 10 #119
-
I have only a little experience with python and this is my first time attempting to flash an ESP32. I've installed the Python environment on my Win10 computer and have successfully installed esptool and esphome. I also successfully backed-up the built-in firmware off of the Emporia Vue 2. I've created and modified my emporiavue.yaml file per the instructions, but I run into an issue when I attempt to run
This process creates a new I attempted to run the esphome command with --user and it gets to the same point and outputs almost the same error. The difference is that now it says Here's my .yaml:
I've tried manually uninstalling and reinstalling the |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Try creating a venv, and installing esphome in there: https://mothergeo-py.readthedocs.io/en/latest/development/how-to/venv-win.html#create-a-virtual-python-environment After activating the env, just do a |
Beta Was this translation helpful? Give feedback.
-
Great, thanks for the suggestion! I set up a venv per the instructions in your link, installed esphome in there, and ran the esphome command from there. Unfortunately, I get the same error when it gets to the
In this case, there's a temp folder that I'm guessing was created as part of the compiling process, the contents of which are three subfolders: I'm not sure if there are permissions I can set somewhere, or if there's a typo in the code somewhere. Someone else has a similar issue thread in the main esphome page here: esphome/issues#4084. The current response suggests that there is clearly something wrong with the Python environment. I agree that there's clearly something wrong, but I don't understand enough about it to know where the actual issue is. Any additional suggestions? |
Beta Was this translation helpful? Give feedback.
-
Solved. Per a suggestion in the other thread here: esphome/issues#4084 (comment), Running |
Beta Was this translation helpful? Give feedback.
Solved. Per a suggestion in the other thread here: esphome/issues#4084 (comment), Running
pip install -U --force-reinstall "idf-component-manager~=1.0"
first fixed the error that occurred at the uninstall/reinstall charset-normalizer package phase of the process. The firmware compiled successfully and was written to the device. Time to go plug it in!