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

"AssertionError: ensure_dir_exists" when checking library updates #3677

Closed
natan88 opened this issue Sep 16, 2020 · 1 comment
Closed

"AssertionError: ensure_dir_exists" when checking library updates #3677

natan88 opened this issue Sep 16, 2020 · 1 comment

Comments

@natan88
Copy link

natan88 commented Sep 16, 2020

PIO Core Call Error: "Error: Traceback (most recent call last):\r\n File "C:\Users\Natanael\.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\Natanael\.platformio\penv\lib\site-packages\click\core.py", line 829, in call\r\n return self.main(*args, **kwargs)\r\n File "C:\Users\Natanael\.platformio\penv\lib\site-packages\click\core.py", line 782, in main\r\n rv = self.invoke(ctx)\r\n File "C:\Users\Natanael\.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\Natanael\.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\Natanael\.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\Natanael\.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\Natanael\.platformio\penv\lib\site-packages\click\core.py", line 610, in invoke\r\n return callback(*args, **kwargs)\r\n File "C:\Users\Natanael\.platformio\penv\lib\site-packages\click\decorators.py", line 21, in new_func\r\n return f(get_current_context(), args, kwargs)\r\n File "C:\Users\Natanael\.platformio\penv\lib\site-packages\platformio\commands\lib\command.py", line 247, in lib_update\r\n lm = LibraryPackageManager(storage_dir)\r\n File "C:\Users\Natanael\.platformio\penv\lib\site-packages\platformio\package\manager\library.py", line 30, in init\r\n PackageType.LIBRARY, package_dir or get_project_global_lib_dir()\r\n File "C:\Users\Natanael\.platformio\penv\lib\site-packages\platformio\package\manager\base.py", line 54, in init\r\n self.package_dir = self.ensure_dir_exists(package_dir)\r\n File "C:\Users\Natanael\.platformio\penv\lib\site-packages\platformio\package\manager\base.py", line 98, in ensure_dir_exists\r\n assert os.path.isdir(path)\r\nAssertionError\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 transferred this issue from platformio/platformio-home Sep 19, 2020
@ivankravets ivankravets changed the title Libraries: Updates "AssertionError: ensure_dir_exists" when checking library updates Sep 19, 2020
@ivankravets ivankravets added this to the 5.0.2 milestone Sep 19, 2020
@ivankravets
Copy link
Member

Please open VSCode > Left Side Bar > PlatformIO (Icon) > Quik Access > PlatformIO Core CLI and type

pio upgrade --dev

Restart VSCode. Does it work now?

Screen Shot 2020-09-19 at 19 33 06

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