Hi Bob, 

could you checkout 

    http://codespeak.net/svn/pypy/branch/bugfix-0.9.0 

change to the checked out directory and perform your test below 
again?  This is a vanilla 0.9.0 with debugging info enabled.
It creates debug files in /tmp/execnet-debug-PROCESS-ID, one
for the client and for the spawned site.  Could you forward
the contents of these files? 

best, 

holger

On Thu, Jan 31, 2008 at 16:29 -0500, Bob Kuehne wrote:
> hi gang,
> 
> i first saw holger present py.execnet at pycon a few years back, and  
> have been waiting to use this cool tool. so now i'm on it, and i've  
> got a problem. i'm running this on two macs, both running os x 10.5.1.  
> i've installed py via easy_install, so i've got a luverly egg, and  
> here's my script that i'm trying to just test with:
> 
> --
> import py
> gw = py.execnet.SshGateway( "localhost" )
> channel = gw.remote_exec( 'channel.send( [ [ False, True, False,  
> 0, ] ] )' )
> print channel.receive()
> channel.close()
> gw.exit()
> --
> 
> so, on mac numero 1, running python 2.5.1, i see the output i'd expect:
> 
> --
> Python 2.5.1 (r251:54863, Oct  5 2007, 21:08:09)
> [GCC 4.0.1 (Apple Inc. build 5465)] on darwin
> Type "help", "copyright", "credits" or "license" for more information.
>  >>> import py
>  >>> gw = py.execnet.SshGateway( "localhost" )
>  >>> channel = gw.remote_exec( 'channel.send( [ [ False, True, False,  
> 0, ] ] )' )
>  >>> print channel.receive()
> [[False, True, False, 0]]
>  >>> channel.close()
>  >>> gw.exit()
> --
> 
> but on another mac, also python 2.5.1, i see the same, but the  
> 'channel.receive()' is hung. if i break there (control-c), i get the  
> following:
> 
> --
> Python 2.5.1 (r251:54863, Oct  9 2007, 20:39:46)
> [GCC 4.0.1 (Apple Inc. build 5465)] on darwin
> Type "help", "copyright", "credits" or "license" for more information.
>  >>> import py
>  >>> gw = py.execnet.SshGateway( "localhost" )
>  >>> channel = gw.remote_exec( 'channel.send( [ [ False, True, False,  
> 0, ] ] )' )
>  >>> print channel.receive()
> ^CKilled by signal 2.
> Traceback (most recent call last):
>    File "<stdin>", line 1, in <module>
>    File "/Library/Python/2.5/site-packages/py-0.9.0-py2.5.egg/py/ 
> execnet/channel.py", line 172, in receive
>      x = queue.get()
>    File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
> python2.5/Queue.py", line 165, in get
>      self.not_empty.wait()
>    File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
> python2.5/threading.py", line 214, in wait
>      waiter.acquire()
> KeyboardInterrupt
> --
> 
> now, the question is what's different. and it's at this point that i  
> wave my arms and go, wtf? i really don't know, but i'm wondering aloud  
> if anyone else has seen this sort of behavior, and if so, what they  
> might have encountered or changed to get it to be better behaved.
> 
> thanks,
> bob
> 
> 
> _______________________________________________
> py-dev mailing list
> py-dev@codespeak.net
> http://codespeak.net/mailman/listinfo/py-dev
> 

-- 
Holger Krekel - freelance manager and programmer 
merlinux GmbH: http://merlinux.de 
py.test: http://pytest.org 
py lib: http://pylib.org 
PyPy: http://codespeak.net/pypy 
_______________________________________________
py-dev mailing list
py-dev@codespeak.net
http://codespeak.net/mailman/listinfo/py-dev

Reply via email to