pushyrpc / pushy

Easy-as RPC. Zero-server RPC for Python and Java.
http://github.com/pushyrpc/pushy
45 stars 18 forks source link

Help understanding the errors #50

Closed igor-sfiligoi closed 10 years ago

igor-sfiligoi commented 10 years ago

I am trying to use pushy from my laptop, but it throws a weird exception.

Can you please help identifying what's going wrong here? As can be seen below, from command line it works just fine.

Thanks, Igor

PS: Using pushy 0.5.3

sfiligoi@xps15-ws:~$ python Python 2.7.3 (default, Sep 26 2013, 16:38:10) [GCC 4.7.2] on linux2 Type "help", "copyright", "credits" or "license" for more information.

import pushy con=pushy.connect("ssh:uaf-3.t2.ucsd.edu") Traceback (most recent call last): File "", line 1, in File "/home/sfiligoi/.local/lib/python2.7/site-packages/pushy/client.py", line 580, in connect return PushyClient(target, kwargs) File "/home/sfiligoi/.local/lib/python2.7/site-packages/pushy/client.py", line 386, in init self.modules = AutoImporter(self) File "/home/sfiligoi/.local/lib/python2.7/site-packages/pushy/client.py", line 236, in init** remote_compile = self.client.eval("compile") File "/home/sfiligoi/.local/lib/python2.7/site-packages/pushy/client.py", line 475, in eval return self.remote.eval(code, globals, locals) File "/home/sfiligoi/.local/lib/python2.7/site-packages/pushy/protocol/connection.py", line 54, in eval return self.send_request(MessageType.evaluate, args) File "/home/sfiligoi/.local/lib/python2.7/site-packages/pushy/protocol/baseconnection.py", line 321, in send_request m = self.waitForResponse(handler) File "/home/sfiligoi/.local/lib/python2.7/site-packages/pushy/protocol/baseconnection.py", line 426, in waitForResponse m = self.recv() File "/home/sfiligoi/.local/lib/python2.7/site-packages/pushy/protocol/baseconnection.py", line 607, in recv m = self.istream.receive_message() File "/home/sfiligoi/.local/lib/python2.7/site-packages/pushy/protocol/baseconnection.py", line 104, in receive_message return Message.unpack(self.__file) File "/home/sfiligoi/.local/lib/python2.7/site-packages/pushy/protocol/message.py", line 96, in unpack header = read(file, Message.PACKING_SIZE) File "/home/sfiligoi/.local/lib/python2.7/site-packages/pushy/protocol/message.py", line 60, in read raise IOError, "End of file" pushy.client.ClientInitException:

con=pushy.connect("local:")

sfiligoi@xps15-ws:~$ ssh uaf-3.t2.ucsd.edu Last login: Fri Nov 22 15:39:57 2013 from ip68-7-96-65.sd.sd.cox.net [1549] sfiligoi@uaf-3 ~$ python Python 2.4.3 (#1, Feb 22 2012, 16:05:45) [GCC 4.1.2 20080704 (Red Hat 4.1.2-52)] on linux2 Type "help", "copyright", "credits" or "license" for more information.

axw commented 10 years ago

Not sure. I'm a bit confused what that con=pushy.connect("local:") is doing at the end of the message there?

The only thing I can think of at the moment is that perhaps there's a problem with connecting 2.7 to 2.4. I don't have the necessary environment set up at the moment; are you able to test connecting to a more recent Python interpreter on the target machine? That would at least help isolate the issue.

igor-sfiligoi commented 10 years ago

Yep... works nicely against a remote 2.6.6 python.

Uhm.. this incompatibility is annoying, but probably not a show stopper.

Thanks, Igor

PS: Ignore the local: line.... that was just to test it worked at all... sorry, should not have pasted it.