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 fails to launch from clean Anaconda install (Python 2.7 env)

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)
  • [NA] 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 fails to launch from Anaconda Navigator, terminal or Start menu. This is a clean environment (Python 2.7) on a clean Anaconda installation: I am trying to set up a 2.7 environment to work with 3rd party code. Launching Spyder for the base (Python 3.8) env seems to work.

Suggested troubleshooting steps (reset spyder settings, restart computer, reinstall anaconda, update spyder, etc.) don’t help.

What steps reproduce the problem?

  1. Install latest Anaconda from anaconda.org (64-bit installer)
  2. Launch Anaconda Navigator, create new Python 2.7 environment.
  3. Install Spyder via Navigator GUI.
  4. Attempt to launch Spyder via {Navigator | Start menu | Anaconda prompt terminal}

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

Expect Spyder GUI to launch. Instead: Navigator ‘Application launch error’ message window appears with traceback. On subsequent launch attempts, a Spyder error window appears instead of Anaconda Navigator window with standard troubleshooting suggestions.

Paste Traceback/Error Below (if applicable)


Traceback (most recent call last):
File "C:\Users\ryan.blumenstein\.conda\envs\ixgen\lib\site-packages\spyder\app\mainwindow.py", line 3718, in main
mainwindow = run_spyder(app, options, args)
File "C:\Users\ryan.blumenstein\.conda\envs\ixgen\lib\site-packages\spyder\app\mainwindow.py", line 3557, in run_spyder
main = MainWindow(options)
File "C:\Users\ryan.blumenstein\.conda\envs\ixgen\lib\site-packages\spyder\app\mainwindow.py", line 426, in __init__
from spyder.preferences.runconfig import RunConfigPage
File "C:\Users\ryan.blumenstein\.conda\envs\ixgen\lib\site-packages\spyder\preferences\runconfig.py", line 482, in 
class RunConfigPage(GeneralConfigPage):
File "C:\Users\ryan.blumenstein\.conda\envs\ixgen\lib\site-packages\spyder\preferences\runconfig.py", line 487, in RunConfigPage
ICON = ima.icon('run')
File "C:\Users\ryan.blumenstein\.conda\envs\ixgen\lib\site-packages\spyder\utils\icon_manager.py", line 394, in icon
directory=_resource['directory'])
File "C:\Users\ryan.blumenstein\.conda\envs\ixgen\lib\site-packages\qtawesome\__init__.py", line 178, in load_font
return _instance().load_font(prefix, ttf_filename, charmap_filename, directory)
File "C:\Users\ryan.blumenstein\.conda\envs\ixgen\lib\site-packages\qtawesome\__init__.py", line 54, in _instance
'materialdesignicons-webfont-charmap.json')
File "C:\Users\ryan.blumenstein\.conda\envs\ixgen\lib\site-packages\qtawesome\iconic_font.py", line 206, in __init__
super().__init__()
TypeError: super() takes at least 1 argument (0 given)

Versions

  • Anaconda Navigator 1.10.0
  • Spyder version: 4.0.1
  • Python version: 2.7.18
  • Qt version: 5.6.2
  • PyQt version: 5.6.0
  • Operating System name/version: Windows 10 Pro, 10.0.18362

Dependencies

Had to extract from conda (Spyder GUI won’t open). Think I did this correctly, not positive.

  - atomicwrites
  - chardet >=2.0.0
  - cloudpickle
  - diff-match-patch
  - intervaltree
  - jedi 0.14.1.*
  - keyring
  - nbconvert
  - numpydoc
  - paramiko
  - pexpect
  - pickleshare
  - psutil >=5.2
  - pygments >=2.0
  - pylint
  - pyqt >=5.6,<5.13
  - python >=2.7,<2.8.0a0
  - python-language-server >=0.31.2,<0.32.0
  - pyzmq
  - qdarkstyle >=2.7
  - qtawesome >=0.5.7
  - qtconsole >=4.6.0
  - qtpy >=1.5.0
  - rtree
  - sphinx
  - spyder-kernels >=1.8.1,<1.9.0
  - watchdog
  - parso 0.5.2.*```

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
rblue2commented, Feb 1, 2021

Understood, I appreciate the support.

0reactions
ccordoba12commented, Feb 1, 2021

No problem, hopefully you’ll find a way to continue using Spyder.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting — Anaconda documentation
Solution. Before updating or installing any packages with conda, be sure to terminate any running Anaconda processes such as Spyder or IPython. You...
Read more >
How to install a conda environment with Spyder and Python 2.7?
Try conda create -n py2 python=2.7 spyder . · @AMC that works but it installs spyder 4, which then fails to launch because...
Read more >
Frequently Asked Questions — Spyder 5 documentation
Q: How do I run Spyder installed in a conda environment using the command line? ... Then, type spyder to launch the version...
Read more >
Manage Python environments and interpreters - Visual Studio ...
Use the Python Environments window to manage global, virtual, and conda environments. Install Python interpreters and packages and assign ...
Read more >
Conda Environments : TechWeb - Boston University
Avoid doing this on the SCC; Increase Disk Space by Cleaning Anaconda ... Launching Jupyter Notebook with a specific environment; Launching Spyder with...
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