Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PackageManager reports unknown package if it is unable to download the package, even if it actually exists #110

Open
mincrmatt12 opened this issue Dec 14, 2018 · 9 comments

Comments

@mincrmatt12
Copy link

Configuration

Operating system: Ubuntu 18.04.1 LTS

PlatformIO Version (platformio --version): 3.6.3

Description of problem

While attempting to install some packages on a filtered network (specifically, one that blocks the raw.githubusercontent.com domain), PackageManager reported

Error: Detected unknown package 'framework-esp8266-rtos-sdk

despite the fact that this package does in fact exist.

Steps to Reproduce

  1. Artificially block the raw.githubusercontent.com domain
  2. Attempt to install the framework-esp8266-rtos-sdk package

Actual Results

PlatformManager: Installing framework-esp8266-rtos-sdk
Error: Detected unknown package 'framework-esp8266-rtos-sdk

Expected Results

PlatformManager: Installing framework-esp8266-rtos-sdk
Error: Unable to download 'framework-esp8266-rtos-sdk

(or some message to indicate the issue is not a missing package, rather the inability to download it)

@ivankravets ivankravets transferred this issue from platformio/platformio-core Dec 14, 2018
@mincrmatt12
Copy link
Author

@ivankravets Are you sure this should be here? The esp8266 package was used as an example, the bug occurs for any package.

@ivankravets
Copy link
Member

Could you try to run in PIO IDE Terminal

pio run 

Do you see more detailed info why a package is not found?

@mincrmatt12
Copy link
Author

I'm running in the terminal right now, and it doesn't install because the package url was unaccessible. I raised the issue because the error generated in this case is unclear, Unknown package suggests that the package doesn't exist, when in this case it simply couldn't download

@ivankravets
Copy link
Member

Do you use proxy? Do you have access to https://github.com/platformio/platform-espressif8266/blob/develop/platform.json#L16:L21 ?

@mincrmatt12
Copy link
Author

I am able to access the first two, but the last 4 are blocked.

@ivankravets
Copy link
Member

Do you have python-requests package in a system? Or TLS/SSL libs? You need update them.

@mincrmatt12
Copy link
Author

mincrmatt12 commented Dec 14, 2018

To clarify, I'm not asking for help downloading the packages - I'm fully aware my network filters requests to githubusercontent, and using a different network makes it work. I'm just saying that the error reported is very misleading, and that it should be changed.

@ivankravets
Copy link
Member

The idea of package mirrors to ignore off-lined and search for another. See https://github.com/platformio/platformio-core/blob/develop/platformio/managers/package.py#L66

So, very often some mirrors are down and other online. In this case, we don't show "misleading" warnings. The problem is really with only this package framework-esp8266-rtos-sdk, it is not mirrored and available only via Github manifest. I'll think how to resolve this issue better.

@mincrmatt12
Copy link
Author

Alright, that makes sense. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants