Help: PIO Home stuck on "Loading", can't see any tools

It seems to match, just the validity is different, where mine says February 12, 2021. Here’s what I got on Google Chrome:

That is the “Not After 2/12/2021, 6:27:49 PM (Central European Standard Time)” date and is the same as mine.

So all certificates are okay and you can do a normal HTTPS handshake against the website, no idea why PlatformIO is complaining.

I can recommend two things: Open a PlatformIO CLI and execute pio upgrade --dev to upgrade to the latest development core. Then restart VSCode.

If the problem still appears, again open a CLI terminal and type pio home --port 8009. It should start a local PIO home server on port 8009 localhost and directly open a browser to it. Is the page working there / are there errors? (some buttons like project explorer only work within VSCode though)

Hey Max, I have tried both recommendations with no success.
Upgraded successfully but I was still getting the problem, so I tried “pio home --port 8009” and got an error message. See below:

o_O. You can try and temporarily disable the firewall to see if that changes things, restart VSCode and retry. Otherwise I don’t have any ideas anymore… Maybe @ivankravets can take over then.

1 Like

I’ll try and I’ll get back ASAP. Thanks again for all your help, Max!

Oh wait actually I do see a problem. It’s trying to install the pysite package for Python 2.7. Mac OS is special in that regard because it has Python 2.7 as system-wide Python installation, but the PlatformIO extension brings its own Python 3 interpreter and must absolutely run within that Python3 interpreter. Now if you opened a PIO terminal and types pio upgrade --dev and it wanted to upgrade Python 2.7 that’s a bad indication that PIO is running under 2.7.

If you execute pio system info it will also show you the interpreter it’s running on, so you can double check that.

Have you ever installed PlatformIO using the pip (2) of the system? You may have multiple PlatformIO cores. I suggest you try a clean uninstall and reinstall. pip uninstall platformio in a system shell if it was ever installed there, then remove the VSCode PIO extension, delete the PlatformIO folder (rm -rf /Users/<user>/.platformio/), restart VSCode and reinstall the VSCode PIO extension. Maybe that helps.

Hey Max! I have never tried installing and uninstalling using the Pip of the system, but I’m willing to try the uninstall and folder deletion. Do I do this trough Mac’s terminal? (Sorry for a probably very noob question, hahaha)

So here’s the PIO System Info. It tells me that I’m running a Python 2.7.10-final.0
I have clicked on /Users/FlavioMark/.platformio/penv/bin/platformio to open it in the file Editor, and it prompted these two windows about Python, I believe it can be useful.

Very strange. It reports that its python executable is indeed the one from the penv folder… but it’s 2.7?

Please open a normal terminal and execute /Users/FlavioMark/.platformio/penv/bin/python --version to get it’s python version and post it, just for our information.

After that you can open a Finder to remove the whole /Users/FlavioMark/.platformio folder, or use the rm -rf /Users/FlavioMark/.platformio command in the terminal to achieve the exact same thing.

1 Like

Here’s the result I get from the python version. It indeed says it’s 2.7.10

I have uninstalled PIO following your instructions and installed it again. Still, same problem shows up. :confused: Should I try the same thing both with PIO and VSCode?

After reinstalling PIO in the VSCode IDE, execute /Users/FlavioMark/.platformio/penv/bin/python --version again. Has the version changed?

No. It’s the same, 2.7.10

Then I might be wrong about it absolutely needing Python 3 and maybe Mac OS is another exception here. Maybe @ivankravets can help you furhter here – after a clean uninstall of all possible multiple cores, a reinstall, checking the certificates and disabling the firewall I don’t know what more to do.

1 Like

Thank you very much for your time and help, Max! Does it mean I might need to update python to version 3? Anyway, I’ll wait for Ivan’s reply and see if he has any different recomendations. Once again, really appreciate your time and availability. :slight_smile:

Mac OS is inherently using Python 2, updating its system Python should not be done. That’s why PlatformIO has its Python virtual environment in its penv folder which can use an arbitrary Python installation, and all nicely separated from the system – at least that’s how it’s supposed to be.

Yep :slight_smile:

1 Like

Thanks for clearing, Max! Learning a lot.

Hi,

  1. Please install the latest Python 3 and certificates as described here Redirecting...
  2. Open VSCode settings and uncheck “Use Builtin Python”
    Screen Shot 2020-11-24 at 18.26.53
  3. Run in terminal rm -rf ~/.platformio/penv

Restart VSCode.

2 Likes

Hi Ivan! Thanks for the fast feedback. I’ll do as you said and will get back ASAP.

Hi,

  1. Please install the latest Python 3 and certificates as described here Redirecting...
  2. Open VSCode settings and uncheck “Use Builtin Python”
    Screen Shot 2020-11-24 at 18.26.53
  3. Run in terminal rm -rf ~/.platformio/penv

Restart VSCode.

YES! It’s finally working! I’ve followed the steps that Ivan listed above. After reopening VSCode, PlatformIO automatically reinstalled and asked me to restart the software. Now I can clearly see the PIO Home, as well as opening an .ini file brings up all the tools on the blue bar, on the bottom left corner.

I guess I can finally get to modifying Marlin and customizing my Ender 3 Pro. :smiley: Thank very very much, Max and Ivan! Amazing support! Sorry it took a day to answer back, I had reached my posting limit for a new account, hahaha.

1 Like

Hi there

I experience the exact same problem with platformio + vscode on windows 10

platformIO is just displaying “loading…” and that’s all.

I tried the steps above, installed the latest python, unchecked the “use builtin python” box, deleted /penv folder, restarted vscode… PlatformIO re-installed, asked to restart vscode, and… nothing more, juste “loading…” endlessly again. No network activity reported by windows task manager, no process activity either

can someone help me on this ?

thanks !

Okay this seems to be a big problem. I have the same issue but no success. could someone here please help us. Sorry to rant but this is a bit annoying

1 Like