Agent cannot run python on Gentoo due to python-exec issue

Describe the Bug

On my gentoo system, everytime the agent mode tries to execute a python command, it fails with the error “no python-exec wrapped executable found in /usr/lib/python-exec”.

Cursor is calling “python”, which is found in “/usr/bin” and is a symlink to “python-exec2c”, just as on the host system. Running /usr/bin/python-exec2c is fine on the host, but fails inside Cursor. Running directly the target python executable works fine in Cursor. It seems to be due to the AppImage sandboxing (maybe seccomp ?), as calling python-exec as a subprocess of another command works fine (eg strace, gdb, ltrace, or even a simple “sh -c python”).

Steps to Reproduce

Open a terminal in Cursor and type :

% /usr/bin/python --version
Cursor-1.3.7-x86_64.AppImage: no python-exec wrapped executable found in /usr/lib/python-exec.
zsh: exit 127 /usr/bin/python --version

% sh -c “/usr/bin/python --version”
Python 3.12.8

Expected Behavior

% /usr/bin/python --version
Python 3.12.8

% sh -c “/usr/bin/python --version”
Python 3.12.8

Operating System

Linux

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.3.7
VSCode Version: 1.99.3
Commit: 5d56108ff2401c28f239aa2a527ef424ce7719a0
Date: 2025-07-31T04:12:28.991Z
Electron: 34.5.1
Chromium: 132.0.6834.210
Node.js: 20.19.0
V8: 13.2.152.41-electron.0
OS: Linux x64 6.6.52-gentoo

Does this stop you from using Cursor

Sometimes - I can sometimes use Cursor

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