Python environment issue in Linux AppImage

The issue, when trying to do anything in the terminal:

Version: 0.46.0
VSCode Version: 1.96.2
Commit: aff57e1d9a74ed627fb5bd393e347079514436a0
Date: 2025-02-21T04:49:24.841Z
Electron: 32.2.6
Chromium: 128.0.6613.186
Node.js: 20.18.1
V8: 12.8.374.38-electron.0
OS: Linux x64 6.8.0-1020-oem
Python path configuration:
  PYTHONHOME = '/tmp/user/1000/.mount_cursorBLFrdY/usr/'
  PYTHONPATH = '/tmp/user/1000/.mount_cursorBLFrdY/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/user/1000/.mount_cursorBLFrdY/usr/lib/python3.12'
  sys._base_executable = '/usr/bin/python3'
  sys.base_prefix = '/tmp/user/1000/.mount_cursorBLFrdY/usr/'
  sys.base_exec_prefix = '/tmp/user/1000/.mount_cursorBLFrdY/usr/'
  sys.platlibdir = 'lib'
  sys.executable = '/usr/bin/python3'
  sys.prefix = '/tmp/user/1000/.mount_cursorBLFrdY/usr/'
  sys.exec_prefix = '/tmp/user/1000/.mount_cursorBLFrdY/usr/'
  sys.path = [
    '/tmp/user/1000/.mount_cursorBLFrdY/usr/share/pyshared',
    '/home/saber7ooth/Documents/repos/comfyg',
    '/tmp/user/1000/.mount_cursorBLFrdY/usr/lib/python312.zip',
    '/tmp/user/1000/.mount_cursorBLFrdY/usr/lib/python3.12',
    '/tmp/user/1000/.mount_cursorBLFrdY/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'

Current thread 0x000078a6d9b58740 (most recent call first):
  <no Python frame>

Happens when doing anything related to npm. Running cursor . also ends me up in the AppImage’s virtual directory after putting cursor into /opt/cursor and adding that to PATH with my usual ~/.bashrc alias. This did not occour prior to updating to 0.46.0:

Here’s that portion of ~/.bashrc:

cursor() {
  # Run the cursor command and suppress background process output completely
  (nohup /opt/cursor/cursor.AppImage --no-sandbox "$@" >/dev/null 2>&1 &)
}

I use the usual nohup trick to avoid the AppImage forking itself into the foreground/taking over the terminal process. Again, nothings changed, and this worked before the update.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.