Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zmq frontend #3365

Closed
ericjang opened this issue May 28, 2013 · 4 comments · Fixed by #3366
Closed

zmq frontend #3365

ericjang opened this issue May 28, 2013 · 4 comments · Fixed by #3366
Milestone

Comments

@ericjang
Copy link

Hello,

Trying to run the zmq frontend.py to test the kernalapp.py

I get this

system-process:zmq ericjang$ python frontend.py 
Python 2.7.1 (r271:86832, Jul 31 2011, 19:30:53) 
[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
(Console)
Py>>> x = 1
Traceback (most recent call last):
  File "frontend.py", line 199, in <module>
    main()
  File "frontend.py", line 195, in main
    client.interact()
  File "frontend.py", line 170, in interact
    self.console.interact()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/code.py", line 243, in interact
    more = self.push(line)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/code.py", line 265, in push
    more = self.runsource(source, self.filename)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/code.py", line 87, in runsource
    self.runcode(code)
  File "frontend.py", line 142, in runcode
    self.messages[omsg.header.msg_id] = omsg
AttributeError: 'dict' object has no attribute 'header'
minrk added a commit to minrk/ipython that referenced this issue May 28, 2013
These were really just demos to begin with, and should never have been included as library code.

closes ipython#3365
@minrk
Copy link
Member

minrk commented May 28, 2013

frontend.py is long-dead code, and not used by anything (I just opened PR #3366 to remove it). Where did you get the idea of using it as a test?

@ericjang
Copy link
Author

trying to learn how to build a frontend for the iPython kernel in a
different language (Obj-C) using the Obj-C zmq bindings. The comment said

"A simple interactive frontend that talks to a kernel over 0MQ." so I
thought it might have been a good place to start learning.

On Mon, May 27, 2013 at 10:05 PM, Min RK notifications@github.com wrote:

frontend.py is long-dead code, and not used by anything (I just opened PR
#3366 #3366 to remove it).
Where did you get the idea of using it as a test?


Reply to this email directly or view it on GitHubhttps://github.com//issues/3365#issuecomment-18529836
.

@minrk
Copy link
Member

minrk commented May 28, 2013

That's logical enough, sorry for the confusion. That code should never have been in any released version of IPython. The TerminalInteractiveShell, QtConsole, or even the KernelClient tests are probably better places to look.

@ericjang
Copy link
Author

No worries, thanks for your prompt reply and for maintaing such an awesome,
well-commented specimen of open source!

On Mon, May 27, 2013 at 10:38 PM, Min RK notifications@github.com wrote:

That's logical enough, sorry for the confusion. That code should never
have been in any released version of IPython. The TerminalInteractiveShell,
QtConsole, or even the KernelClient tests are probably better places to
look.


Reply to this email directly or view it on GitHubhttps://github.com//issues/3365#issuecomment-18532135
.

minrk added a commit that referenced this issue Jun 1, 2013
remove long-dead zmq frontend.py and completer.py

These were really just demos to begin with, and should never have been
included as library code.

closes #3365
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this issue Nov 3, 2014
These were really just demos to begin with, and should never have been included as library code.

closes ipython#3365
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this issue Nov 3, 2014
remove long-dead zmq frontend.py and completer.py

These were really just demos to begin with, and should never have been
included as library code.

closes ipython#3365
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants