Skip to content

python venv doesn't exist (RDT-1396) #7

@trombik

Description

@trombik

Checklist

  • Checked the issue tracker for similar issues to ensure this is not a duplicate
  • Read the documentation to confirm the issue is not addressed there and your configuration is set correctly
  • Tested with the latest version to ensure the issue hasn't been fixed

How often does this bug occurs?

always

Expected behavior

The example should succeed.

Actual behavior (suspected bug)

it does not.

Error logs or terminal output

Run idf.py --version
  idf.py --version
  shell: /usr/bin/bash -e {0}
  env:
    SYSTEM_PATH: /snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/tmp/esp/idf/v5.4.2/esp-idf
    ESP_IDF_VERSION: 5.4
    "IDF_TOOLS_PATH: /tmp/esp"
    "IDF_PATH: /tmp/esp/idf/v5.4.2/esp-idf"
    "ESP_ROM_ELF_DIR: /tmp/esp/esp-rom-elfs/20241011"
    "OPENOCD_SCRIPTS: /tmp/esp/openocd-esp32/v0.12.0-esp32-20250422/openocd-esp32/share/openocd/scripts"
    "IDF_PYTHON_ENV_PATH: /tmp/esp/python/v5.4.2/venv"
  
Setting IDF_PATH environment variable: /tmp/esp/idf/v5.4.2/esp-idf
ERROR: /home/runner/.espressif/python_env/idf5.4_py3.12_env/bin/python doesn't exist! Please run the install script or "idf_tools.py install-python-env" in order to create it
ESP-IDF v5.4.2

Steps to reproduce the behavior

---
name: build examples
on:
  workflow_dispatch:
  push:
  pull_request:
    types:
      - opened
      - reopened
      - synchronize
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: Install missing packages
        run: |
          sudo apt-get install libsdl2-dev

      - uses: actions/checkout@v4

      - name: Install ESP-IDF
        uses: espressif/install-esp-idf-action@v1

      - name: Build your project
        run: |
          idf.py --version

Project release version

v1

System architecture

Intel/AMD 64-bit (modern PC, older Mac)

Operating system

Linux

Operating system version

ubuntu latest

Shell

ZSH

Additional context

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions