Comment 4 for bug 497419

Revision history for this message
Vishal Vatsa (vvatsa) wrote : Re: [Bug 497419] Re: importing client.TaskClient() hangs

Yep, I can replicate it with import as you have described on 0.11 and 0.9.1
Worth further investigation.

-vishal

2009/12/16 Robert Ferrell <email address hidden>:
> I get the error when I 'import file1'.  If I '%run file1' there is no
> problem.
>
> A bit more specific:
>
> file1.py
> ==========================================
> import IPython
> from IPython.kernel import client
> print 'Imported client'
> tc = client.TaskClient()
> print 'Got client'
> ==========================================
>
> file2.py
> ==========================================
> print 'In file 2'
> import file1
> print 'Imported file1'
> ==========================================
>
> At the shell (not inside ipython),
> $python file1.py
> works fine
> $python file2.py
> hangs.
>
> The situation is similar inside an ipython shell.  %run file1 works
> fine.  import file1 hangs.  %run file2 hangs.
>
> I'll see if I can replicate this with the current bazaar checkout.  I'm
> on Snow Leopard, so things feel a little fragile for me.  (I backed down
> from 0.11 because of some other problem.)
>
> --
> 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.
>
>
>