Provide a clear description of the bug
When running a python file via terminal getting
"python -m graph.workflow
Python path configuration:
PYTHONHOME = ‘/tmp/.mount_CursorlqdyZC/usr/’
PYTHONPATH = ‘/tmp/.mount_CursorlqdyZC/usr/share/pyshared/:’
program name = ‘python’
isolated = 0
environment = 1
user site = 1
safe_path = 0
import site = 1
is in build tree = 0
stdlib dir = ‘/tmp/.mount_CursorlqdyZC/usr/lib/python3.11’
sys._base_executable = ‘/mnt/mydrive/Videos/Projects/Portfolio/Polyglot/.venv/bin/python’
sys.base_prefix = ‘/tmp/.mount_CursorlqdyZC/usr/’
sys.base_exec_prefix = ‘/tmp/.mount_CursorlqdyZC/usr/’
sys.platlibdir = ‘lib’
sys.executable = ‘/mnt/mydrive/Videos/Projects/Portfolio/Polyglot/.venv/bin/python’
sys.prefix = ‘/tmp/.mount_CursorlqdyZC/usr/’
sys.exec_prefix = ‘/tmp/.mount_CursorlqdyZC/usr/’
sys.path = [
‘/tmp/.mount_CursorlqdyZC/usr/share/pyshared’,
‘/mnt/mydrive/Videos/Projects/Portfolio/Polyglot/streamlit_app’,
‘/tmp/.mount_CursorlqdyZC/usr/lib/python311.zip’,
‘/tmp/.mount_CursorlqdyZC/usr/lib/python3.11’,
‘/tmp/.mount_CursorlqdyZC/usr/lib/python3.11/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 0x00007f9da3c96200 (most recent call first):
"
In VS Code I can run the file
Tell us your operating system and your Cursor version (e.g.,
Windows, 0.x.x
).
Linux Mint 21.2 Cinnamon
Version: 0.45.16
VSCode Version: 1.96.2
Commit: 5ea9b1aaef7346c10a2b209121f970ef065757f0
Date: 2025-02-26T08:23:30.454Z
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-52-generic
Tell us if the issue stops you from using Cursor.
It does, i can not debug