platformio / platformio-home

PlatformIO Home
https://docs.platformio.org/page/home/index.html
Apache License 2.0
100 stars 62 forks source link

Could not initialize project #5577

Open ceng505 opened 1 year ago

ceng505 commented 1 year ago

PIO Core Call Error: "The current working directory /Users/maissa/esp/esp-idf/try_scan will be used for the project.\n\nThe next files/directories have been created in /Users/maissa/esp/esp-idf/try_scan\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 esp32dev dependencies...\nAlready up-to-date.\nUpdating metadata for the vscode IDE...\n\n\nError: Processing esp32dev (platform: espressif32; board: esp32dev; framework: espidf)\n--------------------------------------------------------------------------------\nVerbose mode can be enabled via -v, --verbose option\nCONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32dev.html\nPLATFORM: Espressif 32 (6.1.0) > Espressif ESP32 Dev Module\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.50001.0 (5.0.1) \n - tool-cmake @ 3.16.4 \n - tool-esptoolpy @ 1.40500.0 (4.5.0) \n - tool-ninja @ 1.9.0 \n - toolchain-esp32ulp @ 1.23500.220830 (2.35.0) \n - toolchain-xtensa-esp32 @ 11.2.0+2022r1\nReading CMake configuration...\n-- Found Git: /usr/bin/git (found version \"2.37.1 (Apple Git-137.1)\") \n-- The C compiler identification is GNU 11.2.0\n-- The CXX compiler identification is GNU 11.2.0\n-- The ASM compiler identification is GNU\n-- Found assembler: /Users/maissa/.platformio/packages/toolchain-xtensa-esp32/bin/xtensa-esp32-elf-gcc\n-- Check for working C compiler: /Users/maissa/.platformio/packages/toolchain-xtensa-esp32/bin/xtensa-esp32-elf-gcc\n-- Check for working C compiler: /Users/maissa/.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: /Users/maissa/.platformio/packages/toolchain-xtensa-esp32/bin/xtensa-esp32-elf-g++\n-- Check for working CXX compiler: /Users/maissa/.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-- Building ESP-IDF components for target esp32\n-- Configuring incomplete, errors occurred!\nSee also \"/Users/maissa/esp/esp-idf/try_scan/.pio/build/esp32dev/CMakeFiles/CMakeOutput.log\".\n\nfatal: not a git repository (or any of the parent directories): .git\nCMake Error at /Users/maissa/.platformio/packages/framework-espidf/tools/cmake/build.cmake:519 (message):\n Traceback (most recent call last):\n\n File \"/Users/maissa/.platformio/penv/.espidf-5.0.1/lib/python3.11/site-packages/requests/compat.py\", line 11, in \n import chardet\n\n ModuleNotFoundError: No module named 'chardet'\n\n \n\n During handling of the above exception, another exception occurred:\n\n \n\n Traceback (most recent call last):\n\n File \"\", line 198, in _run_module_as_main\n File \"\", line 88, in _run_code\n File \"/Users/maissa/.platformio/penv/.espidf-5.0.1/lib/python3.11/site-packages/idf_component_manager/prepare_components/main.py\", line 4, in \n from .prepare import main\n File \"/Users/maissa/.platformio/penv/.espidf-5.0.1/lib/python3.11/site-packages/idf_component_manager/prepare_components/prepare.py\", line 18, in \n from ..core import ComponentManager\n File \"/Users/maissa/.platformio/penv/.espidf-5.0.1/lib/python3.11/site-packages/idf_component_manager/core.py\", line 17, in \n import requests\n File \"/Users/maissa/.platformio/penv/.espidf-5.0.1/lib/python3.11/site-packages/requests/init.py\", line 45, in \n from .exceptions import RequestsDependencyWarning\n File \"/Users/maissa/.platformio/penv/.espidf-5.0.1/lib/python3.11/site-packages/requests/exceptions.py\", line 9, in \n from .compat import JSONDecodeError as CompatJSONDecodeError\n File \"/Users/maissa/.platformio/penv/.espidf-5.0.1/lib/python3.11/site-packages/requests/compat.py\", line 13, in \n import charset_normalizer as chardet\n File \"/Users/maissa/.platformio/penv/.espidf-5.0.1/lib/python3.11/site-packages/charset_normalizer/init.py\", line 24, in \n from .api import from_bytes, from_fp, from_path\n File \"/Users/maissa/.platformio/penv/.espidf-5.0.1/lib/python3.11/site-packages/charset_normalizer/api.py\", line 5, in \n from .cd import (\n File \"/Users/maissa/.platformio/penv/.espidf-5.0.1/lib/python3.11/site-packages/charset_normalizer/cd.py\", line 9, in \n from .md import is_suspiciously_successive_range\n\n ImportError:\n dlopen(/Users/maissa/.platformio/penv/.espidf-5.0.1/lib/python3.11/site-packages/charset_normalizer/md.cpython-311-darwin.so,\n 0x0002): tried:\n '/Users/maissa/.platformio/penv/.espidf-5.0.1/lib/python3.11/site-packages/charset_normalizer/md.cpython-311-darwin.so'\n (mach-o file, but is an incompatible architecture (have (arm64), need\n (x86_64)))\n\nCall Stack (most recent call first):\n /Users/maissa/.platformio/packages/framework-espidf/tools/cmake/project.cmake:440 (idf_build_process)\n CMakeLists.txt:3 (project)\n\n\n\n========================== [FAILED] Took 4.41 seconds =========================="

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. Please provide more details or it will be closed if no further activity occurs. Thank you for your contributions.