spyder: Spyder 4.2.1 won't launch in Anaconda

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

Spyder 4.2.1 won’t launch after update.

What steps reproduce the problem?

  1. launch anaconda navigator and click on spyder
  2. error report, last one was
  3. ModuleNotFoundError: No module named ‘textdistance’

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

If launched from Spyder shortcut nothing happens. From anaconda navigator last error ModuleNotFoundError: No module named ‘textdistance’

Paste Traceback/Error Below (if applicable)


PASTE TRACEBACK HERE

Versions

  • Spyder version: 4.2.1
  • Python version:
  • Qt version:
  • PyQt version:
  • Operating System name/version: windows 10

Dependencies

PASTE DEPENDENCIES HERE

About this issue

  • Original URL
  • State: open
  • Created 3 years ago
  • Reactions: 5
  • Comments: 48 (16 by maintainers)

Most upvoted comments

Hey everyone, Anaconda just released new packages for 4.2.1 with fixes for all the errors you reported. Please run

conda update spyder

if you already have 4.2.1, or

conda install spyder=4.2.1

or if you had to roll back to a previous version, and let us know if things are working for you now.

Thanks for your help!

It’s not our fault that 4.2.1 was not packaged correctly by the Anaconda team (we don’t have any relationship with them). I verified that they didn’t pick up our new dependencies and patches, which led to this disaster.

I’ll contact them promptly and let them know what they need to do to fix it. For now, there’s nothing you can do to make our 4.2.1 version function correctly, so please stay in 4.2.0 instead.

Same issue on Linux Mint 20.1

ModuleNotFoundError: No module named 'textdistance' To continue working I simply went to the previos version of the conda environmment.

conda list --revisions conda install --revision N

P.S. I run spyder from a separate conda environment, something that I would recommend to avoid breakages caused by the update of your ‘workspace’ environment.

@ccordoba12 Thanks for the tip! And thank you for developing this amazing tool 😃

@ccordoba12 Thank you! 4.2.1 works fine now after doing the conda update spyder. It updated correctly the dependencies.

@JohannHM, please open the Anaconda Prompt and run there:

conda create -n correct-spyder spyder=4.2.0

That will create a new environment called correct-spyder with our last working version.

Then you need to run

conda activate correct-spyder
conda install pytorch

In case you want to install pytorch on it. If not, please replace pytorch with the packages you need for your work.

@cpkc, @sharon92, I hid your comments because it’s a really bad advice to tell people to install packages with pip in Anaconda. We warn time and time again about that, and we even produced a video to tell people how to recover from that problem.

If Ananconda fails after what you did, please see it to learn how to properly uninstall it and reinstall it again.

@YIMINGMA, I also hid your comment, although it seems related to pip, because it gives the same advice and so it can be confusing for other Anaconda users.

Yet another beta s**t release. At least the anaconda roll back to 4.2.0 was smooth.

HTH - got the same initial error on Ubuntu 20.04.2 LTS and googled my way here.

Steps @https://github.com/spyder-ide/spyder/issues/14687#issuecomment-773641452 fixed it right up.

Dear @ccordoba12 I am afraid that is not the question I was asking (I do not wish to create an environment). My question simply is: how can I open anaconda navigator, click on Spyder icon and have it open up? Currently this is not happening, and has not been ever since Big Sur / Spyder 4.2.0 or 4.2.1. I do not get any errors, Spyder just never opens up when I click on it. Then when I attempt to close navigator it is asking me to confirm I want to closer Spyder, so clearly something is wrong.

@smchartrand thank you for your suggestion, I tried this but everything is up to date. Things I tried from Terminal (I am on Mac): uninstall and re-install tornado conda uninstall tornado All of the conda update commands for conda, anaconda, spyder, anaconda-navigator

Thank you very much for your help.

Hi All -

I just upgrade to Spyder 4.2.1, and encountered the same problem of Spyder not loading through Anaconda-Navigator after the upgrade. I applied @ccordoba12 fix conda update spyder in the terminal, and after fixing some broken dependencies, everything is working again. When running conda update spyder, this is the update that was triggered [taken from the terminal]:

spyder 4.2.1-py37h06a4308_0 --> 4.2.1-py37h06a4308_1

I run Ubuntu 20.04LTS on a Lenovo Thinkpad. Thanks @ccordoba12.

Please run

yum install libXScrnSaver

instead.

@EkaterinaAbramova, please open Terminal and run the following commands:

conda create -n latest-spyder spyder=4.2.1
conda activate latest-spyder
spyder

That should give you a working Spyder. Also, you can start it from Anaconda Navigator by selecting the latest-spyder environment there.

I do not get any errors, Spyder just never opens up when I click on it. I have updated anaconda with conda update anaconda, and run conda update --all.

In general it’s not a good idea to use conda update --all because it can lead to a broken environment (as it seems happened to you).

Hello, I am on Mac Big Sur and have Anaconda. After updating to Spyder 4.2.0 I was not able to open Spyder from Anaconda-Navigator. Have been patiently waiting for 4.2.1 but this does not open from my navigator either. Have been using the workaround suggested before:

conda activate spyder-dev 
export QT_MAC_WANTS_LAYER=1 
spyder

but would really like to know: a) whether I should actually be expecting 4.2.1 Spyder to open from anaconda-navigator b) how to resolve this issue if it is indeed meant to be working I do not get any errors, Spyder just never opens up when I click on it. I have updated anaconda with conda update anaconda, and run conda update --all. Could you please recommend what to do to get Spyder to work?

@cpkc, @sharon92, thanks for understanding! I hope this situation will be solved quickly.

I fixed doing on anaconda prompt:

python -m pip install -U textdistance --no-cache-dir

some dependencies

python -m pip install -U pyqt5 pyqtwebengine qtconsole --no-cache-dir