Hi guys I'm getting this error while trying to compile to the esp32 module. I have the Python 3.7 & 3.9 installed on my machine i have installed the esp-idf-tools-setup-offline-2.10 and set the global settings for the esp32 to the folder the esp-idf is in but cannot get this to compile
Not sure where to go from here to get it working
ESP32 Compiling error
-
- Posts: 129
- http://meble-kuchenne.info.pl
- Joined: Mon Mar 08, 2021 11:25 am
- Location: Cape Town South Africa
- Has thanked: 40 times
- Been thanked: 11 times
-
- Matrix Staff
- Posts: 1624
- Joined: Wed Dec 02, 2020 11:07 pm
- Has thanked: 576 times
- Been thanked: 543 times
Re: ESP32 Compiling error
Hi, Brian.
What I have found is python 3.7 when used to compile to ESP32 works.
Any higher version I have had issues with e.g lots of compile errors.
I would recommend, uninstalling v3.9
If that had caused an issue then it might be worth uninstalling all, then deleting the esp directories.
I would also delete the New folder that has the file name used for your project but has underscores.
E.g If your flowchart is within a folder called Power Monitor, when you compile for the first time a new folder called Power_Monitor will be created.
It's the newly created folder that will require deleting.
Then follow these instructions carfully .
If 3.7 is not a choice then install the nearest available version.
What I have found is python 3.7 when used to compile to ESP32 works.
Any higher version I have had issues with e.g lots of compile errors.
I would recommend, uninstalling v3.9
If that had caused an issue then it might be worth uninstalling all, then deleting the esp directories.
I would also delete the New folder that has the file name used for your project but has underscores.
E.g If your flowchart is within a folder called Power Monitor, when you compile for the first time a new folder called Power_Monitor will be created.
It's the newly created folder that will require deleting.
Then follow these instructions carfully .
If 3.7 is not a choice then install the nearest available version.
Martin
-
- Posts: 129
- Joined: Mon Mar 08, 2021 11:25 am
- Location: Cape Town South Africa
- Has thanked: 40 times
- Been thanked: 11 times
Re: ESP32 Compiling error
Hi Martin
Thanks for the reply I have followed the flowcode esp32 tool chain installation many times with no luck the one thing i have noticed is that when you get ready to install section my files are loaded in different directory
My installation
The message I'm getting now when compiling and I've set the global settings location for the esp to F:\esp-idf
Thanks for the reply I have followed the flowcode esp32 tool chain installation many times with no luck the one thing i have noticed is that when you get ready to install section my files are loaded in different directory
My installation
The message I'm getting now when compiling and I've set the global settings location for the esp to F:\esp-idf
-
- Matrix Staff
- Posts: 1624
- Joined: Wed Dec 02, 2020 11:07 pm
- Has thanked: 576 times
- Been thanked: 543 times
Re: ESP32 Compiling error
Hi Brian,
Before installing, if deleted the folders you get the option to enter the path on the next install: Was there not an option to add python to the environmental path?
Within windows search on the taskbar, type cmd then enter.
Enter python
If the path has a been enabled you will see something like:
If not recognised then the path will need setting up.
You can check the environmental path by enter ctrl z
then type path enter.
You need to make sure python is within the path.
If not, it will require adding.
Before installing, if deleted the folders you get the option to enter the path on the next install: Was there not an option to add python to the environmental path?
Within windows search on the taskbar, type cmd then enter.
Enter python
If the path has a been enabled you will see something like:
Code: Select all
Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 22:22:05) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
You can check the environmental path by enter ctrl z
then type path enter.
You need to make sure python is within the path.
If not, it will require adding.
Martin
-
- Posts: 129
- Joined: Mon Mar 08, 2021 11:25 am
- Location: Cape Town South Africa
- Has thanked: 40 times
- Been thanked: 11 times
Re: ESP32 Compiling error
Hi Martin
I have created the folders and it has installed in them the only thing is that they on F drive esp-idf and esp-idf-tools.
I did select python when installing and if i go to add remove programs it is there. I have typed python int the cmd window and it returns so not sure why it is not picking it up. do you think there is something wrong with the installer
I have created the folders and it has installed in them the only thing is that they on F drive esp-idf and esp-idf-tools.
I did select python when installing and if i go to add remove programs it is there. I have typed python int the cmd window and it returns so not sure why it is not picking it up. do you think there is something wrong with the installer
-
- Valued Contributor
- Posts: 415
- Joined: Mon Dec 07, 2020 1:00 pm
- Has thanked: 76 times
- Been thanked: 231 times
Re: ESP32 Compiling error
Hi,
Could you run the "ESP-IDF Command Prompt" (not standard Cmd Prompt)
this should be on your desktop.
See if any errors are reported.
Then type
python --version
and see if Python runs and reports same version.
Could you run the "ESP-IDF Command Prompt" (not standard Cmd Prompt)
this should be on your desktop.
See if any errors are reported.
Then type
python --version
and see if Python runs and reports same version.
-
- Matrix Staff
- Posts: 1901
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 494 times
- Been thanked: 668 times
Re: ESP32 Compiling error
Hello,
Tha's very strange, is Python installed on a different hard drive? Might be worth checking that the Python executable is on your windows path just in case this is causing problems.
https://www.architectryan.com/2018/03/1 ... indows-10/
You can also maybe try launching the compilation from the ESP-IDF Command Prompt and see if this works or reports the same error. Just navigate to your project directory and then into the build folder created by Flowcode then type in the following command to compile and program. Change COM5 for your COM port.
idf.py flash -p COM5
As a last resort maybe try re-installing the idf but using the Python it packages with it. This includes things ike PySerial and other none standard libraries so maybe will include anything your currently potentially missing.
Tha's very strange, is Python installed on a different hard drive? Might be worth checking that the Python executable is on your windows path just in case this is causing problems.
https://www.architectryan.com/2018/03/1 ... indows-10/
You can also maybe try launching the compilation from the ESP-IDF Command Prompt and see if this works or reports the same error. Just navigate to your project directory and then into the build folder created by Flowcode then type in the following command to compile and program. Change COM5 for your COM port.
idf.py flash -p COM5
As a last resort maybe try re-installing the idf but using the Python it packages with it. This includes things ike PySerial and other none standard libraries so maybe will include anything your currently potentially missing.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel