question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Could not load platform updates: KeyError: 'versions'

See original GitHub issue

PIO Core Call Error: “Error: Traceback (most recent call last):\r\n File "C:\Users\Ben\.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\Ben\.platformio\penv\lib\site-packages\click\core.py", line 829, in call\r\n return self.main(*args, **kwargs)\r\n File "C:\Users\Ben\.platformio\penv\lib\site-packages\click\core.py", line 782, in main\r\n rv = self.invoke(ctx)\r\n File "C:\Users\Ben\.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\Ben\.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\Ben\.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\Ben\.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\Ben\.platformio\penv\lib\site-packages\click\core.py", line 610, in invoke\r\n return callback(args, kwargs)\r\n File "C:\Users\Ben\.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\Ben\.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\Ben\.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============================================================

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ivankravetscommented, Sep 11, 2020

Please open PlatformIO CLI and type pio upgrade --dev. Does it work now?

NTPClient=lib/NTPClient

@Majubs , this is wrong declaration. See valid formats https://docs.platformio.org/en/latest/core/userguide/lib/cmd_install.html

0reactions
VIXIVIXIVcommented, Sep 20, 2020

@ivankravets Sorry for not getting back to you earlier, but after upgrading to the dev build of PlatformIO, the issue with updating platforms is resolved; I was able to upgrade framework-arduino-lpc176x from 0.2.4 to 0.2.5

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshoot Python errors in Azure Functions
This error occurs when a Python function app fails to load a Python module. The root cause for this error is one of...
Read more >
Changelog — Python 3.11.1 documentation
The errno modules exposes the new error number. getpath.py now ignores PermissionError when it cannot open landmark files pybuilddir.txt and pyenv.cfg .
Read more >
Cannot build the project. KeyError: 'value'
Hi, I cannot fix this kind of issue. When trying to build the project Im getting 0 problems but build process is never...
Read more >
Pytest "Error: could not load path/to/conftest.py"
I was running docker as well, but it seems my problem was different. I was using an old version of pytest: platform linux...
Read more >
Cannot recover key error shown when renewing expired ...
Solution. This issue can be resolved by synchronizing the passwords using the keytool command: Update .storepass or .keypass respectively with ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found