%23 Description of problem
Unable to start Platformio, i get a screen that says: Loading...
and it is stuck.
This error message appears, the details are below. It seems to me like my ~/.platformio/penv/bin
folder keeps getting deleted whenever I start vscode… not sure how, I tried restoringit with:
python3 -m venv /home/kevin/.platformio/penv
source /home/kevin/.platformio/penv/bin/activate
pip install platformio
But no luck
%23 Configuration
VSCode: 1.79.2
PIO IDE: v3.2.0
System: Linux, 5.15.0-73-generic, x64
%23 Exception
Error: Traceback (most recent call last):
File "/home/kevin/.platformio/.cache/tmp/get-platformio-1.1.3.py", line 69, in <module>
main()
File "/home/kevin/.platformio/.cache/tmp/get-platformio-1.1.3.py", line 61, in main
bootstrap()
File "/home/kevin/.platformio/.cache/tmp/get-platformio-1.1.3.py", line 47, in bootstrap
pioinstaller.__main__.main()
File "/home/kevin/.platformio/.cache/tmp/.piocore-installer-or_2uj5j/tmp3vohxh9j/pioinstaller.zip/pioinstaller/__main__.py", line 133, in main
File "/home/kevin/.platformio/.cache/tmp/.piocore-installer-or_2uj5j/tmp3vohxh9j/pioinstaller.zip/click/core.py", line 1128, in __call__
File "/home/kevin/.platformio/.cache/tmp/.piocore-installer-or_2uj5j/tmp3vohxh9j/pioinstaller.zip/click/core.py", line 1053, in main
File "/home/kevin/.platformio/.cache/tmp/.piocore-installer-or_2uj5j/tmp3vohxh9j/pioinstaller.zip/click/core.py", line 1637, in invoke
File "/home/kevin/.platformio/.cache/tmp/.piocore-installer-or_2uj5j/tmp3vohxh9j/pioinstaller.zip/click/core.py", line 1395, in invoke
File "/home/kevin/.platformio/.cache/tmp/.piocore-installer-or_2uj5j/tmp3vohxh9j/pioinstaller.zip/click/core.py", line 754, in invoke
File "/home/kevin/.platformio/.cache/tmp/.piocore-installer-or_2uj5j/tmp3vohxh9j/pioinstaller.zip/click/decorators.py", line 26, in new_func
File "/home/kevin/.platformio/.cache/tmp/.piocore-installer-or_2uj5j/tmp3vohxh9j/pioinstaller.zip/pioinstaller/__main__.py", line 61, in cli
File "/home/kevin/.platformio/.cache/tmp/.piocore-installer-or_2uj5j/tmp3vohxh9j/pioinstaller.zip/pioinstaller/core.py", line 70, in install_platformio_core
File "/home/kevin/.platformio/.cache/tmp/.piocore-installer-or_2uj5j/tmp3vohxh9j/pioinstaller.zip/pioinstaller/core.py", line 98, in _install_platformio_core
File "/home/kevin/.platformio/.cache/tmp/.piocore-installer-or_2uj5j/tmp3vohxh9j/pioinstaller.zip/pioinstaller/penv.py", line 71, in create_core_penv
File "/home/kevin/.platformio/.cache/tmp/.piocore-installer-or_2uj5j/tmp3vohxh9j/pioinstaller.zip/pioinstaller/penv.py", line 141, in init_state
File "/usr/lib/python3.11/subprocess.py", line 466, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/subprocess.py", line 548, in run
with Popen(*popenargs, **kwargs) as process:
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/subprocess.py", line 1024, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.11/subprocess.py", line 1901, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: '/home/kevin/.platformio/penv/bin/python'
-> Installer version: 1.1.3
Platform: Linux-5.15.0-73-generic-x86_64-with-glibc2.36
Python version: 3.11.2 (main, Mar 13 2023, 12:18:29) [GCC 12.2.0]
Python path: /usr/bin/python3
Creating a virtual environment at /home/kevin/.platformio/penv
at /home/kevin/.vscode/extensions/platformio.platformio-ide-3.2.0-linux-x64/node_modules/platformio-node-helpers/dist/index.js:1:5300
at ChildProcess.o (/home/kevin/.vscode/extensions/platformio.platformio-ide-3.2.0-linux-x64/node_modules/platformio-node-helpers/dist/index.js:1:4598)
at ChildProcess.emit (node:events:513:28)
at ChildProcess.emit (node:domain:489:12)
at maybeClose (node:internal/child_process:1121:16)
at Socket.<anonymous> (node:internal/child_process:479:11)
at Socket.emit (node:events:513:28)
at Socket.emit (node:domain:489:12)
at Pipe.<anonymous> (node:net:757:14)