spyder: Missing spyder‑kernels -- reinstalling to no avail
Issue Report Checklist
- [ x] Searched the issues page for similar reports Issue #7842 is very similar.
- [ x] Read the relevant sections of the Spyder Troubleshooting Guide and followed its advice
- [ x] Reproduced the issue after updating with
conda update spyder(orpip, if not using Anaconda) - [x ] Tried basic troubleshooting (if a bug/error)
- [x ] Restarted Spyder
- [ x] Reset preferences with
spyder --reset - [ x] Reinstalled the latest version of Anaconda
- [x ] Tried the other applicable steps from the Troubleshooting Guide
- [ x] Completed the Problem Description, Steps to Reproduce and Version sections below
Problem Description
I am getting following after having reinstalled spyder‑kernels in the appropriate environment.
The spyder and python interpreter are also is in the same environment
Your Python environment or installation doesn't have the spyder‑kernels module or the right version of it installed (>= 1.9.1 and < 1.10.0). Without this module is not possible for Spyder to create a console for you.
...
What steps reproduce the problem?
- Install spyder in the base conda environment on Ubuntu 18, Python 3.7 / conda
- Install spyder in another non-base conda environment per this instruction
- Start Spyder
What is the expected output? What do you see instead?
working console
Paste Traceback/Error Below (if applicable)
QXcbClipboard: SelectionRequest too old
QXcbClipboard: SelectionRequest too old
QXcbClipboard: SelectionRequest too old
Versions
Python 3.7.7 64-bit | Qt 5.9.6 | PyQt5 5.9.2 | Linux 5.3.0-51-generic
Dependencies
# Mandatory:
atomicwrites >=1.2.0 : 1.4.0 (OK)
chardet >=2.0.0 : 3.0.4 (OK)
cloudpickle >=0.5.0 : 1.4.1 (OK)
diff_match_patch >=20181111 : 20181111 (OK)
intervaltree : None (OK)
IPython >=4.0 : 7.13.0 (OK)
jedi =0.15.2 : 0.15.2 (OK)
keyring : None (OK)
nbconvert >=4.0 : 5.6.1 (OK)
numpydoc >=0.6.0 : 0.9.2 (OK)
parso =0.5.2 : 0.5.2 (OK)
pexpect >=4.4.0 : 4.8.0 (OK)
pickleshare >=0.4 : 0.7.5 (OK)
psutil >=5.3 : 5.7.0 (OK)
pygments >=2.0 : 2.6.1 (OK)
pylint >=0.25 : 2.5.0 (OK)
pyls >=0.31.9;<0.32.0 : 0.31.10 (OK)
qdarkstyle >=2.8 : 2.8.1 (OK)
qtawesome >=0.5.7 : 0.7.0 (OK)
qtconsole >=4.6.0 : 4.7.3 (OK)
qtpy >=1.5.0 : 1.9.0 (OK)
rtree >=0.8.3 : 0.9.4 (OK)
sphinx >=0.6.6 : 3.0.3 (OK)
spyder_kernels >=1.9.1;<1.10.0 : 1.9.1 (OK)
watchdog : None (OK)
xdg >=0.26 : 0.26 (OK)
zmq >=17 : 18.1.1 (OK)
# Optional:
cython >=0.21 : None (OK)
matplotlib >=2.0.0 : 3.1.3 (OK)
numpy >=1.7 : 1.18.3 (OK)
pandas >=0.13.1 : 1.0.3 (OK)
scipy >=0.17.0 : None (OK)
sympy >=0.7.3 : None (OK)
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 16 (8 by maintainers)
Thanks for your reply @dalthviz.
I was using a custom path linking to Python version 3.8 so that I could use that version of Python from within the Spyder console, as the default version with Spyder appears to be 3.7? Not sure if that is advised or whether it is best to use the default interpreter?
I have updated the kernel as you suggested and it has worked.
You can select not showing that message again in the dialog that prompts to update. We inform users about new versions because (usually) they fix important problems present in previous ones. But it’s not mandatory to update.
That’s a duplicate of issue #15091 and it’ll be fixed in our next version (5.0.1). You can safely ignore that message for now, it’s a false alarm.
Glad you make it work @james231231, and I think is ok to use a different version of Python in your interpreter (as long as you are not mixing mayor versions of Python i.e 2 and 3)
[solved] Spyder 5 missing dependencies - spyder_kernels version error
thanks. i could not have hoped for better help. thank you.
I had spyder 4.x.x, it was working fine. but every launch, i was prompted to upgrade to 5.0.0.
I get the problem below after doing
pip install --upgrade spyderi did set the interpreter path per the instructions to C:\Users\alber\AppData\Local\Programs\Python\Python39 which is where i find python.exe
the
conda install spyder-kernels=1.9.1help does not apply to me because I’m not using conda, and the kernel version is too old.any help for me?
I ran into a similar issue, but was running the suggested version of Spyder and Spyder-Kernels in my virtual environment, see the relevant package list below. I updated Spyder-kernels to 1.9.4. Everything is working now.
spyder 4.1.3 py38_0 spyder-kernels 1.9.1 py38_0
Closing this since seems like enough info has been added to properly handle the
spyder-kernelsversion update needed to usespyder 4.1.3. As a summary:spyder-kernels >=1.9.1 and <1.10.0spyder 4.1.3the env of the selected interpreter needs to have installedspyder-kernels 1.9.1.spyder 4.1.3you need to run (if using conda)conda install spyder-kernels=1.9.1in the corresponding env of the custom selected interpreter.If you consider this one is fixed, please close it @dalthviz.
Thanks for the feedback @james231231, are you using a custom path for the interpreter or you have the default one selected in your preferences?:
If you are using a custom one you will need to update the spyder-kernels version there too. Could you try to use
conda install spyder-kernels=1.9.1in the appropriate env to check if that makes the update possible?Let us know if that helps 😃