platformio / platform-ststm32

ST STM32: development platform for PlatformIO
https://registry.platformio.org/platforms/platformio/ststm32
Apache License 2.0
407 stars 312 forks source link

PIO Core Call Error: #657

Closed monurbstnc closed 1 year ago

monurbstnc commented 2 years ago

When ı try to create a new project using vscode extension I am getting this error :

PIO Core Call Error: "The current working directory /home/onur/Voyager/voyager_ble will be used for the project.\n\nThe next files/directories have been created in /home/onur/Voyager/voyager_ble\ninclude - Put project header files here\nlib - Put here project specific (private) libraries\nsrc - Put project source files here\nplatformio.ini - Project Configuration File\nResolving esp32doit-devkit-v1 dependencies...\nAlready up-to-date.\nUpdating metadata for the vscode IDE...\n\n\nError: Processing esp32doit-devkit-v1 (platform: espressif32; board: esp32doit-devkit-v1; framework: espidf)\n--------------------------------------------------------------------------------\nVerbose mode can be enabled via -v, --verbose option\nCONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32doit-devkit-v1.html\nPLATFORM: Espressif 32 (5.2.0) > DOIT ESP32 DEVKIT V1\nHARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash\nDEBUG: Current (cmsis-dap) External (cmsis-dap, esp-bridge, 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)\nPACKAGES: \n - framework-espidf @ 3.40402.0 (4.4.2) \n - tool-cmake @ 3.16.4 \n - tool-esptoolpy @ 1.40201.0 (4.2.1) \n - tool-ninja @ 1.7.1 \n - toolchain-esp32ulp @ 1.22851.191205 (2.28.51) \n - toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch3\nInstalling ESP-IDF's Python dependencies\nCollecting cryptography<35.0.0,>=2.1.4\n Using cached https://files.pythonhosted.org/packages/cc/98/8a258ab4787e6f835d350639792527d2eb7946ff9fc0caca9c3f4cf5dcfe/cryptography-3.4.8.tar.gz\n Complete output from command python setup.py egg_info:\n \n =============================DEBUG ASSISTANCE==========================\n If you are seeing an error here please try the following to\n successfully install cryptography:\n \n Upgrade to the latest pip and try again. This will fix errors for most\n users. See: https://pip.pypa.io/en/stable/installing/#upgrading-pip\n =============================DEBUG ASSISTANCE==========================\n \n Traceback (most recent call last):\n File \"\", line 1, in \n File \"/tmp/pip-build-4s2f6e9s/cryptography/setup.py\", line 14, in \n from setuptools_rust import RustExtension\n ModuleNotFoundError: No module named 'setuptools_rust'\n \n ----------------------------------------\nCommand \"python setup.py egg_info\" failed with error code 1 in /tmp/pip-build-4s2f6e9s/cryptography/\n*** Error 1\nReading CMake configuration...\n-- Found Git: /usr/bin/git (found version \"2.17.1\") \n-- The C compiler identification is GNU 8.4.0\n-- The CXX compiler identification is GNU 8.4.0\n-- The ASM compiler identification is GNU\n-- Found assembler: /home/onur/.platformio/packages/toolchain-xtensa-esp32/bin/xtensa-esp32-elf-gcc\n-- Check for working C compiler: /home/onur/.platformio/packages/toolchain-xtensa-esp32/bin/xtensa-esp32-elf-gcc\n-- Check for working C compiler: /home/onur/.platformio/packages/toolchain-xtensa-esp32/bin/xtensa-esp32-elf-gcc -- works\n-- Detecting C compiler ABI info\n-- Detecting C compiler ABI info - done\n-- Detecting C compile features\n-- Detecting C compile features - done\n-- Check for working CXX compiler: /home/onur/.platformio/packages/toolchain-xtensa-esp32/bin/xtensa-esp32-elf-g++\n-- Check for working CXX compiler: /home/onur/.platformio/packages/toolchain-xtensa-esp32/bin/xtensa-esp32-elf-g++ -- works\n-- Detecting CXX compiler ABI info\n-- Detecting CXX compiler ABI info - done\n-- Detecting CXX compile features\n-- Detecting CXX compile features - done\n-- Project is not inside a git repository, or git repository has no commits; will not use 'git describe' to determine PROJECT_VER.\n-- Building ESP-IDF components for target esp32\n-- Configuring incomplete, errors occurred!\nSee also \"/home/onur/Voyager/voyager_ble/.pio/build/esp32doit-devkit-v1/CMakeFiles/CMakeOutput.log\".\n\nfatal: not a git repository (or any of the parent directories): .git\nCMake Error at /home/onur/.platformio/packages/framework-espidf/tools/cmake/build.cmake:454 (message):\n /home/onur/.platformio/penv/bin/python: Error while finding module\n specification for 'idf_component_manager.prepare_components'\n (ModuleNotFoundError: No module named 'idf_component_manager')\n\nCall Stack (most recent call first):\n /home/onur/.platformio/packages/framework-espidf/tools/cmake/project.cmake:384 (idf_build_process)\n CMakeLists.txt:3 (project)\n\n\n\n========================== [FAILED] Took 2.88 seconds =========================="

What should I do? I am using ubuntu 18.04.6

valeros commented 1 year ago

Wrong repository.