This is the error message:
Could not import project
PIO Core Call Error: "Resolving esp32dev dependencies…\r\nTool Manager: Installing platformio/toolchain-esp32ulp @ ~1.22851.0\r\nDownloading 0% 10% 20% 30% 40% 50% 60% 70% 80% 90% 100%\r\nUnpacking 0% 10% 20% 30% 40% 50% 60% 70% 80% 90% 100%\r\nTool Manager: toolchain-esp32ulp@1.22851.191205 has been installed!\r\nTool Manager: Installing espressif/toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch2\r\nDownloading 0% 10% 20% 30% 40% 50% 60% 70% 80% 90% 100%\r\nUnpacking 0% 10% 20% 30% 40% 50% 60% 70% 80% 90% 100%\r\nTool Manager: toolchain-xtensa-esp32@8.4.0+2021r2-patch2 has been installed!\r\nTool Manager: Installing espressif/toolchain-xtensa-esp32s2 @ 8.4.0+2021r2-patch2\r\nDownloading 0% 10% 20% 30% 40% 50% 60% 70% 80% 90% 100%\r\nUnpacking 0% 10% 20% 30% 40% 50% 60% 70% 80% 90% 100%\r\nTool Manager: toolchain-xtensa-esp32s2@8.4.0+2021r2-patch2 has been installed!\r\nTool Manager: Installing espressif/toolchain-riscv32-esp @ 8.4.0+2021r2-patch2\r\n\n\nUnknownPackageError: Could not find the package with ‘espressif/toolchain-riscv32-esp @ 8.4.0+2021r2-patch2’ requirements for your system ‘windows_amd64’"Could not import project
PIO Core Call Error: “Resolving esp32dev dependencies…\r\nTool Manager: Installing platformio/toolchain-esp32ulp @ ~1.22851.0\r\nDownloading 0% 10% 20% 30% 40% 50% 60% 70% 80% 90% 100%\r\nUnpacking 0% 10% 20% 30% 40% 50% 60% 70% 80% 90% 100%\r\nTool Manager: toolchain-esp32ulp@1.22851.191205 has been installed!\r\nTool Manager: Installing espressif/toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch2\r\nDownloading 0% 10% 20% 30% 40% 50% 60% 70% 80% 90% 100%\r\nUnpacking 0% 10% 20% 30% 40% 50% 60% 70% 80% 90% 100%\r\nTool Manager: toolchain-xtensa-esp32@8.4.0+2021r2-patch2 has been installed!\r\nTool Manager: Installing espressif/toolchain-xtensa-esp32s2 @ 8.4.0+2021r2-patch2\r\nDownloading 0% 10% 20% 30% 40% 50% 60% 70% 80% 90% 100%\r\nUnpacking 0% 10% 20% 30% 40% 50% 60% 70% 80% 90% 100%\r\nTool Manager: toolchain-xtensa-esp32s2@8.4.0+2021r2-patch2 has been installed!\r\nTool Manager: Installing espressif/toolchain-riscv32-esp @ 8.4.0+2021r2-patch2\r\n\n\nUnknownPackageError: Could not find the package with ‘espressif/toolchain-riscv32-esp @ 8.4.0+2021r2-patch2’ requirements for your system ‘windows_amd64’”
Could not import project “Hello World”
Hi! I can see that you are using ESP32 hardware through the error message, but there’s no way of diagnosing the problem with this information only. Could you post the relevant code so that the error could be reproduced in order for proper troubleshooting?
Hi, thanks for reply. Some background: I am new to PlatformIO, although fairly good at Python and Micropython, of which the latter is what I use for ESP32 programming. I have acquired a Waveshare ESP-32-touch-LCD-7B (SKU 31726), which is basically a 7” touchscreen with an ESP32-S3 on the back. Having said that, this query does not relate to that as I haven’t reached the stage of flashing it.
Nor does it relate to any code that I have written.
What happened is as follows:
- I installed PlatformIO IDE to Visual Studio (Windows 11 PC).
- I tried various “New Project” attempts, following the Waveshare instructions, without success. So I decided to import a Project Example.
- After a restart of Visual Studio, I clicked the “ant-head” symbol on the left and got into the Home page of PlatformIO. This says “Welcome to PlatformIO” and has a large orange ant-head symbol.
- I clicked Project Examples (which is a button to the right of the ant-head symbol under Quick Access).
- This led to Import Project Example. Under Select an Example, I selected “espidf-hello-world”, and clicked Import.
- This showed a message about a delay while importing stuff, after which the message “Could not import project” appeared, which is the message I posted.
- I have redone the actions as I typed this, and got the same “Could not import project”, with the following message under it:
- PIO Core Call Error: “Resolving esp32dev dependencies…\r\nTool Manager: Installing espressif/toolchain-riscv32-esp @ 8.4.0+2021r2-patch2\r\n\n\nUnknownPackageError: Could not find the package with ‘espressif/toolchain-riscv32-esp @ 8.4.0+2021r2-patch2’ requirements for your system ‘windows_amd64’”
Basically it says ‘espressif/toolchain-riscv32-esp @ 8.4.0+2021r2-patch2’ can’t be found.
I clicked on Check Available Solutions, which led me here.
That’s it.
Please note that I am unlikely to be able to respond for a few days.
I uninstalled Video Studio Code and anything that said Visula Studio as well, re-booted and re-installed Visual Code User from Microsoft Store, then ran the same Import as above, and got the same error:
Could not import project
PIO Core Call Error: “Resolving esp32dev dependencies…\r\nTool Manager: Installing espressif/toolchain-riscv32-esp @ 8.4.0+2021r2-patch2\r\n\n\nUnknownPackageError: Could not find the package with ‘espressif/toolchain-riscv32-esp @ 8.4.0+2021r2-patch2’ requirements for your system ‘windows_amd64’”
I have also tried importing “espidf-arduino-blink”, without success. The error message/log is (see the end for the error):
Could not import project
PIO Core Call Error: “Resolving esp32dev dependencies…\r\nTool Manager: Installing platformio/toolchain-xtensa32 @ ~2.80400.0\r\nDownloading 0% 10% 20% 30% 40% 50% 60% 70% 80% 90% 100%\r\nUnpacking 0% 10% 20% 30% 40% 50% 60% 70% 80% 90% 100%\r\nTool Manager: toolchain-xtensa32@2.80400.210211 has been installed!\r\nTool Manager: Installing git+https://github.com/marcovannoord/arduino-esp32.git#idf-release/v4.0\r\ngit version 2.36.1.windows.1\nTool Manager: framework-arduinoespressif32@0.0.0+sha.d011dd7 has been installed!\r\nTool Manager: Installing platformio/framework-espidf @ ~3.40001.0\r\nDownloading 0% 10% 20% 30% 40% 50% 60% 70% 80% 90% 100%\r\nUnpacking 0% 10% 20% 30% 40% 50% 60% 70% 80% 90% 100%\r\nTool Manager: framework-espidf@3.40001.200521 has been installed!\r\nTool Manager: Installing platformio/tool-cmake @ ~3.16.0\r\nDownloading 0% 10% 20% 30% 40% 50% 60% 70% 80% 90% 100%\r\nUnpacking 0% 10% 20% 30% 40% 50% 60% 70% 80% 90% 100%\r\nTool Manager: tool-cmake@3.16.4 has been installed!\r\nTool Manager: Installing platformio/tool-ninja @ ^1.7.0\r\nDownloading 0% 10% 20% 30% 40% 50% 60% 70% 80% 90% 100%\r\nUnpacking 0% 10% 20%\r\nTool Manager: tool-ninja@1.9.0 has been installed!\r\nTool Manager: Installing platformio/tool-mconf @ ~1.4060000.0\r\nDownloading 0% 10% 20% 30% 40% 50% 60% 70% 80% 90% 100%\r\nUnpacking 0% 10% 20% 30% 40% 50% 60% 70% 80%\r\nTool Manager: tool-mconf@1.4060000.20190628 has been installed!\r\nTool Manager: Installing platformio/tool-idf @ ~1.0.1\r\nDownloading 0% 10% 20%\r\nUnpacking 0% 10% 20%\r\nTool Manager: tool-idf@1.0.1 has been installed!\r\nTool Manager: Installing platformio/tool-scons @ ~4.40801.0\r\nDownloading 0% 10% 20% 30% 40% 50% 60% 70% 80% 90% 100%\r\nUnpacking 0% 10% 20% 30% 40% 50% 60% 70% 80% 90% 100%\r\nTool Manager: tool-scons@4.40801.0 has been installed!\r\nTool Manager: Removing tool-scons @ 4.40300.220725\r\nTool Manager: tool-scons@4.40300.220725 has been removed!\r\nAlready up-to-date.\r\nUpdating metadata for the vscode IDE…\r\n\n\nCloning into ‘C:\\Users\\donal\\.platformio\\.cache\\tmp\\pkg-installing-nagktpbv’…\nUpdating files: 82% (1642/1988)\rUpdating files: 83% (1651/1988)\rUpdating files: 84% (1670/1988)\rUpdating files: 85% (1690/1988)\rUpdating files: 86% (1710/1988)\rUpdating files: 87% (1730/1988)\rUpdating files: 88% (1750/1988)\rUpdating files: 89% (1770/1988)\rUpdating files: 90% (1790/1988)\rUpdating files: 91% (1810/1988)\rUpdating files: 92% (1829/1988)\rUpdating files: 93% (1849/1988)\rUpdating files: 94% (1869/1988)\rUpdating files: 95% (1889/1988)\rUpdating files: 96% (1909/1988)\rUpdating files: 97% (1929/1988)\rUpdating files: 98% (1949/1988)\rUpdating files: 99% (1969/1988)\rUpdating files: 100% (1988/1988)\rUpdating files: 100% (1988/1988), done.\nUserSideException: Processing esp32dev (board: esp32dev; platform: espressif32; framework: arduino, espidf)\r\n--------------------------------------------------------------------------------\r\nVerbose mode can be enabled via `-v, --verbose` option\r\nCONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32dev.html\r\nPLATFORM: Espressif 32 (3.5.0) > Espressif ESP32 Dev Module\r\nHARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash\r\nDEBUG: 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)\r\nPACKAGES: \r\n - framework-arduinoespressif32 @ 0.0.0+sha.d011dd7 \r\n - framework-espidf @ 3.40001.200521 (4.0.1) \r\n - tool-cmake @ 3.16.4 \r\n - tool-esptoolpy @ 1.30100.210531 (3.1.0) \r\n - tool-idf @ 1.0.1 \r\n - tool-mconf @ 1.4060000.20190628 (406.0.0) \r\n - tool-ninja @ 1.9.0 \r\n - toolchain-esp32ulp @ 1.22851.191205 (2.28.51) \r\n - toolchain-xtensa32 @ 2.80400.210211 (8.4.0)\r\nInstalling ESP-IDF’s Python dependencies\r\nCollecting cryptography<35.0.0,>=2.1.4\r\n Downloading cryptography-3.4.8-cp36-abi3-win_amd64.whl.metadata (5.1 kB)\r\nCollecting future>=0.15.2\r\n Downloading future-1.0.0-py3-none-any.whl.metadata (4.0 kB)\r\nCollecting pyparsing<2.4.0,>=2.0.3\r\n Downloading pyparsing-2.3.1-py2.py3-none-any.whl.metadata (1.0 kB)\r\nCollecting kconfiglib==13.7.1\r\n Downloading kconfiglib-13.7.1-py2.py3-none-any.whl.metadata (39 kB)\r\nCollecting cffi>=1.12 (from cryptography<35.0.0,>=2.1.4)\r\n Downloading cffi-2.0.0-cp311-cp311-win_amd64.whl.metadata (2.6 kB)\r\nCollecting pycparser (from cffi>=1.12->cryptography<35.0.0,>=2.1.4)\r\n Downloading pycparser-2.23-py3-none-any.whl.metadata (993 bytes)\r\nDownloading kconfiglib-13.7.1-py2.py3-none-any.whl (145 kB)\r\nDownloading cryptography-3.4.8-cp36-abi3-win_amd64.whl (1.6 MB)\r\n ---------------------------------------- 1.6/1.6 MB 28.7 MB/s 0:00:00\r\nDownloading pyparsing-2.3.1-py2.py3-none-any.whl (61 kB)\r\nDownloading future-1.0.0-py3-none-any.whl (491 kB)\r\nDownloading cffi-2.0.0-cp311-cp311-win_amd64.whl (182 kB)\r\nDownloading pycparser-2.23-py3-none-any.whl (118 kB)\r\nInstalling collected packages: pyparsing, pycparser, kconfiglib, future, cffi, cryptography\r\n\r\nSuccessfully installed cffi-2.0.0 cryptography-3.4.8 future-1.0.0 kconfiglib-13.7.1 pycparser-2.23 pyparsing-2.3.1\r\nInstalling windows-curses package\r\nProcessing c:\\users\\donal\\.platformio\\packages\\framework-espidf\\tools\\kconfig_new\\esp-windows-curses\r\nERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: ‘C:\\\\Users\\\\donal\\\\.platformio\\\\packages\\\\framework-espidf\\\\tools\\\\kconfig_new\\\\esp-windows-curses’\r\n\r\n*** Error 1\r\nError: Detected a whitespace character in project paths.\r\n========================= [FAILED] Took 11.08 seconds =========================\r\n\r\nEnvironment Status Duration\r\n------------- -------- ------------\r\nesp32dev FAILED 00:00:11.085\r\n==================== 1 failed, 0 succeeded in 00:00:11.085 ====================”
Ref the above, “C:\Users\donal.platformio\packages\framework-espidf\tools\kconfig_new” exists on my PC but not “esp-windows-curses”
Happy Nerw Year to all!!
What is the full path to the project’s diretory?
I believe there are often problems with versions of applications installedfrom there. I would advise deleting it again (sorry!) And reinstall directly from the official download site at Download Visual Studio Code - Mac, Linux, Windows.
Cheers,
Norm.
I uninstalled Visual Studio Code and re-installed from the official download site, but sadly no difference to the two imports above. Same errors.
Full path to the projecrs directory is:
“C:\Users\donal\Documents\Raspberry Pi and general projects\PlatformIO\Projects”
Sorry for the delay in responding! As I am also fairly new to this, I would think it is an installation error of some kind, but considering that you uninstalled and reinstalled everything I don’t really know how to proceed.
However, upon trying to reproduce the error (I imported the project example as described), I noticed that the platformio.ini file does not describe an ESP32-S3 board altogether.
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter, extra scripting
; Upload options: custom port, speed and extra flags
; Library options: dependencies, extra library storages
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
[env]
platform = espressif32
framework = espidf
monitor_speed = 115200
[env:esp32dev]
board = esp32dev
[env:esp32-s2-kaluga-1]
board = esp32-s2-kaluga-1
[env:esp32-c3-devkitm-1]
board = esp32-c3-devkitm-1
[env:esp32-c6-devkitc-1]
board = esp32-c6-devkitc-1
board_build.cmake_extra_args =
-DSDKCONFIG_DEFAULTS="sdkconfig.defaults.esp32c6"
I am inclined to think that if you create a project normally with the correct hardware or create definitions for an ESP32-S3 board in platformio.ini and use the example code, it will work just fine.
I think the problem was I was using a Windows path for the Project folder that had “whitespaces” in it. I changed this to no whitespaces and things seem better now. Or at least I have moved a step on without error, by loading Hello_World. I will now try to flash the ESP32. Thanks for your help.
2 Likes
Good to know that it worked.