Platformio-vscode-ide: Start PIO Home Server: macOS Catalina

Created on 13 Oct 2019  Â·  6Comments  Â·  Source: platformio/platformio-vscode-ide

Solution 1

ONLY IF YOU INSTALLED PYTHON USING HOMEBREW, OTHERWISE USE SOLUTION 2

Open system terminal and tune these commands:

brew install openssl
cd /usr/local/lib
ln -s ../Cellar/openssl/1.0.2t/lib/libssl.1.0.0.dylib libssl.dylib
ln -s ../Cellar/openssl/1.0.2t/lib/libcrypto.1.0.0.dylib libcrypto.dylib
rm -rf ~/.platformio/penv

Restart VSCode.

Solution 2

  1. Install official Python 3 and install SSL certificates, see https://docs.platformio.org/en/latest/faq.html#install-python-interpreter
  2. Open system terminal and type rm -rf ~/.platformio/penv
  3. Restart VScode.

%23 Description of problem
Not loading the PIO Homepage to begin ANY project. Ridiculous, works perfectly on my Microsoft, but this RUBISH 2019 MacBook Pro isn't loading, spent days trying to configure this properly....Rubbisbh apple products....

BEFORE SUBMITTING, PLEASE SEARCH FOR DUPLICATES IN

%23 Configuration

VSCode: 1.39.1
PIO IDE: v1.9.0
System: Darwin, 19.0.0, x64

%23 Exception

Error: 
    at /Users/alexandersmith/.vscode/extensions/platformio.platformio-ide-1.9.0/node_modules/platformio-node-helpers/dist/index.js:1:17383
    at ChildProcess.h (/Users/alexandersmith/.vscode/extensions/platformio.platformio-ide-1.9.0/node_modules/platformio-node-helpers/dist/index.js:1:6150)
    at ChildProcess.emit (events.js:182:13)
    at maybeClose (internal/child_process.js:962:16)
    at Socket.stream.socket.on (internal/child_process.js:381:11)
    at Socket.emit (events.js:182:13)
    at Pipe._handle.close (net.js:606:12)
known issue

All 6 comments

How did you install Python? Did you use Homebrew?

Could you try the next?

  1. Reinstall Python from the source which you used before:
    a) if it's brew, then brew uninstall python, brew install python
    b) if it's Python from Apple Store, just uninstall and install again
    c) if it's official Python from https://python.org, just download the latest Python 3.7 and re-install it.

  2. Open system terminal and type rm -rf ~/.platformio/penv

  3. Restart VScode.

Does it work now?

This is what fixed the issue for me:

On MacOS 10.15, leaving the apple installed python in place, I installed Python 3 from Homebrew. I then executed the -rf ~/.platformio/penv. When I restarted VSCode, Python was crashing. The issue was an incompatibility with the crypto libraries. Based on the instructions found at https://stackoverflow.com/questions/58272830/python-crashing-on-macos-10-15-beta-19a582a-with-usr-lib-libcrypto-dylib, I installed openssl from homebrew and then created the necessary symlinks. I re-executed rm -rf ~/.platformio/penv and restarted VSCode. PIO core was reinstalled.

PIO homepage now works as expected.

I've been facing same issue on fresh install of VScode on fresh install of Calalina. I've followed the suggestion from ivankravets and run rm -rf ~/.platformio/penv and restart VSCode. After PIO was reinstalling itself everything is good. No need to install anything from Homebrew to solve this issue nor do I need to reinstall the python from apple.

I had the same problem and removed and reinstalled python as in solution 1, but PlatformIO still didn't install.

Then I got error messages about conda.

After running conda update conda, PlatformIO did install!

Hi,

Thanks for the report! We rewrote PlatformIO Core installer from the scratch. Please download and install the latest PlatformIO IDE for VSCode 2.0 Beta as described in Try Beta section on that page.

Please respond to this thread if it helped you or you still have an issue. We will reopen this issue again.

Regards,
Your friends at PlatformIO

Was this page helpful?
0 / 5 - 0 ratings

Related issues

BowmanChow picture BowmanChow  Â·  9Comments

chenjingyuanku picture chenjingyuanku  Â·  8Comments

baget picture baget  Â·  8Comments

guoqingaa picture guoqingaa  Â·  4Comments

ButchAnton picture ButchAnton  Â·  8Comments