Re: [Rpy] Problem with installing rpy2 to Python3

2012-03-25 Thread Yuanda Zhu
Hi Thomas, Please excuse my limited knowledge. I do not quite know how to replace it. Could you please write the full syntax for me? By the way, is this a compatibility problem between Python 3.2.2 and rpy2? Many thanks, Y.Z. On Mon, Mar 26, 2012 at 5:02 AM, Thomas Kluyver wrote: > Hi Yuanda,

Re: [Rpy] Problem with installing rpy2 to Python3

2012-03-25 Thread Thomas Kluyver
Hi Yuanda, You should edit setup.py to use subprocess.check_output() instead of os.popen3(). Note that it's not a direct replacement - popen3 returns a file-like object with a readline method; check_output() returns a string (use s.splitlines() to make a list of lines). For reference, you can see

Re: [Rpy] Problem with installing rpy2 to Python3

2012-03-25 Thread Yuanda Zhu
Hi Thomas, Here is the traceback: Traceback (most recent call last): File "G:\Backup\Setup\Python\Packages\rpy2-2.2.5\setup.py", line 462, in [os.path.join('doc', 'source', 'rpy2_logo.png')])], File "F:\Python32\lib\distutils\core.py", line 148, in setup dist.run_commands() File "F

Re: [Rpy] Problem with installing rpy2 to Python3

2012-03-25 Thread Yuanda Zhu
Hi Niek, Here is the Traceback Traceback (most recent call last): File "G:\Backup\Setup\Python\Packages\rpy2-2.2.5\setup.py", line 462, in [os.path.join('doc', 'source', 'rpy2_logo.png')])], File "F:\Python32\lib\distutils\core.py", line 148, in setup dist.run_commands() File "F:\

Re: [Rpy] Problem with installing rpy2 to Python3

2012-03-25 Thread Thomas Kluyver
On 25 March 2012 20:17, Yuanda Zhu wrote: > AttributeError:'module' object has no attribute 'popen3' Can you post the traceback that goes with this? It's most likely a bug somewhere, as popen3 calls should be replaced using the subprocess module (see http://docs.python.org/library/subprocess.htm

Re: [Rpy] Problem with installing rpy2 to Python3

2012-03-25 Thread Yuanda Zhu
Hi Niek, Actually, after I changed the path of R, the error msg appeared to be *AttributeError:'module' object has no attribute 'popen3'* Do you know how to solve this problem? Many thanks, Y.Z. * *On Sun, Mar 25, 2012 at 7:27 PM, Niek de Klein wrote: > Hi Yuanda, > > I haven't had this problem

Re: [Rpy] Problem with installing rpy2 to Python3

2012-03-25 Thread Yuanda Zhu
Hi Niek, I have tried those, but it seems that the methods in that thread don't work on my situation. Thank you very much, Niek. Y.Z. On Sun, Mar 25, 2012 at 7:27 PM, Niek de Klein wrote: > Hi Yuanda, > > I haven't had this problem myself so I don't know if the solutions given > here: > http:/

Re: [Rpy] Problem with installing rpy2 to Python3

2012-03-25 Thread Niek de Klein
Hi Yuanda, I haven't had this problem myself so I don't know if the solutions given here: http://stackoverflow.com/questions/4924917/trouble-installing-rpy2-on-win7-r-2-12-python-2-5. actually work, but it seems like a solution. Cheers, Niek On Sun, Mar 25, 2012 at 8:47 AM, Yuanda Zhu wrote:

[Rpy] Problem with installing rpy2 to Python3

2012-03-25 Thread Yuanda Zhu
Hi, When I was trying to install rpy2-2.2.5 to Python-3.2.2 in Win7, the error msg said "Tried to guess R's HOME but no R command in the PATH." I am new to programming, so wish you could provide some help. Many thanks, Y.Z. ---