question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Spyder "An error ocurred while starting the kernel" when I updated conda in anaconda prompt

See original GitHub issue

Issue Report Checklist

  • Searched the issues page for similar reports
  • Read the relevant sections of the Spyder Troubleshooting Guide and followed its advice
  • Reproduced the issue after updating with conda update spyder (or pip, if not using Anaconda)
  • Could not reproduce inside jupyter qtconsole (if console-related)
  • Tried basic troubleshooting (if a bug/error)
    • Restarted Spyder
    • Reset preferences with spyder --reset
    • Reinstalled the latest version of Anaconda
    • Tried the other applicable steps from the Troubleshooting Guide
  • Completed the Problem Description, Steps to Reproduce and Version sections below

Problem Description

This is my problem on the console The error is:

Traceback (most recent call last): File “C:\Users\Robert\Anaconda3\lib\site‑packages\spyder\plugins\ipythonconsole.py”, line 1572, in create_kernel_manager_and_kernel_client kernel_manager.start_kernel(stderr=stderr_handle) File “C:\Users\Robert\Anaconda3\lib\site‑packages\jupyter_client\manager.py”, line 240, in start_kernel self.write_connection_file() File “C:\Users\Robert\Anaconda3\lib\site‑packages\jupyter_client\connect.py”, line 547, in write_connection_file kernel_name=self.kernel_name File “C:\Users\Robert\Anaconda3\lib\site‑packages\jupyter_client\connect.py”, line 212, in write_connection_file with secure_write(fname) as f: File “C:\Users\Robert\Anaconda3\lib\contextlib.py”, line 112, in enter return next(self.gen) File “C:\Users\Robert\Anaconda3\lib\site‑packages\jupyter_client\connect.py”, line 102, in secure_write with os.fdopen(os.open(fname, open_flag, 0o600), mode) as f: PermissionError: [Errno 13] Permission denied: ‘C:\Users\Robert\AppData\Roaming\jupyter\runtime\kernel𔂱d5611c0daf1.json’

What steps reproduce the problem?

What is the expected output? What do you see instead?

Paste Traceback/Error Below (if applicable)


PASTE TRACEBACK HERE

Versions

  • Spyder version:
  • Python version:
  • Qt version:
  • PyQt version:
  • Operating System name/version:

Dependencies

PASTE DEPENDENCIES HERE

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
jjhelmuscommented, Oct 16, 2019

jupyter_client 5.3.4 and jupyter_core 4.6.0 are now available in defaults

1reaction
naveenkumarcmcommented, Nov 15, 2019

@ccordoba12 Thanks a bunch, it worked! Assumed fresh installation of Anaconda would have the same effect as updating all, oh boy I was so wrong! My OCD was raising exponentially for the past 3 days!

Read more comments on GitHub >

github_iconTop Results From Across the Web

"An error ocurred while starting the kernel" about wrong ...
Problem Description To create a new virtual environment, use the following command: conda create -n python3.8.12 python=3.8.12 spyder=5.2.1 ...
Read more >
An error ocurred while starting the kernel Python in Spyder
(Spyder maintainer here) Please open the Anaconda Prompt and run there. conda update anaconda. conda install ipython=7.6.0.
Read more >
Common Illnesses — Spyder 5 documentation
If you receive the message An error occurred while starting the kernel in the IPython Console, Spyder was unable to launch a new...
Read more >
Spyder Kernels - :: Anaconda.org
Provides Jupyter kernels for use with the consoles of Spyder, the Scientific Python Development Environment. These can launched either through Spyder itself ...
Read more >
spyder-ide/public - Gitter
@Ali-Junaid To change enviromnment, you can open the Anaconda prompt, and type 'conda activate your_env' and then, you will be inside the env...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found