platformio-core: Solved: Detected unknown package
Solution
- Please check your Internet connection, firewall, and antivirus tools which can block PlatformIO.
- Try to open PlatformIO Core (CLI) via VSCode > Left Side Bar > PlatformIO > Misc and to install required dev/platform manually:
pio platform install xxxNameOfDevPlatform
Or, start building project with pio run.
IF YOU CAN NOT RESOLVE THIS ISSUE, please leave a comment below.
PIO Core Call Error: “The current working directory C:\Users\Briam\Documents\HI will be used for the project.\r\n\r\nThe next files/directories have been created in C:\Users\Briam\Documents\HI\r\ninclude - Put project header files here\r\nlib - Put here project specific (private) libraries\r\nsrc - Put project source files here\r\nplatformio.ini - Project Configuration File\r\n\n\nError: Detected unknown package ‘tool-scons’”
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 21 (7 by maintainers)
https://www.python.org/downloads/release/python-381/
Please install the latest Python from official web site. Remove
~/.platformio/penvfolder and restart VSCode.Please note that you need also to install SSL certificates. The installation script should be in mounted Python image.
Hello,
just wanted to share this experience, I updated this post with the answers I found for future reference since my search ended here, maybe it will help others.
I’m runnig on windows 10. I was working happily in an old environment of Platform.io to update the number of NeoPixels in some old sketch. I could build and upload my project from the commandline with “pio run”, VS-Code mentioned to install the Platform-IO extention so I did that. It started to update everything including the commandline version. And now i get this on “pio run”
The link is wrong it needs to be https://docs.platformio.org/en/latest//faq.html#multiple-platformio-cores-in-a-system But i guess it’s from the old version I use.
So id did
Now it downloads dependencies again and after that the compile of the NeoPixel library is broken
Top poblem was gone after fidling with the platform= in the platformio.ini (Not sure why I think it’s the same again, maybe it flushed or updated something).
Now I still have problem in my own code with
This seems to have something to do with ESPAsyncWebServer.h and AsyncWebSocket.h, Intellisense can find the function in the ESPAsyncWebServer.cpp. But puting AsyncWebSocket.h in the includes doesn’t help.
I found out they where not in the newly downloaded .h file. The new files where in libdeps under the .pio directory. But I still had the old files in the .piolibdevs directory. So when I did a search to find the method I found it in the .h of the old version thinking it was still in there.
I put it back in the .h of the new version. I see I did that because the “binaryAll” function in the websockets library took to much time (to many mallocs) so I hacked into a layer deeper by exposing these in the .h file. I needed this to get to 60fps update rate from a javascript websocket client running on my phone, the esp32 couldn’t handle that using the “binaryAll” function so that’s why I hacked it. Maybe I should sugest a change to the " ESP Async WebServer" package, or maybe there allready is a faster version (It’s been 4 years since I wrote that).
All I wanted to do was change the number of leds connected to the program, now I’m 2 hours further. Not your fault, but still frustrating.
But still thanks for the Amazing platform that is platform.io 😃
The Error message could hint in this direction.
Then at least the way forward would be clear. The general error message “unknown package detected” is a little misleading… 😃
BTW: coding with platformio rocks - for the couple of hours i now had 😃