Install platformio: LoadLibrary() argument 1 must be str, not None

Hi,

I got the following error for Visual Studio Code and Atom…
I tried reinstalling Platformio, rebooting, running as admin.
It’s been like this for at least a month now…
Can’t find any information about it.
Thank you for your help

Error: Conda Virtualenv: 
# >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<

    Traceback (most recent call last):
      File "D:\anaconda\lib\site-packages\conda\exceptions.py", line 1074, in __call__
        return func(*args, **kwargs)
      File "D:\anaconda\lib\site-packages\conda\cli\main.py", line 84, in _main
        exit_code = do_call(args, p)
      File "D:\anaconda\lib\site-packages\conda\cli\conda_argparse.py", line 82, in do_call
        exit_code = getattr(module, func_name)(args, parser)
      File "D:\anaconda\lib\site-packages\conda\cli\main_create.py", line 37, in execute
        install(args, parser, 'create')
      File "D:\anaconda\lib\site-packages\conda\cli\install.py", line 116, in install
        if context.use_only_tar_bz2:
      File "D:\anaconda\lib\site-packages\conda\base\context.py", line 666, in use_only_tar_bz2
        import conda_package_handling.api
      File "D:\anaconda\lib\site-packages\conda_package_handling\api.py", line 3, in <module>
        from libarchive.exception import ArchiveError as _LibarchiveArchiveError
      File "D:\anaconda\lib\site-packages\libarchive\__init__.py", line 1, in <module>
        from .entry import ArchiveEntry
      File "D:\anaconda\lib\site-packages\libarchive\entry.py", line 6, in <module>
        from . import ffi
      File "D:\anaconda\lib\site-packages\libarchive\ffi.py", line 48, in <module>
        libarchive = ctypes.cdll.LoadLibrary(libarchive_path)
      File "D:\anaconda\lib\ctypes\__init__.py", line 434, in LoadLibrary
        return self._dlltype(name)
      File "D:\anaconda\lib\ctypes\__init__.py", line 356, in __init__
        self._handle = _dlopen(self._name, mode)
    TypeError: LoadLibrary() argument 1 must be str, not None

Had to uninstall Anaconda…
This means whenever I get an update from Platformio it will crash again

If it plays up again, now that you’ve removed Anaconda, make sure you delete the %userdata%\.platformio\penv folder (with VSCode closed), and PlatformIO should install it’s own version of Python 3.8 and set itself up again using that when you re-open VSCode. I don’t know if the Atom extension has the same behaviour.