PlatformIO Community

What's with all this yellow python stuff?

I see this from time to time. What is it?
What do I do when this happens?

Hm. This is a second python thing posting, I guess the other didn’t stick.
901 errors now, up from 876, down from >1K. Up from one, which was failure to find a .exe file I found in the location is was supposed to be looking.

Processing wemos_d1_mini32 (platform: espressif32; board: wemos_d1_mini32; framework: arduino)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/wemos_d1_mini32.html
PLATFORM: Espressif 32 (2.0.0) > WeMos D1 MINI ESP32
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (esp-prog) External (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-arduinoespressif32 3.10004.200129 (1.0.4)
 - tool-esptoolpy 1.20600.0 (2.6.0)
 - toolchain-xtensa32 2.50200.80 (5.2.0)
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Library Manager: Installing Arduino
Library Manager: Warning! More than one package has been found by Arduino requirements:
 - mbed-aluqard/arduino @ 0.0.0+sha.3b83fc30bbdf
 - mbed-eduardog26/Arduino @ 0.0.0-alpha+sha.abbc3308dfa1
 - mbed-thechrisyd/Arduino @ 0.0.0+sha.272d0276d474
 - mbed-gastonfeng/arduino @ 0.0.0-alpha+sha.b000674ff8b3
 - mbed-rahulsitaram/Arduino @ 0.0.0+sha.d0b32a4209f0
 - mbed-team2/Arduino @ 0.0.0+sha.d96590319bcf
Library Manager: Please specify detailed REQUIREMENTS using package owner and version (showed above) to avoid name conflicts
Library Manager: arduino @ 0.0.0+sha.3b83fc30bbdf has been installed!
Library Manager: Installing Adafruit/Adafruit Sensor Library
KeyError: 'versions':
  File "C:\Users\joema\.platformio\penv\lib\site-packages\platformio\builder\main.py", line 169:
    env.SConscript("$BUILD_SCRIPT")
  File "C:\Users\joema\.platformio\packages\tool-scons\scons-local-4.0.1\SCons\Script\SConscript.py", line 598:
    return _SConscript(self.fs, *files, **subst_kw)
  File "C:\Users\joema\.platformio\packages\tool-scons\scons-local-4.0.1\SCons\Script\SConscript.py", line 287:
    exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
  File "C:\Users\joema\.platformio\platforms\espressif32\builder\main.py", line 223:
    target_elf = env.BuildProgram()
  File "C:\Users\joema\.platformio\packages\tool-scons\scons-local-4.0.1\SCons\Environment.py", line 219:
    return self.method(*nargs, **kwargs)
  File "C:\Users\joema\.platformio\penv\lib\site-packages\platformio\builder\tools\platformio.py", line 62:
    env.ProcessProjectDeps()
  File "C:\Users\joema\.platformio\packages\tool-scons\scons-local-4.0.1\SCons\Environment.py", line 219:
    return self.method(*nargs, **kwargs)
  File "C:\Users\joema\.platformio\penv\lib\site-packages\platformio\builder\tools\platformio.py", line 140:
    project_lib_builder = env.ConfigureProjectLibBuilder()
  File "C:\Users\joema\.platformio\packages\tool-scons\scons-local-4.0.1\SCons\Environment.py", line 219:
    return self.method(*nargs, **kwargs)
  File "C:\Users\joema\.platformio\penv\lib\site-packages\platformio\builder\tools\piolib.py", line 1062:
    project.install_dependencies()
  File "C:\Users\joema\.platformio\penv\lib\site-packages\platformio\builder\tools\piolib.py", line 898:
    lm.install(spec)
  File "c:\users\joema\.platformio\penv\lib\site-packages\platformio\package\manager\_install.py", line 49:
    spec, silent=silent, skip_dependencies=skip_dependencies, force=force
  File "c:\users\joema\.platformio\penv\lib\site-packages\platformio\package\manager\library.py", line 86:
    force=force,
  File "c:\users\joema\.platformio\penv\lib\site-packages\platformio\package\manager\_install.py", line 99:
    pkg = self.install_from_registry(spec, search_filters, silent=silent)
  File "c:\users\joema\.platformio\penv\lib\site-packages\platformio\package\manager\_registry.py", line 86:
    version = self.pick_best_registry_version(package["versions"], spec)
==================================================================================================== [FAILED] 

Where is the bulltetproof installation that installs everything correcly?
Github?

You are being asked to fix your lub_deps and supply library names in the given format of supplier/library_name. You need to pick one of the listed Arduio libraries which is compatible with your device, and enter its full name in lib_deps. This is new behaviour in the 5.0.0 release which you appear to be running. It fixes this problem with multiple libraries with the same name.

That was a clue! :wink:

That was/is explained in the release notes for 5.0.0. It’s on the forum home page under the Announcements forum.

Cheers,
Norm.

1 Like

What platformio.ini do you have so that it attempts installation of the Arduino core… while using the Arduino core? o_O

From his post above:

Cheers,
Norm.