Platformio-vscode-ide: Unable to update or install u8g2 library version 2.27.3

Created on 5 Jan 2020  路  9Comments  路  Source: platformio/platformio-vscode-ide

I'm having issues trying to update u8g2 library to version 2.27.3. Trying to update gives me a PIO Core Call Error and this results in the library no longer appearing under Installed libraries.

The only workaround I have at the moment is to install the previous version of the library which is version 2.27.2

Below is the message I'm getting and the screenshot:

Screenshot from 2020-01-05 12-25-34 (2)

Libraries: Could not install library
PIO Core Call Error: "Library Storage: /home/object-undefined/.platformio/lib\nLibraryManager: Installing id=942 @ ^2.27.3\n\n\nError: Traceback (most recent call last):\n File \"/home/object-undefined/.platformio/penv/lib/python3.5/site-packages/platformio/__main__.py\", line 102, in main\n cli() # pylint: disable=no-value-for-parameter\n File \"/home/object-undefined/.platformio/penv/lib/python3.5/site-packages/click/core.py\", line 764, in __call__\n return self.main(args, *kwargs)\n File \"/home/object-undefined/.platformio/penv/lib/python3.5/site-packages/click/core.py\", line 717, in main\n rv = self.invoke(ctx)\n File \"/home/object-undefined/.platformio/penv/lib/python3.5/site-packages/platformio/commands/__init__.py\", line 44, in invoke\n return super(PlatformioCLI, self).invoke(ctx)\n File \"/home/object-undefined/.platformio/penv/lib/python3.5/site-packages/click/core.py\", line 1137, in invoke\n return _process_result(sub_ctx.command.invoke(sub_ctx))\n File \"/home/object-undefined/.platformio/penv/lib/python3.5/site-packages/click/core.py\", line 1137, in invoke\n return _process_result(sub_ctx.command.invoke(sub_ctx))\n File \"/home/object-undefined/.platformio/penv/lib/python3.5/site-packages/click/core.py\", line 956, in invoke\n return ctx.invoke(self.callback, *ctx.params)\n File \"/home/object-undefined/.platformio/penv/lib/python3.5/site-packages/click/core.py\", line 555, in invoke\n return callback(args, *kwargs)\n File \"/home/object-undefined/.platformio/penv/lib/python3.5/site-packages/click/decorators.py\", line 17, in new_func\n return f(get_current_context(), *args, *kwargs)\n File \"/home/object-undefined/.platformio/penv/lib/python3.5/site-packages/platformio/commands/lib.py\", line 151, in lib_install\n library, silent=silent, interactive=interactive, force=force\n File \"/home/object-undefined/.platformio/penv/lib/python3.5/site-packages/platformio/managers/lib.py\", line 301, in install\n force=force,\n File \"/home/object-undefined/.platformio/penv/lib/python3.5/site-packages/platformio/managers/package.py\", line 698, in install\n pkg_dir = self._install_from_piorepo(name, requirements)\n File \"/home/object-undefined/.platformio/penv/lib/python3.5/site-packages/platformio/managers/lib.py\", line 151, in _install_from_piorepo\n requirements,\n File \"/home/object-undefined/.platformio/penv/lib/python3.5/site-packages/platformio/managers/package.py\", line 478, in _install_from_url\n dlpath = self.download(url, tmp_dir, sha1)\n File \"/home/object-undefined/.platformio/penv/lib/python3.5/site-packages/platformio/managers/package.py\", line 182, in download\n fd.start(with_progress=with_progress)\n File \"/home/object-undefined/.platformio/penv/lib/python3.5/site-packages/platformio/downloader.py\", line 91, in start\n f.write(next(itercontent))\nStopIteration\n\n============================================================\n\nAn unexpected error occurred. Further steps:\n\n* Verify that you have the latest version of PlatformIO using\n pip install -U platformio command\n\n* Try to find answer in FAQ Troubleshooting section\n https://docs.platformio.org/page/faq.html\n\n* Report this problem to the developers\n https://github.com/platformio/platformio-core/issues\n\n=======================

All 9 comments

I'm seeing this same behavior here.

edit: actually that's wrong - I can install no versions of this library that I've tested. Other libraries work as expected. My projects are now failing build as a result.

I'm seeing this same behavior here.

edit: actually that's wrong - I can install no versions of this library that I've tested. Other libraries work as expected. My projects are now failing build as a result.

Looks like the only workaround now is to go to PlatformIO Libraries registry search for U8g2 and install version 2.27.1

Thanks @wisegeeksrules! Can confirm that 2.27.1 does in fact install.

I try install the version 2.27.1 and no works me.

I try install the version 2.27.1 and no works me.

I'm not sure what causes this, I was able to update to v2.28.1 after setting python 3.x as the default, before I had python 2.7 as the default.
A week later I could not update to the latest version available (v2.28.6) again, (sad). The only work around was to revert to v.2.28.1

Hi,

Thanks for the report! We rewrote PlatformIO Core installer from the scratch. Please download and install the latest PlatformIO IDE for VSCode 2.0 Beta as described in Try Beta section on that page.

Please respond to this thread if it helped you or you still have an issue. We will reopen this issue again.

Regards,
Your friends at PlatformIO

Screenshot from 2020-06-05 10-43-19

The issue continues and now I can't install any version of the library, it's not working.

@ivankravets After giving up, I switched off my machine and 3 days later I tried to install the library starting with u8g2 version 2.28.1 and it worked. then I decided to update to v2.28.6 and it worked again. I'm happy it worked this time.

Screenshot from 2020-06-08 14-22-32

Screenshot from 2020-06-08 14-24-11

today try again and mysteriously work 馃槂

Was this page helpful?
0 / 5 - 0 ratings