TraitError: The 'gui_completion' trait of a SpyderIPythonWidget can't be a boolean?

47 views
Skip to first unread message

Dave Hirschfeld

unread,
Jun 11, 2012, 4:34:28 AM6/11/12
to spyd...@googlegroups.com
Just a quick heads-up: with the latest IPython & Spyder github versions I'm seeing the following error when trying to start an IPython kernel:

>>> Traceback (most recent call last):
  File "C:\dev\code\spyderlib\spyderlib\plugins\externalconsole.py", line 772, in <lambda>
    cf, kernel_widget_id=id(shellwidget)))
  File "C:\dev\code\spyderlib\spyderlib\plugins\externalconsole.py", line 825, in create_ipython_client
    self.main.ipyconsole.new_client(connection_file, kernel_widget_id)
  File "C:\dev\code\spyderlib\spyderlib\plugins\ipythonconsole.py", line 502, in new_client
    self.register_client(cf, kernel_widget_id, client_name)
  File "C:\dev\code\spyderlib\spyderlib\plugins\ipythonconsole.py", line 553, in register_client
    config=self.client_config())
  File "C:\dev\code\spyderlib\spyderlib\widgets\ipython.py", line 215, in create_new_client
    widget = SpyderIPythonWidget(config=config, local_kernel=False)
  File "C:\dev\code\spyderlib\spyderlib\widgets\ipython.py", line 65, in __init__
    super(RichIPythonWidget, self).__init__(*args, **kw)
  File "c:\dev\code\ipython\IPython\frontend\qt\console\ipython_widget.py", line 116, in __init__
    super(IPythonWidget, self).__init__(*args, **kw)
  File "c:\dev\code\ipython\IPython\frontend\qt\console\frontend_widget.py", line 126, in __init__
    super(FrontendWidget, self).__init__(*args, **kw)
  File "c:\dev\code\ipython\IPython\frontend\qt\console\history_console_widget.py", line 26, in __init__
    super(HistoryConsoleWidget, self).__init__(*args, **kw)
  File "c:\dev\code\ipython\IPython\frontend\qt\console\console_widget.py", line 189, in __init__
    LoggingConfigurable.__init__(self, **kw)
  File "c:\dev\code\ipython\IPython\config\configurable.py", line 84, in __init__
    self.config = config
  File "c:\dev\code\ipython\IPython\utils\traitlets.py", line 307, in __set__
    obj._notify_trait(self.name, old_value, new_value)
  File "c:\dev\code\ipython\IPython\utils\traitlets.py", line 458, in _notify_trait
    c(name, old_value, new_value)
  File "c:\dev\code\ipython\IPython\config\configurable.py", line 139, in _config_changed
    setattr(self, k, deepcopy(config_value))
  File "c:\dev\code\ipython\IPython\utils\traitlets.py", line 303, in __set__
    new_value = self._validate(obj, value)
  File "c:\dev\code\ipython\IPython\utils\traitlets.py", line 311, in _validate
    return self.validate(obj, value)
  File "c:\dev\code\ipython\IPython\utils\traitlets.py", line 1101, in validate
    self.error(obj, value)
  File "c:\dev\code\ipython\IPython\utils\traitlets.py", line 334, in error
    raise TraitError(e)
IPython.utils.traitlets.TraitError: The 'gui_completion' trait of a SpyderIPythonWidget instance must be any of ['plain', 'droplist', 'ncurses'] or None, but a value of False <type 'bool'> was specified.

-Dave

Carlos Córdoba

unread,
Jun 11, 2012, 9:04:33 AM6/11/12
to spyd...@googlegroups.com
Thanks Dave, another difference between 0.12 and 0.13. Will fix it right
away =)

Don't hesitate of keeping us posted of these kind of errors. I'm not
developing against IPython master but 0.12, so it's really good to know
them.

Cheers,
Carlos

El 11/06/12 03:34, Dave Hirschfeld escribió:
> --
> You received this message because you are subscribed to the Google
> Groups "spyder" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/spyderlib/-/u6YTYHS7No8J.
> To post to this group, send email to spyd...@googlegroups.com.
> To unsubscribe from this group, send email to
> spyderlib+...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/spyderlib?hl=en.

Carlos Córdoba

unread,
Jun 11, 2012, 11:35:59 AM6/11/12
to spyd...@googlegroups.com
Dave I just pushed some changes that should make our IPython console
work again. Please try them and let us know if they work for you.

Cheers,
Carlos

El 11/06/12 08:04, Carlos Córdoba escribió:

Dave Hirschfeld

unread,
Jun 11, 2012, 12:37:44 PM6/11/12
to spyd...@googlegroups.com

On Monday, June 11, 2012 4:35:59 PM UTC+1, Carlos Córdoba wrote:
Dave I just pushed some changes that should make our IPython console 
work again. Please try them and let us know if they work for you. 

Cheers, 
Carlos 

Works great, thanks for the quick fix!

Happy to keep you posted with any IPython 0.13dev issues. I'm running both IPython & Spyder from git/hg because they're both changing so rapidly and there's such great new functionality being added that hasn't made it to a release yet.

Cheers,
Dave




Reply all
Reply to author
Forward
0 new messages