ESP32 Compiling error

For general Flowcode discussion that does not belong in the other sections.
stefan.erni
Valued Contributor
Posts: 849
http://meble-kuchenne.info.pl
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 169 times
Been thanked: 197 times

Re: ESP32 Compiling error

Post by stefan.erni »

Hi Leigh

Yes this is the result
C:\esp-idf>export
Setting IDF_PATH: C:\esp-idf

Adding ESP-IDF tools to PATH...
No directories added to PATH:

C:\espressif\tools\xtensa-esp32-elf\esp-2020r3-8.4.0\xtensa-esp32-elf\bin;C:\espressif\tools\xtensa-esp32s2-elf\esp-2020r3-8.4.0\xtensa-esp32s2-elf\bin;C:\espressif\tools\xtensa-esp32s3-elf\esp-2020r3-8.4.0\xtensa-esp32s3-elf\bin;C:\espressif\tools\riscv32-esp-elf\1.24.0.123_64eb9ff-8.4.0\riscv32-esp-elf\bin;C:\espressif\tools\esp32ulp-elf\2.28.51-esp-20191205\esp32ulp-elf-binutils\bin;C:\espressif\tools\esp32s2ulp-elf\2.28.51-esp-20191205\esp32s2ulp-elf-binutils\bin;C:\espressif\tools\cmake\3.16.4\bin;C:\espressif\tools\openocd-esp32\v0.10.0-esp32-20210401\openocd-esp32\bin;C:\espressif\tools\ninja\1.10.2\;C:\espressif\tools\idf-exe\1.0.1\;C:\espressif\tools\ccache\3.7\;C:\espressif\tools\dfu-util\0.9\dfu-util-0.9-win64;C:\esp-idf\tools;C:\espressif\python_env\idf4.3_py3.8_env\Scripts\;C:\espressif\tools\idf-git\2.30.1\cmd\;C:\espressif;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\iCLS\;C:\Program Files\Intel\Intel(R) Management Engine Components\iCLS\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\dotnet\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files (x86)\synedra\ViewPersonal;C:\Program Files (x86)\Microchip\xc32\v2.20\bin;C:\Program Files\ASUS\Bluetooth Software\;C:\Program Files\ASUS\Bluetooth Software\syswow64;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\Program Files\MATLAB\R2019b\runtime\win64;C:\Program Files\MATLAB\R2019b\bin;C:\Program Files\Git\cmd;C:\Users\stefan.erni\AppData\Local\Microsoft\WindowsApps;

Checking if Python packages are up to date...
Python requirements from C:\esp-idf\requirements.txt are satisfied.

Done! You can now compile ESP-IDF projects.
Go to the project directory and run:

idf.py build

LeighM
Valued Contributor
Posts: 407
Joined: Mon Dec 07, 2020 1:00 pm
Has thanked: 76 times
Been thanked: 223 times

Re: ESP32 Compiling error

Post by LeighM »

Thanks, hmm, I don't see a path to Python in that PATH.
What do you get if you now type

Code: Select all

python --version

stefan.erni
Valued Contributor
Posts: 849
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 169 times
Been thanked: 197 times

Re: ESP32 Compiling error

Post by stefan.erni »

C:\esp-idf>python --version
Python 3.8.7

C:\esp-idf>

LeighM
Valued Contributor
Posts: 407
Joined: Mon Dec 07, 2020 1:00 pm
Has thanked: 76 times
Been thanked: 223 times

Re: ESP32 Compiling error

Post by LeighM »

Hi,
OK, thanks.
I'm still fairly sure that the problem is that the path to Python 3.8.7 is missing from the Windows PATH environment variable.
Do you know how to add it?

stefan.erni
Valued Contributor
Posts: 849
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 169 times
Been thanked: 197 times

Re: ESP32 Compiling error

Post by stefan.erni »

Hi Leigh

I know where to look but I haven't changed it yet. I'm only on the second computer on Monday, now I'm on the first computer that works fine. But I'll check on Monday whether and how the path is set for the Phython.

regards

Stefan


Printscreen from the working computer
system_Var_2021-09-15_9-31-10.png
system_Var_2021-09-15_9-31-10.png (166.9 KiB) Viewed 4594 times
Printscreen from the working computer
path_2021-09-15_9-50-43.png
path_2021-09-15_9-50-43.png (34.46 KiB) Viewed 4594 times

stefan.erni
Valued Contributor
Posts: 849
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 169 times
Been thanked: 197 times

Re: ESP32 Compiling error

Post by stefan.erni »

Hi Leigh

I'm on the second computer.
You are right, the entry is missing. But the folder is also missing (user\kfs-forschung\AppData\Locals\programs\Phyton37

I tried to add some path (folder) but it never found this Python.


regards


Stefan
Path.JPG
Path.JPG (44.6 KiB) Viewed 4557 times

LeighM
Valued Contributor
Posts: 407
Joined: Mon Dec 07, 2020 1:00 pm
Has thanked: 76 times
Been thanked: 223 times

Re: ESP32 Compiling error

Post by LeighM »

Hi Stefan,
I would suggest that you uninstall all Python, via Windows -> Settings -> Apps
Then run the ESP installer to re-install Python and follow our pdf instructions regarding settings
https://www.flowcode.co.uk/wiki/index.p ... ctions.pdf

stefan.erni
Valued Contributor
Posts: 849
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 169 times
Been thanked: 197 times

Re: ESP32 Compiling error

Post by stefan.erni »

Hi Leigh

I did, but I get a error.


regards

Stefan


flowcode_esp32_5.PNG
flowcode_esp32_5.PNG (32.8 KiB) Viewed 4549 times
Attachments
Setup Log 2021-09-20 #002.txt
(43.94 KiB) Downloaded 233 times

medelec35
Matrix Staff
Posts: 1560
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 555 times
Been thanked: 514 times

Re: ESP32 Compiling error

Post by medelec35 »

I wonder if it has something to do with:
privileges.png
privileges.png (4.31 KiB) Viewed 4547 times
I thought there is a prompt to give admin rights?
Powershell.png
Powershell.png (29.81 KiB) Viewed 4547 times
Martin

stefan.erni
Valued Contributor
Posts: 849
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 169 times
Been thanked: 197 times

Re: ESP32 Compiling error

Post by stefan.erni »

Hi Martin

Yes you are rigth, there is a problem with the powershell.
There was no promp and on the end no powershell.
On this computer I have admin rigthts but in way limited and is behind a big big firewall.
I have to think about what to do.

regards

Stefan

Post Reply