conda update spyder
(or pip
, if not using Anaconda)jupyter qtconsole
(if console-related)spyder --reset
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.
conda update anaconda
followed by conda install spyder=4.0.1
spyder --reset
Pops up with the traceback instead of opening spyder.
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
I'm assuming this is if spyder is launchable - which it isn't for me. (cannot find this)
If you have Kite installed, please uninstall it. That should solve your problem.
@dalthviz, do you know what's happening in this case?
If you have Kite installed, please uninstall it. That should solve your problem.
When I first launched spyder (the time it worked) it asked if I wanted to install Kite, which I just accepted. The install failed and installer closed, and I thought nothing more of it. I cannot find kite using Window's add/remove programs feature, so I don't know if there are some files from it remaining from the failed install.
@ccordoba12 I'm not sure but maybe some how the failed installation make available the service that Kite uses while actually not being installed? Probably caused by remaining files of the failed installation that by pass the check of Kite being installed.
@Klumpfisk could you check if there is Kite related processes running in your machine? Also, could you try to download the installer manually (available here) and try to install Kite?. For example, when I run the installer I get the following message:
Edit: Reviewing the way we check if Kite is installed, we validate if the path C:\Program Files\Kite\kited.exe
exists. @Klumpfisk could you try to check if you have a folder C:\Program Files\Kite
and delete it?
Okay, so it seems kite has made a folder on my machine with that path, however it doesn't have an uninstaller. I get the same message when trying to install kite. I'll try to manually remove the folder and check it (I'll need to install a few things again as I reinstalled conda and used the 3.3.6 version of spyder)
Alright, that fixed it.
Thanks a lot, would've never found this on my own :)
Thanks for the patience to reinstall everything @Klumpfisk ! Glad you could make it work :)
@ccordoba12 maybe we need to add at least a message regarding failed installations and the need of a manual (or automatic) deletion of remaining files?
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.
Thanks for the patience to reinstall everything @Klumpfisk ! Glad you could make it work :)
Hi, I have met the same problem. I tried to uninstall Kite before upgrading spyder. I found the first step of uninstallation of Kite is to uninstall plugins. The expected interface would be like this:
However what is shown on my PC is:
Plugins for Spyder is shown on the 'installed editor plugins' part but there is no uninstall button.
What should I do to uninstall the plugin?
Hi @1CoreBrain in your case, as Kite Copilot mentions, the thing is that you are using Spyder version 3.3.6
. If you want to use Kite inside Spyder, please update to Spyder 4 which is the version that supports Kite (if you use Anaconda you can update running something like conda install spyder=4.0.1
)
@1CoreBrain, your problem was adequately answered by @dalthviz. Please don't add more comments on this issue about it because it's really unrelated to what @Klumpfisk reported initially.
@1CoreBrain, your problem was adequately answered by @dalthviz. Please don't add more comments on this issue about it because it's really unrelated to what @Klumpfisk reported initially.
Hi, sorry for that, I think I did not say it clearly.
My question is how to UNINSTALL Kite instead of using it.
The thing is when I want to UPDATE the Spyder to 4.0.1, I got EXACTLY what Klumpfisk has met, like:
And I was looking for help and found this discussion. As @dalthviz said, Kite should be uninstalled before updating Spyder. However, I met a problem when I was trying to uninstall Kite, which I have mentioned before.
Following the uninstallation step below, I need to uninstall the Spyder plugin first.
However, there is no UNINSTALL button when I try to uninstall the Spyder plugin, I even don't know whether it is installed.
Hence I wrote a comment on this issue because I meet the same problem as @Klumpfisk reported and met a problem when following the suggestion of @dalthviz.
@1CoreBrain, please look at the directory shown in @Klumpfisk's last screenshot above and remove it.
@1CoreBrain, please look at the directory shown in @Klumpfisk's last screenshot above and remove it.
Alright, thanks a lot. Spyder works again.
Great to hear!
hi
i have same problem as you. i uninstal kite but spyder not launching yet.