[IPython-dev] Issue in error path in case of invalid command

Brian Granger ellisonbg.net at gmail.com
Wed Nov 8 21:50:18 CST 2006


Even though you were connecting to the wrong port we need to add some
error checking code so that the controller doesn't die and the error
messages are more understandable.

Brian

On 11/8/06, Albert Strasheim <fullung at gmail.com> wrote:
> Thanks, my bad.
>
> Still seems like this points to issues in the lines
>
> log.msg('Protocol Error [%i]: ' % id + repr(a))
>
> and
>
> log.msg("engine %i was not registered" % id)
>
> since by connecting to this wrong port, id was None in both cases, which
> caused the TypeError to be raised.
>
> Cheers,
>
> Albert
>
> ----- Original Message -----
> From: "Brian Granger" <ellisonbg.net at gmail.com>
> To: "Albert Strasheim" <fullung at gmail.com>
> Sent: Thursday, November 09, 2006 2:15 AM
> Subject: Re: [IPython-dev] Issue in error path in case of invalid command
>
>
> > You are connecting on the wrong port.  10201 is the port the engine
> > connect on.  You want port 10105.  If you are running the controler on
> > localhost you can simply do:
> >
> > rc = kernel.RemoteController(kernel.defaultController)
> >
> > and it will do the right thing.
>
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://projects.scipy.org/mailman/listinfo/ipython-dev
>


More information about the IPython-dev mailing list