-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Description
Problem Description
When I try to change to a different kernel in Spyder 4.2.5, either syntax for Windows or Linux gives error dialog: error: "Invalid file path".
Entering the path as follows gives the same error dialog: "Invalid file path"
c:\programdata\anaconda3\envs\webscrapers\python.exe
or
c:/programdata\anaconda3/envs/webscrapers/python.exe
What steps reproduce the problem?
- Select the Tools... Preferences... Python Interpreter menu
- Change the fully qualified interpreter path from one virtual environment to another (see above)
- I get the spyder-kernels error message below
What is the expected output? What do you see instead?
I expect the new kernel path to be accepted and Spyder changes to the new kernel without error. Instead I get the error dialogs shown.
Versions
- Spyder version: 4.2.5
- Python version: 3.9.7
- Qt version: 5.12.9
- PyQt version: 5.12.3
- Operating System name/version: Windows 10
Dependencies
# Mandatory:
atomicwrites >=1.2.0 : 1.4.0 (OK)
chardet >=2.0.0 : 4.0.0 (OK)
cloudpickle >=0.5.0 : 2.0.0 (OK)
diff_match_patch >=20181111 : 20200713 (OK)
intervaltree >=3.0.2 : 3.0.2 (OK)
IPython >=7.6.0 : 7.30.1 (OK)
jedi =0.17.2 : 0.17.2 (OK)
jsonschema >=3.2.0 : 4.3.2 (OK)
keyring >=17.0.0 : 23.4.0 (OK)
nbconvert >=4.0 : 6.3.0 (OK)
numpydoc >=0.6.0 : 1.1.0 (OK)
paramiko >=2.4.0 : 2.9.1 (OK)
parso =0.7.0 : 0.7.0 (OK)
pexpect >=4.4.0 : 4.8.0 (OK)
pickleshare >=0.4 : 0.7.5 (OK)
psutil >=5.3 : 5.8.0 (OK)
pygments >=2.0 : 2.10.0 (OK)
pylint >=1.0 : 2.12.2 (OK)
pyls >=0.36.2;<1.0.0 : 0.36.2 (OK)
pyls_black >=0.4.6 : 0.4.6 (OK)
pyls_spyder >=0.3.2 : 0.3.2 (OK)
qdarkstyle >=2.8;<3.0 : 2.8.1 (OK)
qtawesome >=0.5.7 : 1.1.1 (OK)
qtconsole >=5.0.3 : 5.2.2 (OK)
qtpy >=1.5.0 : 2.0.0 (OK)
rtree >=0.8.3 : 0.9.7 (OK)
setuptools >=39.0.0 : 60.2.0 (OK)
sphinx >=0.6.6 : 4.3.2 (OK)
spyder_kernels >=1.10.2;<1.11.0 : 1.10.2 (OK)
textdistance >=4.2.0 : 4.2.2 (OK)
three_merge >=0.1.1 : 0.1.1 (OK)
watchdog >=0.10.3;<2.0.0 : 1.0.2 (OK)
zmq >=17 : 22.3.0 (OK)
# Optional:
cython >=0.21 : None (NOK)
matplotlib >=2.0.0 : 3.5.1 (OK)
numpy >=1.7 : 1.21.5 (OK)
pandas >=1.1.1 : 1.3.5 (OK)
scipy >=0.17.0 : 1.7.3 (OK)
sympy >=0.7.3 : None (NOK)
# Spyder plugins:
spyder_notebook : 0.3.2 (OK)
spyder_terminal : 0.3.1 (OK)
Sometimes if I restart Spyder after changing the kernel path to a different virtual environment kernel, it starts working with the newly selected kernel (prior to restarting). The dialog box does not tell the user to restart after changing the kernel. (We hope / expect that restarting will not be necessary. Other tools like PyCharm or VSCode do not require restart. )


