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

[Bug] 0.8.151 Compile fails with fresh installed PlatformIO #1762

Open
fsck-block opened this issue Oct 6, 2024 · 1 comment
Open

[Bug] 0.8.151 Compile fails with fresh installed PlatformIO #1762

fsck-block opened this issue Oct 6, 2024 · 1 comment

Comments

@fsck-block
Copy link
Contributor

Compile of ahoy fails when compiling with a fresh installed PlatformIO environment.

Resolving esp8266-minimal dependencies...
Library Manager: Installing git+https://github.com/nRF24/RF24.git#v1.4.8
git version 2.43.0
Klone nach '/home/XXXXX/.platformio/.cache/tmp/pkg-installing-r9s9ze6y' …

...

Library Manager: [email protected]+sha.0873c38 has been installed!
Library Manager: Resolving dependencies...
Library Manager: Installing esphome/ESPAsyncTCP-esphome
Unpacking 0% 10% 20% 30% 40% 50% 60% 70% 80% 90% 100%
Library Manager: [email protected] has been installed!
Library Manager: Installing git+https://github.com/me-no-dev/ESPAsyncUDP
git version 2.43.0
Klone nach '/home/XXXXX/.platformio/.cache/tmp/pkg-installing-jpyd70c7' …

Library Manager: [email protected]+sha.697c75a has been installed!
Updating metadata for the vscode IDE...
UserSideException: Processing esp8266-minimal (platform: espressif8266; board: esp12e; framework: arduino)
--------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
ModuleNotFoundError: No module named 'pkg_resources':
  File "/home/XXXXX/.platformio/penv/lib/python3.12/site-packages/platformio/builder/main.py", line 167:
    env.SConscript(env.GetExtraScripts("pre"), exports="env")
  File "/home/XXXXX/.platformio/packages/tool-scons/scons-local-4.8.1/SCons/Script/SConscript.py", line 620:
    return _SConscript(self.fs, *files, **subst_kw)
  File "/home/XXXXX/.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/XXXXX/ahoy-development03/scripts/auto_firmware_version.py", line 5:
    import pkg_resources
========================== [FAILED] Took 0.48 seconds ==========================

Environment      Status    Duration
---------------  --------  ------------
esp8266-minimal  FAILED    00:00:00.478
==================== 1 failed, 0 succeeded in 00:00:00.478 ====================

Current PlatformIO is based on python3.12 where the package pkg_resources is no longer available by default.
pkg_resource is used in script auto_firmware_version.py.
Bugfix available. See PR #1759

@lumapu
Copy link
Owner

lumapu commented Oct 7, 2024

Thank you for pointing that out. I don't understand why the GitHub actions never failed at this point.
Will merge the PR asap.

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