platformio / platformio-home

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

Could not initialize project #5922

Open daniel-maiorano opened 1 year ago

daniel-maiorano commented 1 year ago

PIO Core Call Error: "Resolving redBearLabBLENano dependencies...\nAlready up-to-date.\nUpdating metadata for the vscode IDE...\n\n\nUserSideException: Processing redBearLabBLENano (platform: nordicnrf51; board: redBearLabBLENano; framework: mbed)\n--------------------------------------------------------------------------------\nVerbose mode can be enabled via -v, --verbose option\nCONFIGURATION: https://docs.platformio.org/page/boards/nordicnrf51/redBearLabBLENano.html\nPLATFORM: Nordic nRF51 (8.1.0) > RedBearLab BLE Nano 1.5\nHARDWARE: NRF51822 16MHz, 32KB RAM, 256KB Flash\nDEBUG: Current (cmsis-dap) On-board (cmsis-dap) External (blackmagic, jlink, stlink)\nPACKAGES: \n - framework-mbed @ 5.51105.190312 (5.11.5) \n - tool-sreccat @ 1.164.0 (1.64) \n - toolchain-gccarmnoneeabi @ 1.70201.0 (7.2.1)\nAttributeError: type object 'array.array' has no attribute 'tostring':\n File \"/Users/daniel/.platformio/penv/lib/python3.9/site-packages/platformio/builder/main.py\", line 175:\n env.SConscript(\"$BUILD_SCRIPT\")\n File \"/Users/daniel/.platformio/packages/tool-scons/scons-local-4.5.2/SCons/Script/SConscript.py\", line 598:\n return _SConscript(self.fs, *files, subst_kw)\n File \"/Users/daniel/.platformio/packages/tool-scons/scons-local-4.5.2/SCons/Script/SConscript.py\", line 285:\n exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)\n File \"/Users/daniel/.platformio/platforms/nordicnrf51/builder/main.py\", line 116:\n target_elf = env.BuildProgram()\n File \"/Users/daniel/.platformio/packages/tool-scons/scons-local-4.5.2/SCons/Util/envs.py\", line 242:\n return self.method(*nargs, *kwargs)\n File \"/Users/daniel/.platformio/penv/lib/python3.9/site-packages/platformio/builder/tools/piobuild.py\", line 61:\n env.ProcessProgramDeps()\n File \"/Users/daniel/.platformio/packages/tool-scons/scons-local-4.5.2/SCons/Util/envs.py\", line 242:\n return self.method(nargs, kwargs)\n File \"/Users/daniel/.platformio/penv/lib/python3.9/site-packages/platformio/builder/tools/piobuild.py\", line 121:\n env.BuildFrameworks(env.get(\"PIOFRAMEWORK\"))\n File \"/Users/daniel/.platformio/packages/tool-scons/scons-local-4.5.2/SCons/Util/envs.py\", line 242:\n return self.method(*nargs, kwargs)\n File \"/Users/daniel/.platformio/penv/lib/python3.9/site-packages/platformio/builder/tools/piobuild.py\", line 342:\n SConscript(env.GetFrameworkScript(name), exports=\"env\")\n File \"/Users/daniel/.platformio/packages/tool-scons/scons-local-4.5.2/SCons/Script/SConscript.py\", line 662:\n return method(*args, *kw)\n File \"/Users/daniel/.platformio/packages/tool-scons/scons-local-4.5.2/SCons/Script/SConscript.py\", line 598:\n return _SConscript(self.fs, files, subst_kw)\n File \"/Users/daniel/.platformio/packages/tool-scons/scons-local-4.5.2/SCons/Script/SConscript.py\", line 285:\n exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)\n File \"/Users/daniel/.platformio/platforms/nordicnrf51/builder/frameworks/mbed.py\", line 35:\n SConscript(\n File \"/Users/daniel/.platformio/packages/tool-scons/scons-local-4.5.2/SCons/Script/SConscript.py\", line 662:\n return method(*args, *kw)\n File \"/Users/daniel/.platformio/packages/tool-scons/scons-local-4.5.2/SCons/Script/SConscript.py\", line 598:\n return _SConscript(self.fs, files, **subst_kw)\n File \"/Users/daniel/.platformio/packages/tool-scons/scons-local-4.5.2/SCons/Script/SConscript.py\", line 285:\n exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)\n File \"/Users/daniel/.platformio/packages/framework-mbed@5.51105.190312/platformio/platformio-build.py\", line 40:\n from pio_mbed_adapter import PlatformioMbedAdapter\n File \"/Users/daniel/.platformio/packages/framework-mbed@5.51105.190312/platformio/pio_mbed_adapter.py\", line 23:\n from tools.build_api import (prepare_toolchain, merge_region_list,\n File \"/Users/daniel/.platformio/packages/framework-mbed@5.51105.190312/tools/build_api.py\", line 30:\n from intelhex import IntelHex\n File \"/Users/daniel/.platformio/packages/framework-mbed@5.51105.190312/platformio/package_deps/py3/intelhex/init.py\", line 44:\n from intelhex.compat import (\n File \"/Users/daniel/.platformio/packages/framework-mbed@5.51105.190312/platformio/package_deps/py3/intelhex/compat.py\", line 60:\n array_tobytes = getattr(array.array, \"tobytes\", array.array.tostring)\n========================== [FAILED] Took 0.69 seconds ==========================\n\nEnvironment Status Duration\n----------------- -------- ------------\nredBearLabBLENano FAILED 00:00:00.691\n==================== 1 failed, 0 succeeded in 00:00:00.691 ===================="

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.