ESP32 Compiling error

For general Flowcode discussion that does not belong in the other sections.
medelec35
Matrix Staff
Posts: 1432
http://meble-kuchenne.info.pl
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 506 times
Been thanked: 468 times

Re: ESP32 Compiling error

Post by medelec35 »

Could an antivirus or firewall be preventing the option?
Martin

stefan.erni
Valued Contributor
Posts: 738
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 149 times
Been thanked: 170 times

Re: ESP32 Compiling error

Post by stefan.erni »

Hi Martin

I think it's something like this. So I found an info about an offline-installer.
I will try it next monday

regards

Stefan
ESP-IDF Tools Installer
What is the usecase for Online and Offline Installer
Online Installer is very small and allows the installation of all available releases of ESP-IDF. The installer will download only necessary dependencies including Git For Windows during the installation process. The installer stores downloaded files in the cache directory %userprofile%\.espressif
Offline Installer does not require any network connection. The installer contains all required dependencies including Git For Windows .
https://docs.espressif.com/projects/esp ... setup.html

stefan.erni
Valued Contributor
Posts: 738
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 149 times
Been thanked: 170 times

Re: ESP32 Compiling error

Post by stefan.erni »

Hi to All

I used the offline installer. While installing there was no error



C:\Users\stefan.erni\Desktop\esp-idf>python --version
Python 3.8.7

C:\Users\stefan.erni\Desktop\esp-idf>





but if I compile to chip:

Checking if Python packages are up to date...
The following Python requirements are not satisfied:
click>=7.0
pyserial>=3.0
future>=0.15.2
cryptography>=2.1.4
pyparsing>=2.0.3,<2.4.0
pyelftools>=0.22
gdbgui==0.13.2.0
pygdbmi<=0.9.0.2
python-socketio<5
kconfiglib==13.7.1
reedsolo>=1.5.3,<=1.5.4
bitstring>=3.1.6
ecdsa>=0.16.0
construct==2.10.54
esp-windows-curses; sys_platform == 'win32'
To install the missing packages, please run "C:\Users\stefan.erni\Desktop\esp-idf\install.bat"
Diagnostic information:
IDF_PYTHON_ENV_PATH: C:\Users\stefan.erni\.espressif\python_env\idf4.3_py3.7_env
Python interpreter used: C:\Users\stefan.erni\.espressif\python_env\idf4.3_py3.7_env\Scripts\python.exe
Traceback (most recent call last):
File "C:\Users\stefan.erni\Desktop\esp-idf\tools\idf.py", line 47, in <module>
from idf_py_actions.tools import executable_exists, idf_version, merge_action_lists, realpath # noqa: E402
File "C:\Users\stefan.erni\Desktop\esp-idf\tools\idf_py_actions\tools.py", line 7, in <module>
import click
ModuleNotFoundError: No module named 'click'

Build Failed

C:\ProgramData\MatrixTSL\FlowcodeV9\FCD\ESP\Batch\esp32_build.bat reported error code 0x1

Autoclose turned off

LeighM
Valued Contributor
Posts: 394
Joined: Mon Dec 07, 2020 1:00 pm
Has thanked: 69 times
Been thanked: 208 times

Re: ESP32 Compiling error

Post by LeighM »

Try this ...

Run a Command Prompt

cd to the esp-idf directory e.g...

Code: Select all

cd C:\Users\stefan.erni\Desktop\esp-idf
Then type/run

Code: Select all

install.bat esp32

stefan.erni
Valued Contributor
Posts: 738
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 149 times
Been thanked: 170 times

Re: ESP32 Compiling error

Post by stefan.erni »

Hi Leigh

I've already done that, but it didn't help

regards

Stefan

LeighM
Valued Contributor
Posts: 394
Joined: Mon Dec 07, 2020 1:00 pm
Has thanked: 69 times
Been thanked: 208 times

Re: ESP32 Compiling error

Post by LeighM »

Hi Stefan,
Looks like a Python issue, in that the extra packages have not been installed, or inaccessible by the version ESP thinks it’s using.
Do you have more than one version installed?
Might be worth uninstalling all Python, then trying again.
Leigh

jollybv
Posts: 125
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

Post by jollybv »

hi guys

Just from my experience when I created the esp-idf folder it automatically creates another folder espressif and puts the file in that when I forced it to install in the esp-idf without the espressif folder everything worked.

stefan.erni
Valued Contributor
Posts: 738
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 149 times
Been thanked: 170 times

Re: ESP32 Compiling error

Post by stefan.erni »

Hi Jollybv, Hi Leigh


@Jollybv You mean for the second folder (.expressif) you choosed the same folder (on Desktop esp-if). I will try that.

@ Leigh Here is the version of Python and ESP-IF Tools on computer 1 (the one where works well) I will see what version are on the other computer and check if there are more than one version of Python.


regards

Stefan
Working_Computer_1_2021-10-07_14-20-11.png
Working_Computer_1_2021-10-07_14-20-11.png (13.49 KiB) Viewed 4362 times
Working_Computer_2_2021-10-07_14-14-40.png
Working_Computer_2_2021-10-07_14-14-40.png (16.93 KiB) Viewed 4362 times

jollybv
Posts: 125
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

Post by jollybv »

Hi yes
you need to load it into just the ESP-IDF folder
esp-idf.png
esp-idf.png (182.17 KiB) Viewed 4361 times

stefan.erni
Valued Contributor
Posts: 738
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 149 times
Been thanked: 170 times

Re: ESP32 Compiling error

Post by stefan.erni »

Hi Leigh

There is the same Phyton but there is a Phython Launcher on the bad computer

regards

Stefan
Attachments
ESP_IF.JPG
ESP_IF.JPG (11 KiB) Viewed 4307 times
Bad_Computer.JPG
Bad_Computer.JPG (15 KiB) Viewed 4307 times

Post Reply