[IPython-user] TaskClient doesn't work after importing a module in MultiEngineClient
Fri Nov 14 13:29:30 CST 2008
I haven't look in detail at exactly what the tests script is doing,
but here is the problem:
You are doing something that causes the twisted reactor to be started
twice. The reactor is started for the controller and engine
automatically when they start and for the client when you import
IPython.kernel.client. The problem is that when you execute the
script in the engine, the engine already has the reactor running, but
at the top of the script you have the import of IPython.kernel.client,
which tries to start the reactor again.
More important question, why are you running the test script on the
engine anyways? You shouldn't need to. Can you tell us more about
what you are trying to do? I might have a chance this weekend to look
over your script and make suggestions as well.
On Fri, Nov 14, 2008 at 9:04 AM, Pecevski Dejan <email@example.com> wrote:
> Hi All,
> I've encountered a problem with the parallel capabilities in the new version
> of IPython 0.9.1.
> It seems that if you import a package in the MultiEngineClient then
> afterwards running tasks
> with the TaskClient fails.
> This use case was working properly in the previous version of IPython1.
> Attached is a reduced example that produces the error on my machine.
> The output from the engines is:
> 008-11-11 09:12:48+0100 [-] Log opened.
> 2008-11-11 09:12:48+0100 [-] Using furl file:
> 2008-11-11 09:12:48+0100 [Negotiation,client] engine registration succeeded,
> got id: 1
> 2008-11-11 09:12:50+0100 [-]
> exceptions.DeprecationWarning: Reactor already running! This behavior is
> deprecated since Twisted 8.0
> Fatal Python error: PyEval_RestoreThread: NULL tstate
> If I remove the line:
> rc.execute('import test_cluster2 as M')
> from the script, then everything works fine.
> I'm using Python 2.4, with IPython 0.9.1 installed using twisted 8.1 and
> foolscap 0.3.1.
> The distribution is Fedora core 6, Linux kernel 126.96.36.199.fc6, x86_64
> Any help would be appreciated.
> IPython-user mailing list
More information about the IPython-user