[IPython-user] ipython 0.9.rc1 problem with manual example during import, using MultiEngineClient
mark starnes
m.starnes05@imperial.ac...
Thu Sep 4 04:44:27 CDT 2008
Hello again,
Further to the request below, more problems occur for me later in the
manual. If I execute:
In [1]: from ipython1.kernel import client
In [2]: tc = client.TaskClient(('127.0.0.1',10105))
In [3]: for n in range(1000):
tasklist.append(client.Task("a=%i"%n, pull="a"))
In [4]: taskids = [ tc.run(t) for t in tasklist ]
I get:
---------------------------------------------------------------------------
Fault Traceback (most recent call last)
/home/m.starnes/Documents/phd/meetings/85_/<ipython console> in <module>()
/usr/local/lib64/python2.5/site-packages/ipython1-0.3pre3-py2.5.egg/ipython1/kernel/taskclient.pyc
in run(self, task)
84
85 def run(self, task):
---> 86 return blockingCallFromThread(self.task_controller.run,
task)
87
88 def get_task_result(self, taskid, block=False):
/usr/local/lib64/python2.5/site-packages/ipython1-0.3pre3-py2.5.egg/ipython1/kernel/twistedutil.pyc
in blockingCallFromThread(f, *a, **kw)
66 @raise: any error raised during the callback chain.
67 """
---> 68 return
twisted.internet.threads.blockingCallFromThread(reactor, f, *a, **kw)
69
70 else:
/usr/local/lib64/python2.5/site-packages/Twisted-8.1.0-py2.5-linux-x86_64.egg/twisted/internet/threads.pyc
in blockingCallFromThread(reactor, f, *a, **kw)
81 result = queue.get()
82 if isinstance(result, failure.Failure):
---> 83 result.raiseException()
84 return result
85
/usr/local/lib64/python2.5/site-packages/Twisted-8.1.0-py2.5-linux-x86_64.egg/twisted/web/xmlrpc.pyc
in parseResponse(self, contents)
313 return
314 try:
--> 315 response = xmlrpclib.loads(contents)
316 except:
317 deferred, self.deferred = self.deferred, None
/usr/lib64/python2.5/xmlrpclib.pyc in loads(data, use_datetime)
1130 p.feed(data)
1131 p.close()
-> 1132 return u.close(), u.getmethodname()
1133
1134
/usr/lib64/python2.5/xmlrpclib.pyc in close(self)
785 raise ResponseError()
786 if self._type == "fault":
--> 787 raise Fault(**self._stack[0])
788 return tuple(self._stack)
789
Fault: <Fault 8001: 'function run not found'>
Any help would be appreciated.
Best regards,
Mark.
mark starnes wrote:
> Hi everyone,
>
> I'm following the instructions in the Aug 29 2008 manual for parallel
> computing, and have been having some problems; reading back through the
> posts, I've noticed nothing to help (please, correct me if I'm wrong!).
>
> If I start my cluster with:
>
> $ ipcluster -n 4 &
>
> Then, with IPython, 0.9.rc1:
>
> In [1]: from IPython.kernel import client
>
> In [2]: tc = client.TaskClient()
>
> I get:
> ---------------------------------------------------------------------------
>
> ... traceback information....
>
> ValueError: not a furl or a file containing a furl:
> /home/m.starnes/.ipython/ipcontroller-tc.furl
>
>
> If I follow the instructions printed by the shell during cluster startup:
>
> In [1]: from ipython1.kernel import client # Differs from the manual
>
> In [2]: mec = client.MultiEngineClient(('127.0.0.1',10105)) # Differs.
>
> All seems well. The same occurs when I follow the 'Quickstart Task
> Farming' section:
>
> In [3]: tc = client.TaskClient(('127.0.0.1',10105))
>
>
> is fine, but
>
> In [3]: tc = client.TaskClient() # as per the manual.
>
> returns:
>
> TypeError: TaskClient() takes exactly 1 argument (0 given)
>
>
> I'm wondering, have I made a mistake with my installation?
>
>
> Best regards,
>
> Mark.
>
More information about the IPython-user
mailing list