Cursor 0.46: Conda Environment Activation Error and Package Recognition Issues

Thanks for reporting a bug you have found in Cursor!
Please add the following info to help us diagnose your issue:

:white_check_mark: Check the forum to ensure the issue hasn’t been reported already
:lady_beetle: Provide a clear description of the bug
:arrows_counterclockwise: Explain how to reproduce the bug (if known)
:camera: Attach screenshots or recordings (e.g., .jpg, .png, .mp4).
:computer: Tell us your operating system and your Cursor version (e.g., Windows, 0.x.x).
:no_entry_sign: Tell us if the issue stops you from using Cursor.

As soon as I updated to Cursor 0.46, I started getting an error when trying to activate my Conda environment. I suspect this is due to PYTHONPATH conflicts. I unset both PYTHONPATH and PYTHONHOME, and that allowed the environment to activate. However, a new problem arose: Cursor doesn’t recognize my installed packages, even though I’ve selected the correct interpreter (the one where the packages are installed). Please see the attached images. This is quite annoying because I can’t jump to the module definitions directly.

Python path configuration:
PYTHONHOME = ‘/tmp/.mount_cursorkxF1Fp/usr/’
PYTHONPATH = ‘/tmp/.mount_cursorkxF1Fp/usr/share/pyshared/:/home/mj/anaconda3/envs/pls/lib/python3.x/site-packages’
program name = ‘python’
isolated = 0
environment = 1
user site = 1
import site = 1
sys._base_executable = ‘/usr/bin/python’
sys.base_prefix = ‘/tmp/.mount_cursorkxF1Fp/usr’
sys.base_exec_prefix = ‘/tmp/.mount_cursorkxF1Fp/usr’
sys.executable = ‘/usr/bin/python’
sys.prefix = ‘/tmp/.mount_cursorkxF1Fp/usr’
sys.exec_prefix = ‘/tmp/.mount_cursorkxF1Fp/usr’
sys.path = [
‘/tmp/.mount_cursorkxF1Fp/usr/share/pyshared/’,
‘/home/mj/anaconda3/envs/pls/lib/python3.x/site-packages’,
‘/tmp/.mount_cursorkxF1Fp/usr/lib/python38.zip’,
‘/tmp/.mount_cursorkxF1Fp/usr/lib/python3.8’,
‘/tmp/.mount_cursorkxF1Fp/usr/lib/python3.8/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 0x00007f1d831f9740 (most recent call first):

1 Like

Got the same issue, this make cursor unusable for me. Even starting the 0.45 appimage doesn’t help Plz fix soon!

hkristen@hkristen-deep-learning:~/habitalp2$ conda
Python path configuration:
PYTHONHOME = ‘/tmp/.mount_Cursor1lWLIk/usr/’
PYTHONPATH = ‘/tmp/.mount_Cursor1lWLIk/usr/share/pyshared/:’
program name = ‘/home/hkristen/miniforge3/bin/python’
isolated = 0
environment = 1
user site = 1
safe_path = 0
import site = 1
is in build tree = 0
stdlib dir = ‘/tmp/.mount_Cursor1lWLIk/usr/lib/python3.12’
sys._base_executable = ‘/home/hkristen/miniforge3/bin/python’
sys.base_prefix = ‘/tmp/.mount_Cursor1lWLIk/usr/’
sys.base_exec_prefix = ‘/tmp/.mount_Cursor1lWLIk/usr/’
sys.platlibdir = ‘lib’
sys.executable = ‘/home/hkristen/miniforge3/bin/python’
sys.prefix = ‘/tmp/.mount_Cursor1lWLIk/usr/’
sys.exec_prefix = ‘/tmp/.mount_Cursor1lWLIk/usr/’
sys.path = [
‘/tmp/.mount_Cursor1lWLIk/usr/share/pyshared’,
‘/home/hkristen/habitalp2’,
‘/tmp/.mount_Cursor1lWLIk/usr/lib/python312.zip’,
‘/tmp/.mount_Cursor1lWLIk/usr/lib/python3.12’,
‘/tmp/.mount_Cursor1lWLIk/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 0x0000704bf38d6740 (most recent call first):

To rollback i had to delete my cursor settings completely with

rm -rf ~/.cursor ~/.config/Cursor/

and get an “old” 0.45.11 appimage from GitHub - oslook/cursor-ai-downloads: all cursor ai version download links, and some older versions offer a better user experience