A Python or IPython Console failed to start!
and the python console was indeed disabled.
When trying to open the Preferences window in order to correct the python path, I get an error message in the Internal Console:
>>> Traceback (most recent call last):
File "/Applications/Spyder.app/Contents/Resources/lib/python2.7/spyderlib/spyder.py", line 1853, in edit_preferences
widget = plugin.create_configwidget(dlg)
File "/Applications/Spyder.app/Contents/Resources/lib/python2.7/spyderlib/plugins/__init__.py", line 179, in create_configwidget
configwidget.initialize()
File "/Applications/Spyder.app/Contents/Resources/lib/python2.7/spyderlib/plugins/externalconsole.py", line 67, in initialize
PluginConfigPage.initialize(self)
File "/Applications/Spyder.app/Contents/Resources/lib/python2.7/spyderlib/plugins/configdialog.py", line 49, in initialize
self.setup_page()
File "/Applications/Spyder.app/Contents/Resources/lib/python2.7/spyderlib/plugins/externalconsole.py", line 307, in setup_page
interpreter=interpreter)
File "/Applications/Spyder.app/Contents/Resources/lib/python2.7/spyderlib/utils/programs.py", line 251, in is_module_installed
stdout=subprocess.PIPE).communicate()[0]
File "subprocess.pyc", line 711, in __init__
File "subprocess.pyc", line 1308, in _execute_child
OSError: [Errno 2] No such file or directory
I am not an advanced user so I do not see how to deal with this issue, I hope this is the right place to ask such questions.
Details: Mac OS 10.6.8, Spyder 2.2.5 (installed from dmg)
Thanks!
Andrey
On 03/28/2014 04:31 AM, Andrey Mostovov wrote:
> Hi,
>
> I unintentionally modified the default python path to a wrong one in the
> Preferences window of Spyder. After restarting it, the following error
> message showed up:
I am going to assume you mean the PYTHONSTARTUP setting in the console
preferences. If that is not the case you are going to have to be more
specific.
>
> A Python or IPython Console failed to start!
>
> and the python console was indeed disabled.
>
> When trying to open the Preferences window in order to correct the
> python path, I get an error message in the Internal Console:
>
>
> I am not an advanced user so I do not see how to deal with this issue, I
> hope this is the right place to ask such questions.
In your home directory find the .spyder2 directory. Look for the
spyder.ini field. In that file search for:
pythonstartup/default
It is probably set to False. Set to True:
pythonstartup/default = True