Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spyder 6.0.An error occurred while starting the kernel (miniconda3) #23308

Open
7 of 10 tasks
thomastskng opened this issue Dec 18, 2024 · 9 comments
Open
7 of 10 tasks

Comments

@thomastskng
Copy link

thomastskng commented Dec 18, 2024

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

i am using miniconda (version: conda.24.11.1) in Window 10. I tried to install python 3.12 into a newly created virtual environment by running the following line with
conda create -n py312 -c conda-forge spyder-kernels scikit-learn nltk python=3.12 spyder

What steps reproduce the problem?

  1. conda create -n py312 -c conda-forge spyder-kernels scikit-learn nltk python=3.12 spyder
  2. conda activate py312
  3. spyder

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

I got this "an error occured whiule starting the kernel and & was unexpected at this time".
I tried switching the python interpreter from internal to C:\Users\me\minconda3\envs\py312\python.exe and vice versa, still get the same error.

Paste Traceback/Error Below (if applicable)

image

"an error occured whiule starting the kernel and & was unexpected at this time".

Versions

  • Spyder version: 6.0.3
  • Python version: 3.12.8
  • Qt version: 5.15.15
  • PyQt version: 5.15.9
  • Operating System name/version:

Dependencies

PASTE DEPENDENCIES HERE
@ccordoba12
Copy link
Member

Hey @thomastskng, thanks for reporting. Please post a screenshot of what you're seeing in Spyder to better understand your problem.

@thomastskng
Copy link
Author

pasted the screenshot above.

@thomastskng
Copy link
Author

Hey @thomastskng, thanks for reporting. Please post a screenshot of what you're seeing in Spyder to better understand your problem.
image

@ccordoba12
Copy link
Member

Thanks for the screenshot @thomastskng. I don't understand what could be happening in your case.

@mrclary, could you check if you're able to reproduce this problem in your Windows VM?

@mrclary
Copy link
Contributor

mrclary commented Dec 23, 2024

I cannot reproduce the error.
I created an environment using the exact command provided by @thomastskng.

conda create -n py312 -c conda-forge spyder-kernels scikit-learn nltk python=3.12 spyder
conda activate py312
spyder

I have Windows 10 and conda 24.9.2. I also tried both Spyder build variants, 6.0.3=*0 and 6.0.3=*1, without any errors.

@thomastskng, I would recommend starting Spyder in debug mode and pasting the log contents in a comment.

spyder --debug-mode=minimal

Ensure that the error is present, then quit Spyder and open the log file %HOME%\.spyder-py3\spyder-debug.log. Copy and paste the contents in a comment.

@thomastskng
Copy link
Author

spyder --debug-mode=minimal would'nt even start spyder at all in my machine.

@mrclary
Copy link
Contributor

mrclary commented Dec 24, 2024

spyder --debug-mode=minimal would'nt even start spyder at all in my machine.

You had py312 environment activated, correct? If not, please be sure to activate the environment first. If it was activated, was the spyder-debug.log file created anyway?

@thomastskng
Copy link
Author

the environment is activated but spyder wouldn't launch with the spyder --debug-model=minimal command and no log file was created at all.

@ccordoba12
Copy link
Member

The command is

spyder --debug-mode=minimal

not

spyder --debug-model=minimal

(see the l in the one you're trying to use).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants