[IPython-user] TaskClient problems

Yichun Wei yichun.wei@gmail....
Thu Apr 2 16:23:02 CDT 2009


I had the impression that I needed Twised 8.1 to have my code work.
The warning about reactor.run reminds me that it might be related.
Just an idea, not sure if it helps. -yichun

On Thu, Apr 2, 2009 at 12:52 PM, M Trumpis <mtrumpis@berkeley.edu> wrote:
> Hello.. I'm having some trouble queuing up tasks in a TaskClient
> object. I don't have a good handle on what's going on, but I've tried
> to include all the relevant log/debug info. I'm working with an
> ipcluster with two engines, on Mac OS 10.4. Python etc are built up
> from macports, and IPython from trunk (the IPython build details are
> listed below). When I set up a queue of tasks, most of the time the
> engines encounter an error and shut down.
>
> When I start up ipcluster, the first warning sign is this line:
>
> 2009-04-02 12:18:54-0700 [-] spawnProcess called, but the SIGCHLD
> handler is not installed. This probably means you have not yet called
> reactor.run, or called reactor.run(installSignalHandler=0). You will
> probably never see this process finish, and it may become a zombie
> process.
>
> The errors after that point seem to depend on the task queuing.. The
> ipengine log with a twisted exception is included below
>
> Thanks.. sorry my description is lousy, but I hope the logs help!
>
> Mike
>
> -------------------------- IPCLUSTER STDOUT
> ---------------------------------------
> puma:~/workywork/recon/ghosting miket$ ipcluster local
> 2009-04-02 12:18:54-0700 [-] Log opened.
> 2009-04-02 12:18:54-0700 [-] spawnProcess called, but the SIGCHLD
> handler is not installed. This probably means you have not yet called
> reactor.run, or called reactor.run(installSignalHandler=0). You will
> probably never see this process finish, and it may become a zombie
> process.
> 2009-04-02 12:18:54-0700 [-] Process ['ipcontroller',
> '--logfile=/Users/miket/.ipython/log/ipcontroller'] has started with
> pid=1799
> 2009-04-02 12:18:55-0700 [-] Process ['ipengine',
> '--logfile=/Users/miket/.ipython/log/ipengine1799-'] has started with
> pid=1803
> 2009-04-02 12:18:55-0700 [-] Process ['ipengine',
> '--logfile=/Users/miket/.ipython/log/ipengine1799-'] has started with
> pid=1804
> 2009-04-02 12:18:55-0700 [-] Engines started with pids: [1803, 1804]
> 2009-04-02 12:22:36-0700 [-] 'Fatal Python error:
> PyEval_RestoreThread: NULL tstate\n'
> 2009-04-02 12:22:36-0700 [-] Process ['ipengine',
> '--logfile=/Users/miket/.ipython/log/ipengine1799-'] has stopped with
> {'status': 6, 'signal': 6, 'exit_code': None}
> 2009-04-02 12:22:36-0700 [-] 'Fatal Python error:
> PyEval_RestoreThread: NULL tstate\n'
> 2009-04-02 12:22:36-0700 [-] Process ['ipengine',
> '--logfile=/Users/miket/.ipython/log/ipengine1799-'] has stopped with
> {'status': 6, 'signal': 6, 'exit_code': None}
>
> --------------------------- IPENGINE LOG ------------------------------
>
> 2009-04-02 12:18:57-0700 [-] Log opened.
> 2009-04-02 12:18:57-0700 [-] Using furl file:
> /Users/miket/.ipython/security/ipcontroller-engine.furl
> 2009-04-02 12:18:57-0700 [Negotiation,client] engine registration
> succeeded, got id: 0
> 2009-04-02 12:19:46-0700 [-]
> /opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/t
> wisted/internet/posixbase.py:222: exceptions.DeprecationWarning:
> Reactor already running! This behavior is deprecated
> since Twisted 8.0
>
>
> ------------------------------ BUILD INFO ----------------------------------
> BUILDING IPYTHON
>                python: 2.5.4 (r254:67916, Feb 20 2009, 16:11:07)  [GCC
>                        4.0.1 (Apple Computer, Inc. build 5370)]
>              platform: darwin
>
> OPTIONAL DEPENDENCIES
>        Zope.Interface: yes
>               Twisted: 8.0.1
>              Foolscap: 0.3.2
>               OpenSSL: 0.7
>                sphinx: 0.5
>              pygments: 1.0
>                  nose: 0.10.4
>               pexpect: 2.3
> _______________________________________________
> IPython-user mailing list
> IPython-user@scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-user
>


More information about the IPython-user mailing list