PlatformIO refuses to install

When installing PlatformIO in VSCode I get the following results:

Installing PlatformIO IDE…
It may take a few minutes depending on your connection speed
Please do not close this window and do not open other folders until this process is completed.

Debugging information is available via VSCode > Help > Toggle Developer Tools > Console.
Failed to install PlatformIO IDE.

Then I get the following 2 errors:

Error: error: subprocess-exited-with-error Building wheel for platformio (pyproject.toml) did not run successfully. exit code: 1 [593 lines of output] running bdist_wheel running build running build_py creating build creating build\lib creating build\lib\platformio copying platformio\app.py →
build\lib\platformio copying platformio\cache.py →
build\lib\platformio copying platformio\cli.py →
build\lib\platformio copying platformio\compat.py →
build\lib\platformio copying platformio\exception.py →
build\lib\platformio copying platformio\fs.py →
build\lib\platformio copying platformio\http.py →
build\lib\platformio copying plat…

Error: Could not start PIO Home server: Timeout error at Timeout._onTimeout (c:\Users\Leisa’s Craft Room.vscode\extensions\platformio.platformio-ide-3.3.3-win32-x64\node_modules\platformio-node-helpers\dist\index.js:1:10800) at listOnTimeout (node:internal/timers:569:17) at process.processTimers (node:internal/timers:512:7)…

I followed a thread that discussed issues installing V3.3.3 and lengthened file names. I have deleted .platformio directory between every install. I have tried going back multiple versions. I have installed python separately. Nothing I have tried changes the installation result. I have upgraded my Ender 3 Pro with multiple items and need to rebuild the firmware as the firmware files I am finding online do not meet my needs. My printer is currently down and I could really use some help figuring out this installation issue.

I am running Windows 11 Home

2 Likes

Delete C:\Users\<user>\.platformio again. Uninstall the PlatformIO VSCode extension. Then install the PIO core per

https://docs.platformio.org/en/latest/core/installation/methods/installer-script.html#local-download-macos-linux-windows

Does it work? If you then install the PlatformIO VSCode extension, does it work?

1 Like

Thank you so very much I had tried for several days without success. Your information had me running in just a few minutes. I am excited to get started on improving my printer even more.

1 Like

I’ve just lost 3 hours trying to install platformio on vscode on mac.
The script worked like a charm.
You should point to it from the VSCode plugin installation.

I have same issue as described in OP, so I tried the method described here, but I get this error when i run it:

C:\KBoPlatformio>python.exe get-platformio.py
Traceback (most recent call last):
  File "get-platformio.py", line 70, in <module>
    main()
  File "get-platformio.py", line 62, in main
    bootstrap()
  File "get-platformio.py", line 46, in bootstrap
    import pioinstaller.__main__
  File "C:\KBoPlatformio\.piocore-installer-pf9ani\tmpj1e4jf\pioinstaller.zip\pioinstaller\__main__.py", line 20, in <module>
  File "C:\KBoPlatformio\.piocore-installer-pf9ani\tmpj1e4jf\pioinstaller.zip\click\__init__.py", line 7, in <module>
  File "C:\KBoPlatformio\.piocore-installer-pf9ani\tmpj1e4jf\pioinstaller.zip\click\core.py", line 50
    ctx: "Context", incomplete: str
       ^
SyntaxError: invalid syntax

What am I doing wrong?

What does python --version say?

it says:
python.exe --version
Python 2.7.13
is it the wrong version?

Python 2.7? You went back 20 years into the past to download this?

Please use Python 3. The latest release is compatible with Python 3.13.

1 Like

YUP used my time machine :stuck_out_tongue_closed_eyes:
With 3.13 it worked like a charm.
Cheers :grin:

1 Like

Super dekuju moc fungovalo to i na windows 11 pro, Surface Pro 10, the AI PC for business