PIO Core Call Error: "Resolving frdm_k22f dependencies...\nAlready up-to-date.\nUpdating metadata for the vscode IDE...\n\n\nUserSideException: Processing frdm_k22f (platform: freescalekinetis; framework: mbed; board: frdm_kl25z)\n--------------------------------------------------------------------------------\nVerbose mode can be enabled via -v, --verbose option\nCONFIGURATION: https://docs.platformio.org/page/boards/freescalekinetis/frdm_kl25z.html\nPLATFORM: Freescale Kinetis (10.0.0) > Freescale Kinetis FRDM-KL25Z\nHARDWARE: MKL25Z128VLK4 48MHz, 16KB RAM, 128KB Flash\nDEBUG: Current (cmsis-dap) On-board (cmsis-dap) External (blackmagic, jlink)\nPACKAGES: \n - framework-mbed @ 6.61700.231105 (6.17.0) \n - toolchain-gccarmnoneeabi @ 1.90201.191206 (9.2.1)\nModuleNotFoundError: No module named 'imp':\n File \"/home/tac/.platformio/penv/lib/python3.12/site-packages/platformio/builder/main.py\", line 173:\n env.SConscript(\"$BUILD_SCRIPT\")\n File \"/home/tac/.platformio/packages/tool-scons/scons-local-4.7.0/SCons/Script/SConscript.py\", line 612:\n return _SConscript(self.fs, *files, subst_kw)\n File \"/home/tac/.platformio/packages/tool-scons/scons-local-4.7.0/SCons/Script/SConscript.py\", line 279:\n exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)\n File \"/home/tac/.platformio/platforms/freescalekinetis/builder/main.py\", line 96:\n target_elf = env.BuildProgram()\n File \"/home/tac/.platformio/packages/tool-scons/scons-local-4.7.0/SCons/Util/envs.py\", line 251:\n return self.method(*nargs, *kwargs)\n File \"/home/tac/.platformio/penv/lib/python3.12/site-packages/platformio/builder/tools/piobuild.py\", line 61:\n env.ProcessProgramDeps()\n File \"/home/tac/.platformio/packages/tool-scons/scons-local-4.7.0/SCons/Util/envs.py\", line 251:\n return self.method(nargs, kwargs)\n File \"/home/tac/.platformio/penv/lib/python3.12/site-packages/platformio/builder/tools/piobuild.py\", line 121:\n env.BuildFrameworks(env.get(\"PIOFRAMEWORK\"))\n File \"/home/tac/.platformio/packages/tool-scons/scons-local-4.7.0/SCons/Util/envs.py\", line 251:\n return self.method(*nargs, kwargs)\n File \"/home/tac/.platformio/penv/lib/python3.12/site-packages/platformio/builder/tools/piobuild.py\", line 347:\n SConscript(env.GetFrameworkScript(name), exports=\"env\")\n File \"/home/tac/.platformio/packages/tool-scons/scons-local-4.7.0/SCons/Script/SConscript.py\", line 676:\n return method(*args, *kw)\n File \"/home/tac/.platformio/packages/tool-scons/scons-local-4.7.0/SCons/Script/SConscript.py\", line 612:\n return _SConscript(self.fs, files, subst_kw)\n File \"/home/tac/.platformio/packages/tool-scons/scons-local-4.7.0/SCons/Script/SConscript.py\", line 279:\n exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)\n File \"/home/tac/.platformio/platforms/freescalekinetis/builder/frameworks/mbed.py\", line 35:\n SConscript(\n File \"/home/tac/.platformio/packages/tool-scons/scons-local-4.7.0/SCons/Script/SConscript.py\", line 676:\n return method(*args, *kw)\n File \"/home/tac/.platformio/packages/tool-scons/scons-local-4.7.0/SCons/Script/SConscript.py\", line 612:\n return _SConscript(self.fs, files, **subst_kw)\n File \"/home/tac/.platformio/packages/tool-scons/scons-local-4.7.0/SCons/Script/SConscript.py\", line 279:\n exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)\n File \"/home/tac/.platformio/packages/framework-mbed/platformio/platformio-build.py\", line 37:\n from pio_mbed_adapter import PlatformioMbedAdapter\n File \"/home/tac/.platformio/packages/framework-mbed/platformio/pio_mbed_adapter.py\", line 52:\n from tools.build_api import prepare_toolchain, UPDATE_WHITELIST\n File \"/home/tac/.platformio/packages/framework-mbed/tools/build_api.py\", line 48:\n from .libraries import Library\n File \"/home/tac/.platformio/packages/framework-mbed/tools/libraries.py\", line 25:\n from tools.tests import TEST_MBED_LIB, DEFAULT_SUPPORT\n File \"/home/tac/.platformio/packages/framework-mbed/tools/tests.py\", line 18:\n from past.builtins import cmp\n File \"/home/tac/.platformio/packages/framework-mbed/platformio/package_deps/py3/past/builtins/init.py\", line 54:\n from past.builtins.misc import (apply, chr, cmp, execfile, intern, oct,\n File \"/home/tac/.platformio/packages/framework-mbed/platformio/package_deps/py3/past/builtins/misc.py\", line 45:\n from imp import reload\n========================== [FAILED] Took 2.55 seconds ==========================\n\nEnvironment Status Duration\n------------- -------- ------------\nfrdm_k22f FAILED 00:00:02.547\n==================== 1 failed, 0 succeeded in 00:00:02.547 ===================="
I believe there's a mismatch between downloaded python files and python version, imp is a package for 3.11. I reinstalled and deleted .platformio and .vscode folder no results. Help please!
PIO Core Call Error: "Resolving frdm_k22f dependencies...\nAlready up-to-date.\nUpdating metadata for the vscode IDE...\n\n\nUserSideException: Processing frdm_k22f (platform: freescalekinetis; framework: mbed; board: frdm_kl25z)\n--------------------------------------------------------------------------------\nVerbose mode can be enabled via
-v, --verbose
option\nCONFIGURATION: https://docs.platformio.org/page/boards/freescalekinetis/frdm_kl25z.html\nPLATFORM: Freescale Kinetis (10.0.0) > Freescale Kinetis FRDM-KL25Z\nHARDWARE: MKL25Z128VLK4 48MHz, 16KB RAM, 128KB Flash\nDEBUG: Current (cmsis-dap) On-board (cmsis-dap) External (blackmagic, jlink)\nPACKAGES: \n - framework-mbed @ 6.61700.231105 (6.17.0) \n - toolchain-gccarmnoneeabi @ 1.90201.191206 (9.2.1)\nModuleNotFoundError: No module named 'imp':\n File \"/home/tac/.platformio/penv/lib/python3.12/site-packages/platformio/builder/main.py\", line 173:\n env.SConscript(\"$BUILD_SCRIPT\")\n File \"/home/tac/.platformio/packages/tool-scons/scons-local-4.7.0/SCons/Script/SConscript.py\", line 612:\n return _SConscript(self.fs, *files, subst_kw)\n File \"/home/tac/.platformio/packages/tool-scons/scons-local-4.7.0/SCons/Script/SConscript.py\", line 279:\n exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)\n File \"/home/tac/.platformio/platforms/freescalekinetis/builder/main.py\", line 96:\n target_elf = env.BuildProgram()\n File \"/home/tac/.platformio/packages/tool-scons/scons-local-4.7.0/SCons/Util/envs.py\", line 251:\n return self.method(*nargs, *kwargs)\n File \"/home/tac/.platformio/penv/lib/python3.12/site-packages/platformio/builder/tools/piobuild.py\", line 61:\n env.ProcessProgramDeps()\n File \"/home/tac/.platformio/packages/tool-scons/scons-local-4.7.0/SCons/Util/envs.py\", line 251:\n return self.method(nargs, kwargs)\n File \"/home/tac/.platformio/penv/lib/python3.12/site-packages/platformio/builder/tools/piobuild.py\", line 121:\n env.BuildFrameworks(env.get(\"PIOFRAMEWORK\"))\n File \"/home/tac/.platformio/packages/tool-scons/scons-local-4.7.0/SCons/Util/envs.py\", line 251:\n return self.method(*nargs, kwargs)\n File \"/home/tac/.platformio/penv/lib/python3.12/site-packages/platformio/builder/tools/piobuild.py\", line 347:\n SConscript(env.GetFrameworkScript(name), exports=\"env\")\n File \"/home/tac/.platformio/packages/tool-scons/scons-local-4.7.0/SCons/Script/SConscript.py\", line 676:\n return method(*args, *kw)\n File \"/home/tac/.platformio/packages/tool-scons/scons-local-4.7.0/SCons/Script/SConscript.py\", line 612:\n return _SConscript(self.fs, files, subst_kw)\n File \"/home/tac/.platformio/packages/tool-scons/scons-local-4.7.0/SCons/Script/SConscript.py\", line 279:\n exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)\n File \"/home/tac/.platformio/platforms/freescalekinetis/builder/frameworks/mbed.py\", line 35:\n SConscript(\n File \"/home/tac/.platformio/packages/tool-scons/scons-local-4.7.0/SCons/Script/SConscript.py\", line 676:\n return method(*args, *kw)\n File \"/home/tac/.platformio/packages/tool-scons/scons-local-4.7.0/SCons/Script/SConscript.py\", line 612:\n return _SConscript(self.fs, files, **subst_kw)\n File \"/home/tac/.platformio/packages/tool-scons/scons-local-4.7.0/SCons/Script/SConscript.py\", line 279:\n exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)\n File \"/home/tac/.platformio/packages/framework-mbed/platformio/platformio-build.py\", line 37:\n from pio_mbed_adapter import PlatformioMbedAdapter\n File \"/home/tac/.platformio/packages/framework-mbed/platformio/pio_mbed_adapter.py\", line 52:\n from tools.build_api import prepare_toolchain, UPDATE_WHITELIST\n File \"/home/tac/.platformio/packages/framework-mbed/tools/build_api.py\", line 48:\n from .libraries import Library\n File \"/home/tac/.platformio/packages/framework-mbed/tools/libraries.py\", line 25:\n from tools.tests import TEST_MBED_LIB, DEFAULT_SUPPORT\n File \"/home/tac/.platformio/packages/framework-mbed/tools/tests.py\", line 18:\n from past.builtins import cmp\n File \"/home/tac/.platformio/packages/framework-mbed/platformio/package_deps/py3/past/builtins/init.py\", line 54:\n from past.builtins.misc import (apply, chr, cmp, execfile, intern, oct,\n File \"/home/tac/.platformio/packages/framework-mbed/platformio/package_deps/py3/past/builtins/misc.py\", line 45:\n from imp import reload\n========================== [FAILED] Took 2.55 seconds ==========================\n\nEnvironment Status Duration\n------------- -------- ------------\nfrdm_k22f FAILED 00:00:02.547\n==================== 1 failed, 0 succeeded in 00:00:02.547 ===================="I believe there's a mismatch between downloaded python files and python version, imp is a package for 3.11. I reinstalled and deleted .platformio and .vscode folder no results. Help please!