After installing Python 3.7.3 I am no longer able to build any project.
ERROR: Can not remove temporary directory.........\.pioenvs
There is not .pioenvs to remove. I have checked everywhere I can think, including the specified location.
I removed Python 3.7.3
I restarted VS, I restarted Windows 10.
I removed all Python exe files I could find.
I uninstalled Platformio deleted the folder and reinstalled.
I still get the same error, report below.
Executing task: C:\Users\johnk\.platformio\penv\Scripts\platformio.exe run <
Can not remove temporary directory `c:\Users\johnk\Documents\PlatformIO\Projects\oled_lab\.pioenvs`. Plea
se remove it manually to avoid build issues
Processing esp32dev (framework: arduino; platform: espressif32; board: esp32dev)
--------------------------------------------------------------------------------------------------------
Error: Traceback (most recent call last):
File "c:\users\johnk\.platformio\penv\lib\site-packages\platformio\__main__.py", line 120, in main
cli(None, None, None)
File "c:\users\johnk\.platformio\penv\lib\site-packages\click\core.py", line 700, in __call__
return self.main(*args, **kwargs)
File "c:\users\johnk\.platformio\penv\lib\site-packages\click\core.py", line 680, in main
rv = self.invoke(ctx)
File "c:\users\johnk\.platformio\penv\lib\site-packages\click\core.py", line 1027, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "c:\users\johnk\.platformio\penv\lib\site-packages\click\core.py", line 873, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "c:\users\johnk\.platformio\penv\lib\site-packages\click\core.py", line 508, in invoke
return callback(*args, **kwargs)
File "c:\users\johnk\.platformio\penv\lib\site-packages\click\decorators.py", line 16, in new_func
return f(get_current_context(), *args, **kwargs)
File "c:\users\johnk\.platformio\penv\lib\site-packages\platformio\commands\run.py", line 97, in cli
result = (envname, ep.process())
File "c:\users\johnk\.platformio\penv\lib\site-packages\platformio\commands\run.py", line 163, in proce
ss
result = self._run()
File "c:\users\johnk\.platformio\penv\lib\site-packages\platformio\commands\run.py", line 225, in _run
self.verbose)
File "c:\users\johnk\.platformio\penv\lib\site-packages\platformio\commands\run.py", line 248, in _auto
install_libdeps
ctx.invoke(cmd_lib_install, libraries=[lib], silent=not verbose)
File "c:\users\johnk\.platformio\penv\lib\site-packages\click\core.py", line 508, in invoke
return callback(*args, **kwargs)
File "c:\users\johnk\.platformio\penv\lib\site-packages\click\decorators.py", line 26, in new_func
return f(get_current_context().obj, *args, **kwargs)
File "c:\users\johnk\.platformio\penv\lib\site-packages\platformio\commands\lib.py", line 108, in lib_i
nstall
library, silent=silent, interactive=interactive, force=force)
File "c:\users\johnk\.platformio\penv\lib\site-packages\platformio\managers\lib.py", line 351, in insta
ll
force=force)
File "c:\users\johnk\.platformio\penv\lib\site-packages\platformio\managers\package.py", line 692, in i
nstall
with LockFile(self.package_dir):
File "c:\users\johnk\.platformio\penv\lib\site-packages\platformio\lockfile.py", line 102, in __enter__
self.acquire()
File "c:\users\johnk\.platformio\penv\lib\site-packages\platformio\lockfile.py", line 86, in acquire
return self._lock()
File "c:\users\johnk\.platformio\penv\lib\site-packages\platformio\lockfile.py", line 61, in _lock
self._fp = open(self._lock_path, "w")
IOError: [Errno 2] No such file or directory: 'c:\\Users\\johnk\\Documents\\PlatformIO\\Projects\\oled_la
b\\.piolibdeps.lock'
============================================================
An unexpected error occurred. Further steps:
* Verify that you have the latest version of PlatformIO using
`pip install -U platformio` command
* Try to find answer in FAQ Troubleshooting section
https://docs.platformio.org/page/faq.html
* Report this problem to the developers
https://github.com/platformio/platformio-core/issues
============================================================