platformio-home icon indicating copy to clipboard operation
platformio-home copied to clipboard

Could not initialize project

Open PeterCharlesJones opened this issue 3 years ago • 0 comments

I am trying to set up PlatformIO IDE to program ATtiny402 using SerialUPDI (pymcuprog and python). I am completely new to PlatformIO. I have experience with Arduino IDE (1.8) and Studio7 but wanted to make use of fuse calculator feature of PlatformIO.

Are you able to aim me at a step by step - get you going guide?

Here's the error message that stops me crating a new Project.

PIO Core Call Error: "The current working directory D:\Users\Peter\Documents\PlatformIO\Projects\ATtiny402_new will be used for the project.\r\n\r\nThe next files/directories have been created in D:\Users\Peter\Documents\PlatformIO\Projects\ATtiny402_new\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\nResolving ATtiny402 dependencies...\r\nAlready up-to-date.\r\nUpdating metadata for the vscode IDE...\r\n\n\nError: Processing ATtiny402 (platform: atmelmegaavr; board: ATtiny402; framework: arduino)\r\n--------------------------------------------------------------------------------\r\nC:\Users\Peter\.platformio\python3\python.exe: can't open file 'C:\Users\Peter\.platformio\packages\tool-scons\scons.py': [Errno 2] No such file or directory\r\n========================== [FAILED] Took 0.24 seconds =========================="

But I checked that python.exe is there - I can manually run pymcuprog from command line and as an external tool from Studio 7. OK scons.py is missing from ..\tools-scons.

PeterCharlesJones avatar Aug 25 '22 12:08 PeterCharlesJones