When pio "Update all", tool-scons Incompatible 4.40300.1 error occurs
See original GitHub issueWhat kind of issue is this?
- PlatformIO Core.
Configuration
Operating system: Windows 10 64 bit.
PlatformIO Version (platformio --version
):
PlatformIO Core, version 5.2.3
Description of problem
I am using platformio on vscode. When I press the button “Updates->Update all”, it will execute “pio update”, the terminal will output its information as follows:
C:\Users\(myusername)pio update
Updating platformio/contrib-piohome 3.4.0 @ ~3.4.0 [Up-to-date]
Updating platformio/tool-scons 4.40200.0 @ ~4.40200.0 [Incompatible 4.40300.1]
Platform Manager
================
Platform atmelavr
--------
Updating platformio/atmelavr 3.4.0 [Up-to-date]
Updating platformio/toolchain-atmelavr 1.70300.191015 @ ~1.70300.0 [Up-to-date]
Updating platformio/framework-arduino-avr 5.1.0 @ ~5.1.0 [Up-to-date]
Updating platformio/framework-arduino-avr-minicore 2.1.3 @ ~2.1.0 [Up-to-date]
Updating platformio/tool-avrdude 1.60300.200527 @ ~1.60300.0 [Up-to-date]
Library Manager
===============
Library Storage: D:\Programs\PlatformIO\lib
Actual Results
Updating platformio/tool-scons 4.40200.0 @ ~4.40200.0 [Incompatible 4.40300.1]
There shows error.
Expected Results
No error.
Additional info
This error is showing up when executing “pio update”, so I think it is a pio core problem and commit issue here.
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
Mysterious build failure after PlatformIO update(?)
I tried to reinstall the nRF52 platform in the IDE, it did not help. This is the error message. I am clueless. Any...
Read more >Resolving IP address of esp32_02.local - ESPHome
I can ping and I can access, with IP address from browser with SlimmeLezer +. But in HA ESPHome is offline, and ESPHome...
Read more >PlatformIO Core 6.0
It allows developers to check for outdated project packages and list version information for all dependencies. There are three color legends to ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
But it is an issue. PlatformIO Core 5.2.3 wants to install the incompatible Scons 4.3 and not the previous SCons release that is compatible. Therefore anyone installing fresh or (in my case) automatic update of platform.io in VSCode are gonna get Platform.IO 5.2.3 with a broken SCons.
The automatic updates is how I ended up in my predicament and eventually found this ticket. Sure the force update to the dev version fixed the problem but it isn’t good that platform.io can “break” itself in this fashion.
So…platform.io “stable” is more-or-less broken is what you are tell us? I can’t build anything marlin as
platformio/tools-scon
won’t install because it is incompatible with the “stable” version of platform.io.C:\users\credomane\.platformio\python3\python.exe: can't open file 'C:\users\credomane\.platformio\packages\tool-scons\scons.py': [Errno 2] No such file or directory
Platform.io should really install the newest compatible version of packages rather than just flat out refusing to install at all. I don’t mine updating to the dev version to resolve this but it was a frustrating weekend of finding years old issues that don’t apply anymore. Then today I find this closed github issue.