[IPython-dev] [IPython-user] IPython1 Saw alpha1 is released

Glen W. Mabey Glen.Mabey at swri.org
Wed May 2 10:11:07 EDT 2007


Hello,

On Tue, Apr 24, 2007 at 11:16:10AM -0600, Brian Granger wrote:
> In prepration for the IPython sprint this weeked, we are pleased to
> announce the first alpha release of IPython1 "Saw".  This released has
> been 6 months in the making and there are many new things.

I'm using 'saw' for the first time.

It seems that when a remote variable is None, then performing a pull() on
it fails.


In [2]:ipc = kernel.RemoteController(('127.0.0.1',10105))

In [3]:ipc.push
ipc.push     ipc.pushAll  

In [3]:ipc.push( 0, avar=None )
Out[3]:[None]

In [4]:ipc.pull( 'avar' )
---------------------------------------------------------------------------
<class 'ipython1.kernel.error.InvalidEngineID'>Traceback (most recent
call last)

/home/gmabey/src/R9619_dev_acqlibweb/Projects/R9619_NChannelDetection/NED/<ipython console> in <module>()

/usr/local/lib/python2.5/site-packages/ipython1/kernel/multienginexmlrpc.py in pull(self, targets, *keys)
    548         self._checkClientID()
    549         localBlock = self._reallyBlock()
--> 550         result = self._executeRemoteMethod(self._server.pull, self._clientID, localBlock, targets, *keys)
    551         if not localBlock:
    552             result = PendingResult(self, result)

/usr/local/lib/python2.5/site-packages/ipython1/kernel/multienginexmlrpc.py in _executeRemoteMethod(self, f, *args)
    380         try:
    381             rawResult = f(*args)
--> 382             result = self._unpackageResult(rawResult)
    383         except error.InvalidClientID:
    384             self._getClientID()

/usr/local/lib/python2.5/site-packages/ipython1/kernel/multienginexmlrpc.py in _unpackageResult(self, result)
    389     def _unpackageResult(self, result):
    390         result = pickle.loads(result.data)
--> 391         return self._returnOrRaise(result)
    392 
    393     def _returnOrRaise(self, result):

/usr/local/lib/python2.5/site-packages/ipython1/kernel/multienginexmlrpc.py in _returnOrRaise(self, result)
    393     def _returnOrRaise(self, result):
    394         if isinstance(result, failure.Failure):
--> 395             result.raiseException()
    396         else:
    397             return result

/usr/local/stow/twisted-20070319_svn-py2.5/lib/python2.5/site-packages/twisted/python/failure.py in raiseException(self)
    301         information if available.
    302         """
--> 303         raise self.type, self.value, self.tb
    304 
    305 

<class 'ipython1.kernel.error.InvalidEngineID'>: targets argument is not an int, list of ints or 'all'
> /usr/local/stow/twisted-20070319_svn-py2.5/lib/python2.5/site-packages/twisted/python/failure.py(303)raiseException()
    302         """
--> 303         raise self.type, self.value, self.tb
    304 


If not a bug, this is at least a change in behavior from chainsaw, isn't
it?  I couldn't see anything to that effect in the changelog.

Thanks,
Glen



More information about the IPython-dev mailing list