Re: can not connect with R

234 views
Skip to first unread message

Ralph Heinkel

unread,
Jul 10, 2012, 5:05:20 PM7/10/12
to pyrs...@googlegroups.com
Hi Vicky,

Hmm, unfortunately I've very little experience on windows machines. To get a closer picture of your problem: are both  Rserve and pyRserve being run on the same machine?
Could you try to connect using your IP address with the connect-command? Like pyRserve.connect(host='xxx.xxx.xxx.xxx')? Could be really a windows network issue ...

Ralph

Am Montag, 9. Juli 2012 20:05:38 UTC+2 schrieb vicky Liau:
Hi all!
I am new to pyRserve when I tried to find a way to link python with R. 
I am using window7 with python 2.7 and R 2.15.0.
Rpy and Rpy2 do not work in my machine, and I start to try pyRserve, but I can not connect with R machine. The error is:'Connection denied, server not reachable or not accepting connections'. 
It is ok to import pyRserve, but when I tried to connect by conn = pyRserve.connect(), it shows the above error. 
Is there anyway to fix it? Do I miss something?  
Thanks!
Vicky

Am Montag, 9. Juli 2012 20:05:38 UTC+2 schrieb vicky Liau:
Hi all!
I am new to pyRserve when I tried to find a way to link python with R. 
I am using window7 with python 2.7 and R 2.15.0.
Rpy and Rpy2 do not work in my machine, and I start to try pyRserve, but I can not connect with R machine. The error is:'Connection denied, server not reachable or not accepting connections'. 
It is ok to import pyRserve, but when I tried to connect by conn = pyRserve.connect(), it shows the above error. 
Is there anyway to fix it? Do I miss something?  
Thanks!
Vicky

Am Montag, 9. Juli 2012 20:05:38 UTC+2 schrieb vicky Liau:
Hi all!
I am new to pyRserve when I tried to find a way to link python with R. 
I am using window7 with python 2.7 and R 2.15.0.
Rpy and Rpy2 do not work in my machine, and I start to try pyRserve, but I can not connect with R machine. The error is:'Connection denied, server not reachable or not accepting connections'. 
It is ok to import pyRserve, but when I tried to connect by conn = pyRserve.connect(), it shows the above error. 
Is there anyway to fix it? Do I miss something?  
Thanks!
Vicky

Am Montag, 9. Juli 2012 20:05:38 UTC+2 schrieb vicky Liau:
Hi all!
I am new to pyRserve when I tried to find a way to link python with R. 
I am using window7 with python 2.7 and R 2.15.0.
Rpy and Rpy2 do not work in my machine, and I start to try pyRserve, but I can not connect with R machine. The error is:'Connection denied, server not reachable or not accepting connections'. 
It is ok to import pyRserve, but when I tried to connect by conn = pyRserve.connect(), it shows the above error. 
Is there anyway to fix it? Do I miss something?  
Thanks!
Vicky

vicky Liau

unread,
Jul 16, 2012, 3:35:30 PM7/16/12
to pyrs...@googlegroups.com
Dear Ralph,
Thanks for reply. 
I think I found the solution, following this pdf file (http://eco83.econ.unito.it/terna/simoec12/cmap/pyRserve_Rserve%20(difficult).pdf), although it is for Linux and mac. At least, it works on my laptop with window7 system.
Vicky

Ralph Heinkel於 2012年7月10日星期二UTC-7下午2時05分20秒寫道:

Ralph Heinkel

unread,
Jul 17, 2012, 4:01:16 AM7/17/12
to pyrs...@googlegroups.com
Hi Vicky,

good to hear that it now works for you.
I've had a quick look at the PDF that you referred to, it doesn't really explain anything differently from what the pyRserve documentation says. So, what exactly made the difference? Is it that you specified 'localhost' in the connect() call? Would be good to know so I could add it to the docs for other windows users.

cheers

Ralph

vicky Liau

unread,
Jul 17, 2012, 9:55:25 AM7/17/12
to pyrs...@googlegroups.com
Dear Ralph,
At the beginning, I am confused what Rserve is. 
Then, I found it is a package of R, and I realized I need to launch Rserve for connecting pyRserve. (this part may be better to refer to Rserve website: http://www.rforge.net/Rserve/doc.html)
Thanks for your help. pyRserve is great.
Vicky

Kent Johnson

unread,
Jan 9, 2013, 10:13:37 AM1/9/13
to pyrs...@googlegroups.com
I'm also on Windows and found that I needed to specify 'localhost' in the connect() call to start the connection.
Kent

Ralph Heinkel

unread,
Jan 9, 2013, 10:15:36 AM1/9/13
to pyrs...@googlegroups.com
OK, I'll put that into the docs for 0.7.0

Thanks for reminding me about this point.

Ralph
Reply all
Reply to author
Forward
0 new messages