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.

IndexError in Code Analysis prevents Spyder from getting launched

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

On launching Spyder, I get error as mentioned below:

What steps reproduce the problem?

  1. launch Spyder

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

Spyder IDE not getting launched

Paste Traceback/Error Below (if applicable)


Traceback (most recent call last):
File "C:\Users\uidn7351\AppData\Local\Continuum\anaconda3\Scripts\spyder-script.py", line 10, in 
sys.exit(main())
File "C:\Users\uidn7351\AppData\Local\Continuum\anaconda3\lib\site-packages\spyder\app\start.py", line 205, in main
mainwindow.main()
File "C:\Users\uidn7351\AppData\Local\Continuum\anaconda3\lib\site-packages\spyder\app\mainwindow.py", line 3763, in main
mainwindow = run_spyder(app, options, args)
File "C:\Users\uidn7351\AppData\Local\Continuum\anaconda3\lib\site-packages\spyder\app\mainwindow.py", line 3638, in run_spyder
main.setup()
File "C:\Users\uidn7351\AppData\Local\Continuum\anaconda3\lib\site-packages\spyder\app\mainwindow.py", line 984, in setup
plugin = module.PLUGIN_CLASS(self)
File "C:\Users\uidn7351\AppData\Local\Continuum\anaconda3\lib\site-packages\spyder\plugins\pylint\plugin.py", line 56, in __init__
self.pylint = PylintWidget(self, max_entries=max_entries,
File "C:\Users\uidn7351\AppData\Local\Continuum\anaconda3\lib\site-packages\spyder\plugins\pylint\widgets\pylintgui.py", line 252, in __init__
self.set_filename(f)
File "C:\Users\uidn7351\AppData\Local\Continuum\anaconda3\lib\site-packages\spyder\plugins\pylint\widgets\pylintgui.py", line 279, in set_filename
self.curr_filenames.pop(index)
IndexError: pop index out of range

Versions

  • Spyder version:
  • Python version:
  • Qt version:
  • PyQt version:
  • Operating System name/version: As I am unable to launch Spyder, please let me know how to get these details.

Dependencies

As I am unable to launch Spyder, please let me know how to get these details.

NOTE: Today I upgraded Spyder and few other modules. Since then there is this issue.

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
ccordoba12commented, Jul 28, 2020

To all people that have posted here: please close Spyder, open the Anaconda Prompt, run there

spyder --reset

and try again.

0reactions
robert99commented, Sep 8, 2020

My problem is that I reverted back to Spyder 4.1.3. My Anaconda will not allow any upgrade to 4.1.4 so that I can try the suggested workarounds. It tells me there is an upgrade available but when run it just finishes without upgrading to 4.1.4.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to turn on/off code analysis features in Spyder 4
I get false warnings every time I rename a variable. It flags me that "old variable name" is assigned to but never use....
Read more >
Python Intro for Libraries
Objectives. Learners can launch the Spyder IDE. Learners are able to use the IPython console to interact with Python. Learners are able to...
Read more >
spyder-ide/public - Gitter
In Spyder 4, you can undock the Variable Explorer (or any Spyder pane) to be a separate, Alt-Tabbable window, and any sub-windows opened...
Read more >
Python Tutorial - Getting Started with Python and Python Basics
The drawback is that you have to hard code the path to the Python Interpreter, which may prevent the program from being portable...
Read more >
How to fix 'Sys.argv [1], indexerror: list index out of range ...
It means that the integer value being used to index the list is either too large or too small. For instance if you...
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