Spyder launch error in Anaconda

389 views
Skip to first unread message

Laura

unread,
Nov 5, 2020, 9:54:43 AM11/5/20
to spyder
Hi, 
I have just installed Anaconda3 (Anaconda Navigator 1.9.12) on my macOS Catalina (version 10.15.7) and when I try to launch Spyder (version 4.1.4) via Anaconda, I get this error message : 

Traceback (most recent call last):
File "/Users/lauralan/opt/anaconda3/envs/3.8_Pytorch/bin/spyder", line 11, in
sys.exit(main())
File "/Users/lauralan/opt/anaconda3/envs/3.8_Pytorch/lib/python3.8/site-packages/spyder/app/start.py", line 205, in main
mainwindow.main()
File "/Users/lauralan/opt/anaconda3/envs/3.8_Pytorch/lib/python3.8/site-packages/spyder/app/mainwindow.py", line 3651, in main
mainwindow = run_spyder(app, options, args)
File "/Users/lauralan/opt/anaconda3/envs/3.8_Pytorch/lib/python3.8/site-packages/spyder/app/mainwindow.py", line 3526, in run_spyder
main.setup()
File "/Users/lauralan/opt/anaconda3/envs/3.8_Pytorch/lib/python3.8/site-packages/spyder/app/mainwindow.py", line 844, in setup
self.console = Console(self, namespace=None, exitfunc=self.closing,
File "/Users/lauralan/opt/anaconda3/envs/3.8_Pytorch/lib/python3.8/site-packages/spyder/plugins/console/plugin.py", line 63, in __init__
self.shell = InternalShell(parent, namespace, commands, message,
File "/Users/lauralan/opt/anaconda3/envs/3.8_Pytorch/lib/python3.8/site-packages/spyder/plugins/console/widgets/internalshell.py", line 140, in __init__
PythonShellWidget.__init__(self, parent,
File "/Users/lauralan/opt/anaconda3/envs/3.8_Pytorch/lib/python3.8/site-packages/spyder/plugins/console/widgets/shell.py", line 646, in __init__
ShellBaseWidget.__init__(self, parent, history_filename,
File "/Users/lauralan/opt/anaconda3/envs/3.8_Pytorch/lib/python3.8/site-packages/spyder/plugins/console/widgets/shell.py", line 71, in __init__
self.history = self.load_history()
File "/Users/lauralan/opt/anaconda3/envs/3.8_Pytorch/lib/python3.8/site-packages/spyder/plugins/console/widgets/shell.py", line 499, in load_history
if rawhistory[1] != self.INITHISTORY[1]:
IndexError: list index out of range


What can I do to solve this problem ? I already try to reinstall Anaconda but it's not working. I have searched on other forum but still don't understand the problem..

Thanks to all :)

Laura

Carlos Córdoba

unread,
Nov 5, 2020, 9:57:39 AM11/5/20
to spyd...@googlegroups.com
Hi Laura,

Please open Terminal.app and run there

    spyder --reset

That should fix your problem.


Cheers,
Carlos

El 3/11/20 a las 4:43 a. m., Laura escribió:
--
You received this message because you are subscribed to the Google Groups "spyder" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spyderlib+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/spyderlib/f587077a-8500-4554-87ac-c0c5ecbbb160n%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages