Comment 8 for bug 497419

Revision history for this message
Brian Granger (ellisonbg) wrote : Re: [Bug 497419] Re: importing client.TaskClient() hangs

Yes, this is fixed in my branch that is posted for review. All the
parallel computing stuff is broken in trunk
right now (hence my branch :)

But this issue does need to be investigated. It might have something
to do with how we start the Twisted event loop
in the interactive session.

Cheers,

Brian

On Wed, Dec 16, 2009 at 10:03 AM, Fernando Perez <email address hidden> wrote:
> Hey Brian,
>
> On Wed, Dec 16, 2009 at 9:39 AM, Robert Ferrell <email address hidden> wrote:
>> Getting an import error with the current bazaar checkout.
>> IPython.kernel.magic is looking for IPython.core.shell, but no such
>> file.
>>
>> Traceback (most recent call last):
>>  File "/Users/Shared/Develop/Sandbox/ipy-parallel/file1.py", line 3, in <module>
>>    from IPython.kernel import client
>>  File "/Users/Shared/SW-Installers/Sandbox/ipython-bzr/ipython/IPython/kernel/client.py", line 44, in <module>
>>    import IPython.kernel.magic
>>  File "/Users/Shared/SW-Installers/Sandbox/ipython-bzr/ipython/IPython/kernel/magic.py", line 21, in <module>
>>    from IPython.core.shell import MTInteractiveShell
>> ImportError: No module named shell
>>
>> Should I make a new bug report for this?
>
> Do you know off the top of your head if this is fixed in the branch
> pending review?
>
> If so, we can hold off on this: Brian and I will review and finish up
> that branch over the next few days (hopefully this weekend).
>
> Cheers,
>
> f
>
> --
> importing client.TaskClient() hangs
> https://bugs.launchpad.net/bugs/497419
> You received this bug notification because you are a member of IPython
> Developers, which is subscribed to IPython.
>
> Status in IPython - Enhanced Interactive Python: New
>
> Bug description:
> If I start an interactive session and type:
>
> import IPython
> from IPython.kernel import client
> tc = client.TaskClient()
>
> at the prompt, I get going fine.  If I put those commands in a file
> and run them as a script, that's fine.  But, if I put them in a file
> and import the file into an interactive IPython session, it hangs when
> I try to get a TaskClient.
>
> This is on OS X 10.6,  Python 2.6.1, ipython 0.10.
>
>
>

--
Brian E. Granger, Ph.D.
Assistant Professor of Physics
Cal Poly State University, San Luis Obispo
<email address hidden>
<email address hidden>