Page 3 of 6

Re: ESP32 Compiling error

Posted: Tue Sep 14, 2021 2:56 pm
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

Re: ESP32 Compiling error

Posted: Tue Sep 14, 2021 3:16 pm
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

Re: ESP32 Compiling error

Posted: Tue Sep 14, 2021 3:20 pm
by stefan.erni
C:\esp-idf>python --version
Python 3.8.7

C:\esp-idf>

Re: ESP32 Compiling error

Posted: Wed Sep 15, 2021 8:03 am
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?

Re: ESP32 Compiling error

Posted: Wed Sep 15, 2021 8:55 am
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 3499 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 3499 times

Re: ESP32 Compiling error

Posted: Mon Sep 20, 2021 8:29 am
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 3462 times

Re: ESP32 Compiling error

Posted: Mon Sep 20, 2021 10:34 am
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

Re: ESP32 Compiling error

Posted: Mon Sep 20, 2021 10:57 am
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 3454 times

Re: ESP32 Compiling error

Posted: Mon Sep 20, 2021 12:57 pm
by medelec35
I wonder if it has something to do with:
privileges.png
privileges.png (4.31 KiB) Viewed 3452 times
I thought there is a prompt to give admin rights?
Powershell.png
Powershell.png (29.81 KiB) Viewed 3452 times

Re: ESP32 Compiling error

Posted: Mon Sep 20, 2021 3:30 pm
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