[IPython-user] ipcontroller & ipengine

Vincent Schut schut@sarvision...
Fri Aug 22 08:58:00 CDT 2008


Hi,

I'm trying ipython's parallel capabilities once again, but things have
changed... a lot apparently, since I last tried...

I used to start 'ipcontroller --engine-ip 10.0.0.211' on localhost, and
then 'ipengine -n8' on 10.0.0.211 (an 8-core machine). I could then
connect from localhost to the controller, which connected to the
engines@10.0.0.211. Or I started ipcluster -n8 on 10.0.0.211, and then
started a client connection from ipython specifying 10.0.0.211 as the
controller-host to connect to.
Neither works anymore.
I know I can fiddle with furl files, but it is not convenient for me to
have to copy a furl file each time I (re)start a cluster. I don't want
to mess with ssh-agent either, if possible.

What would be the simplest way to achieve a situation where 1) the
engines run on remotehost, 2) I can connect from kernel.client to those
engines? Controller might run anywhere it is convenient...

Btw this is the error when I try to start a controller on localhost,
ready to listen for engines on 10.0.0.211:

$  ipcontroller --engine-ip 10.0.0.211
2008-08-22 15:49:19+0200 [-] Log opened.
2008-08-22 15:49:19+0200 [-] foolscap.pb.Listener starting on 45401
2008-08-22 15:49:19+0200 [-] Traceback (most recent call last):
2008-08-22 15:49:19+0200 [-]   File "/usr/bin/ipcontroller", line 19, in
<module>
2008-08-22 15:49:19+0200 [-]     ipcontroller.main()
2008-08-22 15:49:19+0200 [-]   File
"/usr/lib/python2.5/site-packages/IPython/kernel/scripts/ipcontroller.py",
line 363, in main
2008-08-22 15:49:19+0200 [-]     start_controller()
2008-08-22 15:49:19+0200 [-]   File
"/usr/lib/python2.5/site-packages/IPython/kernel/scripts/ipcontroller.py",
line 217, in start_controller
2008-08-22 15:49:19+0200 [-]     main_service.startService()
2008-08-22 15:49:19+0200 [-]   File
"/usr/lib/python2.5/site-packages/twisted/application/service.py", line
260, in startService
2008-08-22 15:49:19+0200 [-]     service.startService()
2008-08-22 15:49:19+0200 [-]   File
"build/bdist.linux-x86_64/egg/foolscap/pb.py", line 591, in startService
2008-08-22 15:49:19+0200 [-]   File
"/usr/lib/python2.5/site-packages/twisted/application/service.py", line
260, in startService
2008-08-22 15:49:19+0200 [-]     service.startService()
2008-08-22 15:49:19+0200 [-]   File
"/usr/lib/python2.5/site-packages/twisted/application/internet.py", line
91, in startService
2008-08-22 15:49:19+0200 [-]     self._port = self._getPort()
2008-08-22 15:49:19+0200 [-]   File
"/usr/lib/python2.5/site-packages/twisted/application/internet.py", line
116, in _getPort
2008-08-22 15:49:19+0200 [-]     *self.args, **self.kwargs)
2008-08-22 15:49:19+0200 [-]   File
"/usr/lib/python2.5/site-packages/twisted/internet/posixbase.py", line
328, in listenTCP
2008-08-22 15:49:19+0200 [-]     p.startListening()
2008-08-22 15:49:19+0200 [-]   File
"/usr/lib/python2.5/site-packages/twisted/internet/tcp.py", line 739, in
startListening
2008-08-22 15:49:19+0200 [-]     raise CannotListenError,
(self.interface, self.port, le)
2008-08-22 15:49:19+0200 [-] twisted.internet.error.CannotListenError:
Couldn't listen on 10.0.0.211:0: (99, 'Cannot assign requested address').



More information about the IPython-user mailing list