If I upgrade from v0.45.14 to either v0.46 or v0.47, I can no longer start Jupyter kernels on venvs. Instead, I get the following error:
The kernel failed to start due to the missing module 'encodings'. Consider installing this module.
Click here for more info.
And that error leads to this output tab:
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 0x00007269d6468740 (most recent call first):
<no Python frame>... View Jupyter [log](command:jupyter.viewOutput) for further details.
> Kernel Id = .jvsc74a57bd074dd89f1adc1ba7fdcaf416185ce73b14da33310b30641aa0657bf0ec7dff652./home/~/venvs/perception/python./home/~/venvs/perception/python.-m#ipykernel_launcher
> Interpreter Id = ~/venvs/perception/bin/python
> at ChildProcess.<anonymous> (/home/~/.cursor/extensions/ms-toolsai.jupyter-2024.11.0-linux-x64/dist/extension.node.js:299:44847)
> stdErr = Python path configuration:
PYTHONHOME = '/tmp/.mount_cursor7iOul7/usr/'
PYTHONPATH = '/home/~/venvs/perception/bin/python:/tmp/.mount_cursor7iOul7/usr/share/pyshared/:'
program name = '/home/~/venvs/perception/bin/python'
isolated = 0
environment = 1
user site = 1
safe_path = 0
import site = 1
is in build tree = 0
stdlib dir = '/tmp/.mount_cursor7iOul7/usr/lib/python3.12'
sys._base_executable = '/home/~/venvs/perception/bin/python'
sys.base_prefix = '/tmp/.mount_cursor7iOul7/usr/'
sys.base_exec_prefix = '/tmp/.mount_cursor7iOul7/usr/'
sys.platlibdir = 'lib'
sys.executable = '/home/~/venvs/perception/bin/python'
sys.prefix = '/tmp/.mount_cursor7iOul7/usr/'
sys.exec_prefix = '/tmp/.mount_cursor7iOul7/usr/'
sys.path = [
'/home/~/venvs/perception/bin/python',
'/tmp/.mount_cursor7iOul7/usr/share/pyshared',
'/home/~/repo/notebooks',
'/tmp/.mount_cursor7iOul7/usr/lib/python312.zip',
'/tmp/.mount_cursor7iOul7/usr/lib/python3.12',
'/tmp/.mount_cursor7iOul7/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 0x00007269d6468740 (most recent call first):
<no Python frame>
11:51:39.513 [info] Process Execution: ~/venvs/perception/bin/python -c "import ipykernel;print('6af208d0-cb9c-427f-b937-ff563e17efdf')"
Has anyone encountered a similar issue, and if so how can I fix it?