Thanks for reporting a bug you have found in Cursor!
Please add the following info to help us diagnose your issue:
Check the forum to ensure the issue hasn’t been reported already
Provide a clear description of the bug
Explain how to reproduce the bug (if known)
Attach screenshots or recordings (e.g., .jpg, .png, .mp4).
Tell us your operating system and your Cursor version (e.g., Windows, 0.x.x).
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):
