{"action":"created","issue":{"url":"https://api.github.com/repos/irmen/Pyrolite/issues/17","labels_url":"https://api.github.com/repos/irmen/Pyrolite/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/irmen/Pyrolite/issues/17/comments","events_url":"https://api.github.com/repos/irmen/Pyrolite/issues/17/events","html_url":"https://github.com/irmen/Pyrolite/issues/17","id":54759655,"number":17,"title":"Run python script using Pyrolite","user":{"login":"lasidaputhunattil","id":10530832,"avatar_url":"https://avatars.githubusercontent.com/u/10530832?v=3","gravatar_id":"","url":"https://api.github.com/users/lasidaputhunattil","html_url":"https://github.com/lasidaputhunattil","followers_url":"https://api.github.com/users/lasidaputhunattil/followers","following_url":"https://api.github.com/users/lasidaputhunattil/following{/other_user}","gists_url":"https://api.github.com/users/lasidaputhunattil/gists{/gist_id}","starred_url":"https://api.github.com/users/lasidaputhunattil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lasidaputhunattil/subscriptions","organizations_url":"https://api.github.com/users/lasidaputhunattil/orgs","repos_url":"https://api.github.com/users/lasidaputhunattil/repos","events_url":"https://api.github.com/users/lasidaputhunattil/events{/privacy}","received_events_url":"https://api.github.com/users/lasidaputhunattil/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-19T12:47:11Z","updated_at":"2015-01-19T20:55:49Z","closed_at":null,"body":"Hi,\r\n\r\nI have a simple python script in my local machine, which returns a string. I want to run this script from java application and get the return value. I'm trying to do this using Pyrolite. I downloaded the jar files and added them to my java class path. But I'm not able to run the script.\r\n\r\nI got the below sample code from readme.txt\r\n\r\nNameServerProxy ns = NameServerProxy.locateNS(null);\r\nPyroProxy remoteobject = new PyroProxy(ns.lookup(\"Your.Pyro.Object\"));\r\nObject result = remoteobject.call(\"pythonmethod\", 42, \"hello\", new int[]{1,2,3});\r\nString message = (String)result;  // cast to the type that 'pythonmethod' returns\r\nSystem.out.println(\"result message=\"+message);\r\nremoteobject.close();\r\nns.close();\r\n\r\n\r\nBut this is not working for me. My system configuration is\r\n\r\nOS: Windows 8\r\nJDK: jdk1.7.0_51\r\nPython: 2.6\r\n\r\nPlease help me with this.  "},"comment":{"url":"https://api.github.com/repos/irmen/Pyrolite/issues/comments/70559025","html_url":"https://github.com/irmen/Pyrolite/issues/17#issuecomment-70559025","issue_url":"https://api.github.com/repos/irmen/Pyrolite/issues/17","id":70559025,"user":{"login":"irmen","id":1771820,"avatar_url":"https://avatars.githubusercontent.com/u/1771820?v=3","gravatar_id":"","url":"https://api.github.com/users/irmen","html_url":"https://github.com/irmen","followers_url":"https://api.github.com/users/irmen/followers","following_url":"https://api.github.com/users/irmen/following{/other_user}","gists_url":"https://api.github.com/users/irmen/gists{/gist_id}","starred_url":"https://api.github.com/users/irmen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/irmen/subscriptions","organizations_url":"https://api.github.com/users/irmen/orgs","repos_url":"https://api.github.com/users/irmen/repos","events_url":"https://api.github.com/users/irmen/events{/privacy}","received_events_url":"https://api.github.com/users/irmen/received_events","type":"User","site_admin":false},"created_at":"2015-01-19T20:55:49Z","updated_at":"2015-01-19T20:55:49Z","body":"You're not very helpful. It's impossible to assist if you don't provide extra info such as:\r\n\r\n- the exact error message you're getting including stacktrace, if any\r\n- what did you expect to happen? what did you try by yourself already?\r\n- how does your server code look like and how are you running everything?\r\n\r\np.s. while Pyro still supports it, Python 2.6 is very old. Any particular reason you're still using this old version instead of 2.7 or 3.x?\r\n"}}