Spyder 4.0.0 crashes upon booting up

100 views
Skip to first unread message

Mitchell Thompson

unread,
Jan 8, 2020, 9:04:49 PM1/8/20
to spyder
Created new environment to host nlpia activities last week. Upgraded Spyder to 4.0.0 inside this environment tonight. It now crashes upon booting up. New to the programming world. Please advise.

On MacOSX Catalina

Mitchell Thompson

unread,
Jan 18, 2020, 12:56:49 PM1/18/20
to spyder
Crash log below. How is this fixed?

(nlpiaenv) ➜  ~ spyder
Traceback (most recent call last):
  File "/Users/mk1989f_a/opt/anaconda3/envs/nlpiaenv/lib/python3.7/site-packages/spyder/app/mainwindow.py", line 3711, in main
    mainwindow = run_spyder(app, options, args)
  File "/Users/mk1989f_a/opt/anaconda3/envs/nlpiaenv/lib/python3.7/site-packages/spyder/app/mainwindow.py", line 3552, in run_spyder
    main.setup()
  File "/Users/mk1989f_a/opt/anaconda3/envs/nlpiaenv/lib/python3.7/site-packages/spyder/app/mainwindow.py", line 1010, in setup
    from spyder.plugins.ipythonconsole.plugin import IPythonConsole
  File "/Users/mk1989f_a/opt/anaconda3/envs/nlpiaenv/lib/python3.7/site-packages/spyder/plugins/ipythonconsole/plugin.py", line 52, in <module>
    from spyder.plugins.ipythonconsole.widgets import ClientWidget
  File "/Users/mk1989f_a/opt/anaconda3/envs/nlpiaenv/lib/python3.7/site-packages/spyder/plugins/ipythonconsole/widgets/__init__.py", line 16, in <module>
    from .debugging import DebuggingWidget
  File "/Users/mk1989f_a/opt/anaconda3/envs/nlpiaenv/lib/python3.7/site-packages/spyder/plugins/ipythonconsole/widgets/debugging.py", line 15, in <module>
    from IPython.core.history import HistoryManager
  File "/Users/mk1989f_a/opt/anaconda3/envs/nlpiaenv/lib/python3.7/site-packages/IPython/__init__.py", line 56, in <module>
    from .terminal.embed import embed
  File "/Users/mk1989f_a/opt/anaconda3/envs/nlpiaenv/lib/python3.7/site-packages/IPython/terminal/embed.py", line 16, in <module>
    from IPython.terminal.interactiveshell import TerminalInteractiveShell
  File "/Users/mk1989f_a/opt/anaconda3/envs/nlpiaenv/lib/python3.7/site-packages/IPython/terminal/interactiveshell.py", line 21, in <module>
    from prompt_toolkit.formatted_text import PygmentsTokens
ModuleNotFoundError: No module named 'prompt_toolkit.formatted_text'

Jim Lareau

unread,
Jan 18, 2020, 4:00:10 PM1/18/20
to spyder
Github Readme file for nlpia can be found here:

https://github.com/totalgood/nlpia/blob/master/README.md

Jim Lareau

unread,
Jan 18, 2020, 4:00:10 PM1/18/20
to spyder
I've used the nlpia environment also. Have you followed the procedures as laid out in the gihub Readme file? I found that many scripts would not work until I recreated the environment exactly as described. After the pip installs, use conda to install spyder 4.0.1 and update spyder-kernels pyqt and qt.

Regards,
Jim
Reply all
Reply to author
Forward
0 new messages