Problem building for ESP32 Error

I’m getting the following error with the esp32-c3-devkitm-1:

ERROR: Could not find a version that satisfies the requirement windows-curses (from versions: none)
ERROR: No matching distribution found for windows-curses

I’m basically stuck at this point. Any hellp would be greatly appreciated.

What is your exact platformio.ini?


platform = espressif32

board = esp32-c3-devkitm-1

framework = espidf

I don’t have any problems at all.

>pio run
Processing esp32-c3-devkitm-1 (platform: espressif32; board: esp32-c3-devkitm-1; framework: espidf)
Verbose mode can be enabled via `-v, --verbose` option
PLATFORM: Espressif 32 (3.3.2) > Espressif ESP32-C3-DevKitM-1
HARDWARE: ESP32C3 160MHz, 320KB RAM, 4MB Flash
DEBUG: Current (esp-prog) External (esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
 - framework-espidf 3.40300.0 (4.3.0)
 - tool-cmake 3.16.4
 - tool-esptoolpy 1.30100.210531 (3.1.0)
 - tool-idf 1.0.1
 - tool-mconf 1.4060000.20190628 (406.0.0)
 - tool-ninja 1.9.0
 - toolchain-riscv-esp 1.80400.0 (8.4.0)
WARNING: You are using pip version 21.1.3; however, version 21.2.4 is available.
You should consider upgrading via the 'c:\users\max\appdata\local\programs\python\python38\python.exe -m pip install --upgrade pip' command.
Reading CMake configuration...
Generating assembly for certificate bundle...
LDF: Library Dependency Finder ->
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 1 compatible libraries
Scanning dependencies...
No dependencies
Building in release mode
Compiling .pio\build\esp32-c3-devkitm-1\src\blink.o
Generating LD script .pio\build\esp32-c3-devkitm-1\esp32c3_out.ld
Generating partitions .pio\build\esp32-c3-devkitm-1\partitions.bin
Compiling .pio\build\esp32-c3-devkitm-1\app_trace\app_trace.o
RAM:   [          ]   3.2% (used 10520 bytes from 327680 bytes)
Flash: [==        ]  15.0% (used 157760 bytes from 1048576 bytes)
Building .pio\build\esp32-c3-devkitm-1\firmware.bin v3.1
============================================= [SUCCESS] Took 20.55 seconds =============================================

Try the following:

Open a CLI and execute pio upgrade --dev and pio platform update espressif32. This updates the PlatformIO core and platform. Then try to build the project again.

Where it seems to be failing for you is

So if the above still did not work, try the following:

  1. Open a CLI again and execute pio system info. This gives you the “Python executable” path
  2. In the CLI, execute
<python> -m pip install "file://C:/Users/<user>/.platformio/packages/framework-espidf/tools/kconfig_new/esp-windows-curses" windows-curses

Where you have to replace <python> with the Python executable path and <user> with user Windows username.