What kind of issue is this?
Operating system: Ubuntu 18.04
PlatformIO Version (platformio --version): PlatformIO, version 3.6.6
After a fresh install of PlatformIO, I cannot run pio home because it's unable to install contrib-pysite
pip uninstall platformio, rm -rf ~/.platformio, 'pip install -U platformio`.pio home$ pio home
CorePackageManager: Installing tool-pioplus @ ^2.0.0
Downloading [####################################] 100%
Unpacking [####################################] 100%
tool-pioplus @ 2.1.3 has been successfully installed!
CorePackageManager: Installing contrib-pysite @ ~2.27.0
Error: Detected unknown package 'contrib-pysite'
pio home should install required packages and run successfully.
I've checked that my internet connection is working. It always fails on this specific package (I can install any other package).
I've also tried downloading a contrib-pysite package from https://bintray.com/platformio/dl-packages/contrib-pysite#files, then installing with pio platform install file://contrib-pysite-linux_x86_64-2.27.181225.tar.gz, but this fails with:
Unpacking [####################################] 100%
Error: Could not find one of 'platform.json' manifest files in the package
This is a bug with our CDN and has been just fixed. Please Restart VSCode and re-run $ pio update. Sorry.
Nice one - that's looking much better now. Thanks for sorting that out so quickly!
Thank you very much, it's working now.
Working Thank you
I face the same problem which shows that "Error: Error: Detected unknown package 'contrib-pysite'".
I try 'pio update' but it didn't work it just show me
and then nothing happened
All of the wrong message are following
Error: Error: Detected unknown package 'contrib-pysite'
at S.Promise (/home/rei/.vscode/extensions/platformio.platformio-ide-1.8.2/node_modules/platformio-node-helpers/dist/index.js:1:17225)
at ChildProcess.h (/home/rei/.vscode/extensions/platformio.platformio-ide-1.8.2/node_modules/platformio-node-helpers/dist/index.js:1:6033)
at ChildProcess.emit (events.js:182:13)
at maybeClose (internal/child_process.js:962:16)
at Socket.ChildProcess.spawn.stream.socket.on (internal/child_process.js:381:11)
at Socket.emit (events.js:182:13)
at Pipe.Socket._destroy._handle.close (net.js:606:12)
It means that PlatformIO installer can't download contrib-pysite package. Maybe, internet or pythno SSL issue.
You can open PlatormIO IDE Terminal and type:
pio home
You will see detailed error report.
The error is a bit confusing and the root cause is never shown due to the exception being caught but not logged/rethrown @ivankravets
https://github.com/platformio/platformio-core/blob/d2abac9b18ff47cd2ab32312995ba52e78cfd62a/platformio/managers/package.py#L54-L59
Actual exception is:
EOF occurred in violation of protocol
...which can be remedied by installing package pyopenssl in the virtual env. This is only needed for Python 2.7 which the installation defaults to use on my system.
Most helpful comment
This is a bug with our CDN and has been just fixed. Please Restart VSCode and re-run
$ pio update. Sorry.