wuub / SublimeREPL

SublimeREPL - run an interpreter inside ST2 (Clojure, CoffeeScript, F#, Groovy, Haskell, Lua, MozRepl, NodeJS, Python, R, Ruby, Scala, shell or configure one yourself)
https://github.com/wuub/SublimeREPL
Other
2.14k stars 311 forks source link

IPython 'ZMQSocketChannel' object has no attribute 'complete' #407

Open fplust opened 9 years ago

fplust commented 9 years ago

I use anaconda python in windows 8.1, when using sublimerepl ipython, I get this error.

IPython Console 3.0.0

In [1]: Exception in thread Thread-4:
Traceback (most recent call last):
  File "D:\Sublime Text 3\Data\Packages/SublimeREPL/config/Python/ipy_repl.py", line 104, in handle
    completions = complete(embedded_shell, req)
  File "D:\Sublime Text 3\Data\Packages/SublimeREPL/config/Python/ipy_repl.py", line 92, in complete
    msg_id = kc.shell_channel.complete(**req)
AttributeError: 'ZMQSocketChannel' object has no attribute 'complete'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "D:\Anaconda3\lib\threading.py", line 920, in _bootstrap_inner
    self.run()
  File "D:\Anaconda3\lib\threading.py", line 868, in run
    self._target(*self._args, **self._kwargs)
  File "D:\Sublime Text 3\Data\Packages/SublimeREPL/config/Python/ipy_repl.py", line 109, in handle
    send_netstring(s, b"[]")
  File "D:\Sublime Text 3\Data\Packages/SublimeREPL/config/Python/ipy_repl.py", line 86, in send_netstring
    payload = b"".join([str(len(msg)).encode("ascii"), b':', msg.encode("utf-8"), b','])
AttributeError: 'bytes' object has no attribute 'encode'
j9ac9k commented 9 years ago

This is the same issue as #417