Platformio-core: Error: Detected unknown package 'contrib-pysite'

Created on 19 Apr 2019  路  7Comments  路  Source: platformio/platformio-core

What kind of issue is this?

  • [x] PlatformIO Core.
    If you鈥檝e found a bug, please provide an information below.

Configuration

Operating system: Ubuntu 18.04

PlatformIO Version (platformio --version): PlatformIO, version 3.6.6

Description of problem

After a fresh install of PlatformIO, I cannot run pio home because it's unable to install contrib-pysite

Steps to Reproduce

  1. Get a fresh install of PlatformIO with pip uninstall platformio, rm -rf ~/.platformio, 'pip install -U platformio`.
  2. Run pio home

Actual Results

$ 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'

Expected Results

pio home should install required packages and run successfully.

Additional info

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
bug

Most helpful comment

This is a bug with our CDN and has been just fixed. Please Restart VSCode and re-run $ pio update. Sorry.

All 7 comments

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


Platform Manager

Library Manager

Library Storage: /home/rei/.platformio/lib

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

n0fategear picture n0fategear  路  5Comments

Navis-Raven picture Navis-Raven  路  3Comments

HamzaHajeir picture HamzaHajeir  路  5Comments

RayEbb picture RayEbb  路  4Comments

microbug picture microbug  路  4Comments