Can't get PIO to work, Home doesn't want to load

Please open PIO IDE Terminal (bottom left corner) and type

pio home

Does it work?

This isnt working for me either.
It was working fine last week on this laptop and it was working fine yesterday on a different computer.
I am using Atom.

When I type in pio home into the terminal I get:
PlatformIO Plus (https://pioplus.com) v0.10.13
CorePackageManager: Installing contrib-piohome @ >=0.3.2,<2
Error: Detected unknown package ‘contrib-piohome’

I have uninstalled and reinstalled platformio. I have also upgraded pip and python to ensure I have the latest version (of Python 2.7).

I’m experiencing the same problem. Home won’t load, I get an endless spinner. Windows 10, fresh install of Atom, fresh install of platformio. The output from pio home is:

PlatformIO Plus (https://pioplus.com) v0.10.13
CorePackageManager: Installing contrib-piohome @ >=0.3.2,<2
Error: Detected unknown package 'contrib-piohome

Fixed. Please restart IDE

1 Like

Yep, it’s working for me now. Thanks very much.

I just installed VSCode and PlatformIO and am getting the “Unable to open ‘PIO Home’: Could not start PIO Home server: Error: timeout.” error. Can someone help me out?

OS: Mac, High Sierra

echo $PATH: /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/share/dotnet:/Library/Frameworks/Mono.framework/Versions/Current/Commands

echo $PYTHONPATH:
<>

python --version:
Python 2.7.10

pip --version:
-bash: pip: command not found

pio home:
bash: pio: command not found

I loaded a new version. Still the same problem. Same problem as @12magnette.

Any ideas how to get this to work?

I reinstalled, but it is obviously picking up on the previous installation. Is there way to absolutely clean up traces from the previous installation?

I want to install for ESP32 and Arduino. Is there a no-nonsense installation video I can follow?

I am on Win 7 / Python 2.7.x /

You may find it a weird and nontechnical solution, but I had the same problem as yours.

Just click repeatedly on the home icon of platformio in the left bottom corner and wait the home page to load. This solves the problem for me.

Do you need to do that even after a restart of IDE? Do use Atom or VSCode?

I tried all the suggestions to solve the problem mentioned here and in Github issues. including the restart of IDE. I use VSCode/Windows10.

I must apologize for not reporting back to the forum.

My problem was solved by getting PATH statements sorted out. After a reboot everything started working.

On Windows there are 2 PATH system variables. One is for user’s own account, other is a general one, for all accounts on that PC.

I put all the relevant paths into general PATH system variable, like this:

C:\Python2714;
C:\Python2714\Scripts;
C:\Users(user name).platformio\penv\Scripts;

It is important to install Python 2.7.14 before you install PlatformIO, because PIO is written in Python. If PIO doesn’t know where Python is it can’t install itself.

As well, possibly maybe, Python doesn’t like white space " " character in the path, so maybe it its not a good idea to put Python installation into “c:\Program Files…” folder.

Don’t forget to put a semi-colon “;” on the end of each path string.

If Python is not installed in your system, PIO IDE installer will install it in own isolated folder C:\Users(user name).platformio\python27.

Could try

  1. Navigate to System Control Panel and uninstall ALL Pythons from a system
  2. Remove C:\Users\{user name}\.platformio folder
  3. Restart IDE

Does it work now?

Are you saying that Python 2.7.14 and PIO will work on Windows even if there is a white space character " " in the PATH?

PlatformIO automatically handles spaces, etc.

That’s fine. My question is weather stand alone Python 2.7.14 handles spaces in the path.

What do you mean? If you select “Add to PATH…” using Python installer, it should add correct items to system environment list.

Year ago I was installing Python 2.7.xx and it didn’t want to work if there was a white space in the path. So I was just a bit cautious.

I’m having the same symptom (Home doesn’t load) but likely for a different reason; I figure it’s best to post here so others find it if necessary in the future. This is the inner error, I believe:

C:\Users\kaeli_000>pio home
Traceback (most recent call last):
File "main.py", line 12, in init main
File "c:\users\kaeli_000\.platformio\penv\lib\site-packages\click\__init__.py", line 18, in <module>
    from .core import Context, BaseCommand, Command, MultiCommand, Group, \
File "c:\users\kaeli_000\.platformio\penv\lib\site-packages\click\core.py", line 8, in <module>
    from .types import convert_type, IntRange, BOOL
File "c:\users\kaeli_000\.platformio\penv\lib\site-packages\click\types.py", line 5, in <module>
    from ._compat import open_stream, text_type, filename_to_ui, \
File "c:\users\kaeli_000\.platformio\penv\lib\site-packages\click\_compat.py", line 6, in <module>
    from weakref import WeakKeyDictionary
File "C:\Users\kaeli_000\.platformio\python27\Lib\weakref.py", line 14, in <module>
    from _weakref import (
ImportError: cannot import name _remove_dead_weakref

Any suggestions here? @ivankravets You seem to be the one who knows how to fix things :grinning:

Thanks!

Have you tried this solution?

I hadn’t! Apparently removing all Python installations from my PATH wasn’t enough. It works now.

Thanks!