Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VScode - platformio not finding modules #18

Open
nightflasher opened this issue Oct 30, 2024 · 4 comments
Open

VScode - platformio not finding modules #18

nightflasher opened this issue Oct 30, 2024 · 4 comments

Comments

@nightflasher
Copy link

i've "git cloned" the repo and opend the .workspace file in esp32sense_ov5640 and keeps failing with
`Resolving esp32s3sense dependencies...
Already up-to-date.
Updating metadata for the vscode IDE...
UserSideException: Processing esp32s3sense (platform: espressif32@ 6.5.0; framework: espidf; board: seeed_xiao_esp32s3)

Verbose mode can be enabled via -v, --verbose option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/seeed_xiao_esp32s3.html
PLATFORM: Espressif 32 (6.5.0) > Seeed Studio XIAO ESP32S3
HARDWARE: ESP32S3 240MHz, 320KB RAM, 8MB Flash
DEBUG: Current (cmsis-dap) External (cmsis-dap, esp-bridge, esp-builtin, 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)
PACKAGES:

  • framework-espidf @ 3.50102.240122 (5.1.2)
  • tool-cmake @ 3.16.4
  • tool-esptoolpy @ 1.40501.0 (4.5.1)
  • tool-ninja @ 1.7.1
  • tool-riscv32-esp-elf-gdb @ 12.1.0+20221002
  • tool-xtensa-esp-elf-gdb @ 12.1.0+20221002
  • toolchain-esp32ulp @ 1.23500.220830 (2.35.0)
  • toolchain-riscv32-esp @ 12.2.0+20230208
  • toolchain-xtensa-esp32s3 @ 12.2.0+20230208
    ModuleNotFoundError: No module named 'pkg_resources':
    File "/home/kevin/.platformio/penv/lib/python3.12/site-packages/platformio/builder/main.py", line 173:
    env.SConscript("$BUILD_SCRIPT")
    File "/home/kevin/.platformio/packages/tool-scons/scons-local-4.8.1/SCons/Script/SConscript.py", line 620:
    return _SConscript(self.fs, *files, **subst_kw)
    File "/home/kevin/.platformio/packages/tool-scons/scons-local-4.8.1/SCons/Script/SConscript.py", line 280:
    exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
    File "/home/kevin/.platformio/platforms/espressif32/builder/main.py", line 346:
    target_elf = env.BuildProgram()
    File "/home/kevin/.platformio/packages/tool-scons/scons-local-4.8.1/SCons/Util/envs.py", line 252:
    return self.method(*nargs, **kwargs)
    File "/home/kevin/.platformio/penv/lib/python3.12/site-packages/platformio/builder/tools/piobuild.py", line 61:
    env.ProcessProgramDeps()
    File "/home/kevin/.platformio/packages/tool-scons/scons-local-4.8.1/SCons/Util/envs.py", line 252:
    return self.method(*nargs, **kwargs)
    File "/home/kevin/.platformio/penv/lib/python3.12/site-packages/platformio/builder/tools/piobuild.py", line 121:
    env.BuildFrameworks(env.get("PIOFRAMEWORK"))
    File "/home/kevin/.platformio/packages/tool-scons/scons-local-4.8.1/SCons/Util/envs.py", line 252:
    return self.method(*nargs, **kwargs)
    File "/home/kevin/.platformio/penv/lib/python3.12/site-packages/platformio/builder/tools/piobuild.py", line 347:
    SConscript(env.GetFrameworkScript(name), exports="env")
    File "/home/kevin/.platformio/packages/tool-scons/scons-local-4.8.1/SCons/Script/SConscript.py", line 684:
    return method(*args, **kw)
    File "/home/kevin/.platformio/packages/tool-scons/scons-local-4.8.1/SCons/Script/SConscript.py", line 620:
    return _SConscript(self.fs, *files, **subst_kw)
    File "/home/kevin/.platformio/packages/tool-scons/scons-local-4.8.1/SCons/Script/SConscript.py", line 280:
    exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
    File "/home/kevin/.platformio/platforms/espressif32/builder/frameworks/espidf.py", line 29:
    import pkg_resources
    ========================== [FAILED] Took 1.09 seconds ==========================`
@RomanLut
Copy link
Owner

Older expressif SDKs are not compatible with latest Python.
I am still using 3.10.3.
I will check if I project works with newer expressif SDKs.
You may try do dowgrade python installed in the system to 3.11.

@nightflasher
Copy link
Author

maybe you can provide a pre-compiled version for this ESP32S3 Wroom CAM+SD board with OV5640? I'm trying to setup another virtual system for python 3.10/3.11

@RomanLut
Copy link
Owner

I better spend my time on upgrading SDK.

If you need just binaries, you can enabe Actions on your fork and let Github compile it for you https://github.com/RomanLut/hx-esp32-cam-fpv/actions/runs/11528322024

@RomanLut
Copy link
Owner

RomanLut commented Nov 1, 2024

Upgraded SDKs in master branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants