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

Could not load platform updates: KeyError: 'versions' #1204

Closed
Talha909 opened this issue Sep 7, 2020 · 5 comments
Closed

Could not load platform updates: KeyError: 'versions' #1204

Talha909 opened this issue Sep 7, 2020 · 5 comments
Labels
help wanted Extra attention is needed

Comments

@Talha909
Copy link

Talha909 commented Sep 7, 2020

PIO Core Call Error: "Error: Traceback (most recent call last):\r\n File "c:\users\hp\.platformio\penv\lib\site-packages\platformio\main.py", line 109, in main\r\n cli() # pylint: disable=no-value-for-parameter\r\n File "c:\users\hp\.platformio\penv\lib\site-packages\click\core.py", line 829, in call\r\n return self.main(*args, **kwargs)\r\n File "c:\users\hp\.platformio\penv\lib\site-packages\click\core.py", line 782, in main\r\n rv = self.invoke(ctx)\r\n File "c:\users\hp\.platformio\penv\lib\site-packages\platformio\commands\init.py", line 44, in invoke\r\n return super(PlatformioCLI, self).invoke(ctx)\r\n File "c:\users\hp\.platformio\penv\lib\site-packages\click\core.py", line 1259, in invoke\r\n return _process_result(sub_ctx.command.invoke(sub_ctx))\r\n File "c:\users\hp\.platformio\penv\lib\site-packages\click\core.py", line 1259, in invoke\r\n return _process_result(sub_ctx.command.invoke(sub_ctx))\r\n File "c:\users\hp\.platformio\penv\lib\site-packages\click\core.py", line 1066, in invoke\r\n return ctx.invoke(self.callback, **ctx.params)\r\n File "c:\users\hp\.platformio\penv\lib\site-packages\click\core.py", line 610, in invoke\r\n return callback(args, kwargs)\r\n File "c:\users\hp\.platformio\penv\lib\site-packages\platformio\commands\platform.py", line 393, in platform_update\r\n and not PlatformFactory.new(pkg).are_outdated_packages()\r\n File "c:\users\hp\.platformio\penv\lib\site-packages\platformio\platform\_packages.py", line 134, in are_outdated_packages\r\n pkg, self.get_package_spec(pkg.metadata.name)\r\n File "c:\users\hp\.platformio\penv\lib\site-packages\platformio\package\manager\_update.py", line 48, in outdated\r\n self.pick_best_registry_version(reg_pkg["versions"]) or {}\r\nKeyError: 'versions'\r\n\r\n============================================================\r\n\r\nAn unexpected error occurred. Further steps:\r\n\r\n Verify that you have the latest version of PlatformIO using\r\n pip install -U platformio command\r\n\r\n Try to find answer in FAQ Troubleshooting section\r\n https://docs.platformio.org/page/faq.html\r\n\r\n Report this problem to the developers\r\n https://github.com/platformio/platformio-core/issues\r\n\r\n============================================================"

@ivankravets ivankravets changed the title Could not load platform updates Could not load platform updates: KeyError: 'versions' Sep 9, 2020
@ivankravets
Copy link
Member

Could you reproduce this issue?

@ivankravets ivankravets added the help wanted Extra attention is needed label Sep 9, 2020
@ivankravets
Copy link
Member

Could you reproduce this issue?

@Talha909
Copy link
Author

Sure. I have open the visual studio then go into the Platefom.ino extension and click on platforms and then click on update. And i got the above error. I have already update all the things. I also delete the pervious installation and install new one and got the same message.

@ivankravets
Copy link
Member

Could you mail [email protected] to get more details on how to Debug this issue. We are going to release 5.0.1 of PIO Core today and it would be great to fix it. Thanks.

@ivankravets
Copy link
Member

Resolved in platformio/platformio-core#3666

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants