PlatformIO: Can not find working Python 3.6+ Interpreter. Please install the latest Python 3 and restart VSCode

this is what it says in developer tools.

I’m running on
ubuntu 24.04
cursor 0.46.3 (this is an AppImage)

It works on cursor 0.45.14

Error: Python path configuration:
  PYTHONHOME = '/tmp/.mount_cursork5tQHs/usr/'
  PYTHONPATH = '/tmp/.mount_cursork5tQHs/usr/share/pyshared/:'
  program name = '/usr/bin/python3'
  isolated = 0
  environment = 1
  user site = 1
  safe_path = 0
  import site = 1
  is in build tree = 0
  stdlib dir = '/tmp/.mount_cursork5tQHs/usr/lib/python3.12'
  sys._base_executable = '/usr/bin/python3'
  sys.base_prefix = '/tmp/.mount_cursork5tQHs/usr/'
  sys.base_exec_prefix = '/tmp/.mount_cursork5tQHs/usr/'
  sys.platlibdir = 'lib'
  sys.executable = '/usr/bin/python3'
  sys.prefix = '/tmp/.mount_cursork5tQHs/usr/'
  sys.exec_prefix = '/tmp/.mount_cursork5tQHs/usr/'
  sys.path = [
    '/tmp/.mount_cursork5tQHs/usr/share/pyshared',
    '/home/patrick/.platformio/.cache',
    '/tmp/.mount_cursork5tQHs/usr/lib/python312.zip',
    '/tmp/.mount_cursork5tQHs/usr/lib/python3.12',
    '/tmp/.mount_cursork5tQHs/usr/lib/python3.12/lib-dynload',
  ]
Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding
Python runtime state: core initialized
ModuleNotFoundError: No module named 'encodings'

Install python3-venv, then try again.

sudo apt install python3-venv

sorry, this is an issue with cursor specifically not platformio.