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.

Cannot launch Spyder in a new environment

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

I have NO issue when installing Spyder with default Python (version =3.7.4) in a new environment (conda create --name coursera_Kaggle python spyder). However, when I specified the Python version to be 3.6, and installed Spyder (conda create --name coursera_Kaggle python=3.6 spyder), Spyder cannot launch. I tried the latest version 4.0.1 and version 3.3.6, and neither of them launches.

Spyder was installed via Anaconda on Windows 10.

I first tried the “reset” shortcut associated with the new environment (such a script shortcut was created after the new environment was created and Spyder was installed), but it still doesn’t solve the issue. Instead of working in the new environment, it clears/resets the setting the base environment, i.e. after running the reset script, my Spyder in the base environment was reset to the default settings.

I searched online and tried all solutions I can find, but none of them works.

What steps reproduce the problem?

  1. conda create --name coursera_Kaggle python=3.6 spyder
  2. conda activate coursera_Kaggle
  3. spyder

for version 3.3.6, the first command line is

conda create --name coursera_Kaggle python=3.6 spyder=3.3.6

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

It doesn’t launch.

Paste Traceback/Error Below (if applicable)


Traceback (most recent call last):
  File "C:\ProgramData\Anaconda3\envs\coursera_Kaggle\lib\site-packages\spyder\app\mainwindow.py", line 3718, in main
    mainwindow = run_spyder(app, options, args)
  File "C:\ProgramData\Anaconda3\envs\coursera_Kaggle\lib\site-packages\spyder\app\mainwindow.py", line 3559, in run_spyder
    main.setup()
  File "C:\ProgramData\Anaconda3\envs\coursera_Kaggle\lib\site-packages\spyder\app\mainwindow.py", line 1010, in setup
    from spyder.plugins.ipythonconsole.plugin import IPythonConsole
  File "C:\ProgramData\Anaconda3\envs\coursera_Kaggle\lib\site-packages\spyder\plugins\ipythonconsole\plugin.py", line 26, in <module>
    from qtconsole.client import QtKernelClient
  File "C:\ProgramData\Anaconda3\envs\coursera_Kaggle\lib\site-packages\qtconsole\client.py", line 12, in <module>
    from zmq.eventloop import ioloop, zmqstream
  File "C:\ProgramData\Anaconda3\envs\coursera_Kaggle\lib\site-packages\zmq\eventloop\__init__.py", line 3, in <module>
    from zmq.eventloop.ioloop import IOLoop
  File "C:\ProgramData\Anaconda3\envs\coursera_Kaggle\lib\site-packages\zmq\eventloop\ioloop.py", line 78, in <module>
    while _IOLoop.configurable_default() is not _IOLoop:
  File "C:\ProgramData\Anaconda3\envs\coursera_Kaggle\lib\site-packages\tornado\ioloop.py", line 328, in configurable_default
    from tornado.platform.asyncio import AsyncIOLoop
  File "C:\ProgramData\Anaconda3\envs\coursera_Kaggle\lib\site-packages\tornado\platform\asyncio.py", line 34, in <module>
    asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
AttributeError: module 'asyncio' has no attribute 'WindowsSelectorEventLoopPolicy'

Versions

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

Dependencies

PASTE DEPENDENCIES HERE

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
universemathcommented, Feb 10, 2020

@goanpeca never mind. I will simply try it again one week later. Thank you for your help!!

0reactions
ccordoba12commented, Feb 11, 2020

Closing because this can’t be solved by us directly.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Spyder Not Launching - python - Stack Overflow
I was not able to launch Spyder and Jupyter notebook from anaconda environment (Mac OS). Following command worked for me:
Read more >
Frequently Asked Questions — Spyder 5 documentation
To work with an existing environment in Spyder, you need to change Spyder's default Python interpreter. To do so, click the name of...
Read more >
Troubleshooting — Anaconda documentation
Cannot get conda to run after installing; Recovering your Anaconda ... Spyder errors or failure to launch on Windows; Problems running Anaconda on...
Read more >
Spyder won't open - Q&A di Informatica
Hello everybody! ... - uninstalling Spyder and re-installing it, - deleting the spyder.lock file in the .spyder2 folder, - uninstalling Anaconda ...
Read more >
Can't Launch Spyder After Installing Via Conda
Create the clone · Make the clone active · Restart ArcGIS Pro · Add the python package to the cloned install (it does...
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