I'm getting this traceback from time to time, in a kind of random, unpredictable fashion (at least for me):

Traceback (most recent call last):
File "/home/carlos/.virtualenvs/spyder_trunk/lib/python2.7/site-packages/spyderlib/widgets/shell.py", line 297, in keyPressEvent
    self.postprocess_keyevent(event)
File "/home/carlos/.virtualenvs/spyder_trunk/lib/python2.7/site-packages/spyderlib/widgets/shell.py", line 777, in postprocess_keyevent
    ShellBaseWidget.postprocess_keyevent(self, event)
File "/home/carlos/.virtualenvs/spyder_trunk/lib/python2.7/site-packages/spyderlib/widgets/shell.py", line 352, in postprocess_keyevent
    self._key_tab()
File "/home/carlos/.virtualenvs/spyder_trunk/lib/python2.7/site-packages/spyderlib/widgets/shell.py", line 809, in _key_tab
    self.show_code_completion(automatic=False)
File "/home/carlos/.virtualenvs/spyder_trunk/lib/python2.7/site-packages/spyderlib/widgets/shell.py", line 941, in show_code_completion
    obj_list = self.get_module_completion(text)
File "/home/carlos/.virtualenvs/spyder_trunk/lib/python2.7/site-packages/spyderlib/widgets/externalshell/pythonshell.py", line 121, in get_module_completion
    return self.ask_monitor("getmodcomplist('%s')" % objtxt)
File "/home/carlos/.virtualenvs/spyder_trunk/lib/python2.7/site-packages/spyderlib/widgets/externalshell/pythonshell.py", line 72, in ask_monitor
    return communicate(sock, command, settings=settings)
File "/home/carlos/.virtualenvs/spyder_trunk/lib/python2.7/site-packages/spyderlib/utils/bsdsocket.py", line 56, in communicate
    return read_packet(sock)
File "/home/carlos/.virtualenvs/spyder_trunk/lib/python2.7/site-packages/spyderlib/utils/bsdsocket.py", line 31, in read_packet
    dlen, = struct.unpack("l", datalen)
struct.error: unpack requires a string argument of length 8

Sometimes this is accompanied of this other traceback:

Traceback (most recent call last):
File "/home/carlos/.virtualenvs/spyder_trunk/lib/python2.7/site-packages/spyderlib/plugins/inspector.py", line 366, in refresh_plugin
    self.set_object_text(None, force_refresh=False)
File "/home/carlos/.virtualenvs/spyder_trunk/lib/python2.7/site-packages/spyderlib/plugins/inspector.py", line 529, in set_object_text
    found = self.show_help(text, ignore_unknown=ignore_unknown)
File "/home/carlos/.virtualenvs/spyder_trunk/lib/python2.7/site-packages/spyderlib/plugins/inspector.py", line 698, in show_help
    if self.shell.is_defined(obj_text):
File "/home/carlos/.virtualenvs/spyder_trunk/lib/python2.7/site-packages/spyderlib/widgets/externalshell/pythonshell.py", line 114, in is_defined
    % (objtxt, force_import))
File "/home/carlos/.virtualenvs/spyder_trunk/lib/python2.7/site-packages/spyderlib/widgets/externalshell/pythonshell.py", line 73, in ask_monitor
    return communicate(sock, command, settings=settings)
File "/home/carlos/.virtualenvs/spyder_trunk/lib/python2.7/site-packages/spyderlib/utils/bsdsocket.py", line 56, in communicate
    return read_packet(sock)
File "/home/carlos/.virtualenvs/spyder_trunk/lib/python2.7/site-packages/spyderlib/utils/bsdsocket.py", line 34, in read_packet
    data += sock.recv(dlen)
OverflowError: signed integer is greater than maximum

and other times it only appears this one:

Traceback (most recent call last):
File "/home/carlos/.virtualenvs/spyder_trunk/lib/python2.7/site-packages/spyderlib/widgets/shell.py", line 297, in keyPressEvent
    self.postprocess_keyevent(event)
File "/home/carlos/.virtualenvs/spyder_trunk/lib/python2.7/site-packages/spyderlib/widgets/shell.py", line 777, in postprocess_keyevent
    ShellBaseWidget.postprocess_keyevent(self, event)
File "/home/carlos/.virtualenvs/spyder_trunk/lib/python2.7/site-packages/spyderlib/widgets/shell.py", line 352, in postprocess_keyevent
    self._key_tab()
File "/home/carlos/.virtualenvs/spyder_trunk/lib/python2.7/site-packages/spyderlib/widgets/shell.py", line 809, in _key_tab
    self.show_code_completion(automatic=False)
File "/home/carlos/.virtualenvs/spyder_trunk/lib/python2.7/site-packages/spyderlib/widgets/shell.py", line 986, in show_code_completion
    b_k_g = dir(__builtin__)+self.get_globals_keys()+keyword.kwlist
TypeError: can only concatenate list (not "NoneType") to list

This is happening to me from some time now, I don't remember exactly since when.

All these tracebacks seem to imply that monitor communication channels are somehow shutdown, which breaks code completion. But how this can happen and be fixed?

Cheers,
Carlos

--
You received this message because you are subscribed to the Google Groups 
"spyder" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/spyderlib?hl=en.

Reply via email to