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 not launching when Kite installation is faulty

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

Spyder crashing upon startup.

I have just installed anaconda3 on this computer (a first time install), and updated anaconda and spyder to the newest versions. Initially it worked fine, but having forgotten numpy, I closed down, and installed it. When trying to open spyder4 again it would not work. I have restarted my pc, uninstalled and reinstalled anaconda and spyder a few times, and never have I gotten spyder to open again.

What steps reproduce the problem?

  1. Fresh install of conda from website (64-Bit Graphical Installer for python 3.7)
  2. In the conda prompt write conda update anaconda followed by conda install spyder=4.0.1 (Note to 2: When updating anaconda it’ll post some debugging lines, and when installing spyder it’ll fail with initial frozen solve to solve the environment and commence debugging at the end - see screenshots for all)
  3. Run spyder --reset
  4. Launch spyder

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

Pops up with the traceback instead of opening spyder.

Paste Traceback/Error Below (if applicable)


Traceback (most recent call last):
File "F:\Anaconda\lib\site-packages\spyder\app\mainwindow.py", line 3718, in main
mainwindow = run_spyder(app, options, args)
File "F:\Anaconda\lib\site-packages\spyder\app\mainwindow.py", line 3559, in run_spyder
main.setup()
File "F:\Anaconda\lib\site-packages\spyder\app\mainwindow.py", line 960, in setup
self.completions.start()
File "F:\Anaconda\lib\site-packages\spyder\plugins\completion\plugin.py", line 292, in start
client_info['plugin'].start()
File "F:\Anaconda\lib\site-packages\spyder\plugins\completion\kite\plugin.py", line 141, in start
self.kite_process = run_program(path)
File "F:\Anaconda\lib\site-packages\spyder\utils\programs.py", line 214, in run_program
return subprocess.Popen(fullcmd, **subprocess_kwargs)
File "F:\Anaconda\lib\subprocess.py", line 775, in __init__
restore_signals, start_new_session)
File "F:\Anaconda\lib\subprocess.py", line 1178, in _execute_child
startupinfo)
OSError: [WinError 193] %1 is not a valid Win32 application


Versions

  • Spyder version: 4.0.1
  • Python version: 3.7.4 (also tried 3.7.6 with no change)
  • Qt version: 5.9.7
  • PyQt version: 5.9.2
  • Operating System name/version: Windows 10

Dependencies

I'm assuming this is if spyder is launchable - which it isn't for me. (cannot find this)

Pictures of prompt window (from note to 2)

updating conda installing spyder installing spyder 2

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:16 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
1CoreBraincommented, Feb 22, 2020

@1CoreBrain, please look at the directory shown in @Klumpfisk’s last screenshot above and remove it.

Alright, thanks a lot. Spyder works again.

1reaction
ccordoba12commented, Feb 20, 2020

maybe we need to add at least a message regarding failed installations and the need of a manual (or automatic) deletion of remaining files?

Definitely, please open a PR for that.

Read more comments on GitHub >

github_iconTop Results From Across the Web

anaconda - Spyder 5 won't launch - Stack Overflow
Uninstalling (through Windows menu) Spyder and reinstalling it in the Anaconda prompt; Installing Spyder 4 again conda install spyder=4.0.0 .
Read more >
First Steps — Spyder 5 documentation
If the problem lies with your specific install, uninstalling and clean-reinstalling the Anaconda distribution is strongly recommended. As the other methods of ...
Read more >
[jammy] spyder does not start because of kite install widget
On clean install, python3-spyder crashes on startup. This is caused by a float variable which should be an integer in file ...
Read more >
Trying to get kite working on spyder : r/learnpython
In the kite copilot : it shows that it has installed the editor plugins for pycharm and vscode (which both work), but does...
Read more >
spyder-ide/public - Gitter
Hi everyone, I just installed Spyder, but the kernel doesn't start. ... Raf I agree Kite is not very good for using on...
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