espressif / esp-idf

Espressif IoT Development Framework. Official development framework for Espressif SoCs.
Apache License 2.0
12.93k stars 7.09k forks source link

Unable to export environment (IDFGH-13197) #14134

Open MaplestoryAlen opened 3 days ago

MaplestoryAlen commented 3 days ago

Answers checklist.

General issue report

len@lee:~/esp-idf$ source export.sh Detecting the Python interpreter Checking "python3" ... Python 3.8.10 "python3" has been detected Checking Python compatibility Checking other ESP-IDF version. Using a supported version of tool cmake found in PATH: 3.16.3. However the recommended version is 3.24.0. Adding ESP-IDF tools to PATH... Using a supported version of tool cmake found in PATH: 3.16.3. However the recommended version is 3.24.0. Checking if Python packages are up to date... Constraint file: /home/alen/.espressif/espidf.constraints.v5.1.txt Requirement files:

Cannot import module "esp_idf_monitor". This usually means that "idf.py" was not spawned within an ESP-IDF shell environment or the python virtual environment used by "idf.py" is corrupted. Please use idf.py only in an ESP-IDF shell environment. If problem persists, please try to install ESP-IDF tools again as described in the Get Started guide.

dobairoland commented 3 days ago

Hi @MaplestoryAlen. Please run the following commands after you've sourced export.sh and share the received outputs:

which idf.py
idf.py --version
which python
/home/alen/.espressif/python_env/idf5.1_py3.8_env/bin/python -m pip freeze