Hi,

I am struggling setting up RPy2 with Windows.

My config: Win7 32 bit *without admin right* (I understood they are not
required, am I wrong?)
- R 14.2 (C:\R\R-2.14.2\bin\i386\R.exe)
- Portable Python 2.7 (C:\PortablePython\App\python.exe)
- rpy2-2.3.0beta1.tar.gz

I cannot modify environment keys from Windows GUI, but I can set them from
command line ( for instance set PATH=%PATH%;C:\R\R-2.14.2\bin\i386),
however it is not permanent.

Using the link provided earlier on this mailing list
https://bitbucket.org/lgautier/rpy2/issue/95/automagic-settings-for-windows ,
I tried to use both provided scripts with little success :

The first one:
*C:\Temp\rpy2-2.3.0beta1>c:\PortablePython\App\python.exe set_Rvars_win32.py
*
returned
     TypeError: _get_reg_vars() takes at least 2 arguments (1 given)
Tring to look below the hood, this method is called from line 27:
    reg_vars = self._get_reg_vars()
and defined from line 111:
    def _get_reg_vars(self, hive, key=R_KEY)
The hove arguments seemed missing so I tried to pass MACHINE_HIVE and
USER_HIVE with no success:
    TypeError: The object is not a PyHKEY object


The second one:
*C:\PortablePython\App\python.exe setup.py build --r-home
C:\R\R-2.14.2\bin\i386 install*
returns
    Traceback (most recent call last):
  File "setup.py", line 463, in <module>
    'rpy2': ['doc/source/rpy2_logo.png', ]}
  File "C:\PortablePython\App\lib\distutils\core.py", line 152, in setup
    dist.run_commands()
  File "C:\PortablePython\App\lib\distutils\dist.py", line 953, in
run_commands
    self.run_command(cmd)
  File "C:\PortablePython\App\lib\distutils\dist.py", line 972, in
run_command
    cmd_obj.run()
  File "C:\PortablePython\App\lib\distutils\command\build.py", line 127, in
run
    self.run_command(cmd_name)
  File "C:\PortablePython\App\lib\distutils\cmd.py", line 326, in
run_command
    self.distribution.run_command(command)
  File "C:\PortablePython\App\lib\distutils\dist.py", line 971, in
run_command
    cmd_obj.ensure_finalized()
  File "C:\PortablePython\App\lib\distutils\cmd.py", line 109, in
ensure_finaliz
ed
    self.finalize_options()
  File "setup.py", line 158, in finalize_options
    raise SystemExit("Error: R >= 2.8 required (and R told '%s')."
%'.'.join(rve
rsion))
TypeError: sequence item 0: expected string, int found

It seems that the R versions does not get retrieved.

Would you be kind enough to advise?
Regards,
Sam


On Fri, Oct 19, 2012 at 11:07 AM, Shane Carey <careys...@gmail.com> wrote:

> Hi,
>
> Thanks for your help, I have now managed to get Rpy2 installed, but now
> when I run the program. I get the follwoing error:
>   raise RuntimeError("Unable to locate R.dll within C:\PROGRA~1\R")
> My R_HOME is this "C:/PROGRA~1/R/R-215~1.0" but I dont know where to
> change it.
>
> Thanks for the help, its great.
> Cheers
>
>
>
>
> On Thu, Oct 18, 2012 at 6:10 PM, Laurent Gautier <lgaut...@gmail.com>wrote:
>
>>  Did you check the following ?
>>
>> https://bitbucket.org/lgautier/rpy2/issue/95/automagic-settings-for-windows
>>
>>
>> On 2012-10-18 17:34, Shane Carey wrote:
>>
>> Already tried that.
>>
>> On Thu, Oct 18, 2012 at 4:33 PM, Paul Hobson <pmhob...@gmail.com> wrote:
>>
>>> Add the path to the R executable to your system path.
>>>
>>> See here for instructions:
>>> http://www.computerhope.com/issues/ch000549.htm#0
>>>
>>> On Thu, Oct 18, 2012 at 7:57 AM, Shane Carey <careys...@gmail.com>
>>> wrote:
>>> > Hi,
>>> >
>>> > I have downloaded Rpy2, but when I go to install it, I get the
>>> following
>>> > error,
>>> > Error Tried to guess R's HOME but no R command in the PATH
>>> > Any idea about this?
>>> > Many thanks for your help.
>>> > Cheers
>>> > --
>>> > Shane
>>> >
>>> >
>>> ------------------------------------------------------------------------------
>>> > Everyone hates slow websites. So do we.
>>> > Make your web apps faster with AppDynamics
>>> > Download AppDynamics Lite for free today:
>>> > http://p.sf.net/sfu/appdyn_sfd2d_oct
>>> > _______________________________________________
>>> > rpy-list mailing list
>>> > rpy-list@lists.sourceforge.net
>>> > https://lists.sourceforge.net/lists/listinfo/rpy-list
>>> >
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Everyone hates slow websites. So do we.
>>> Make your web apps faster with AppDynamics
>>> Download AppDynamics Lite for free today:
>>> http://p.sf.net/sfu/appdyn_sfd2d_oct
>>> _______________________________________________
>>> rpy-list mailing list
>>> rpy-list@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/rpy-list
>>>
>>
>>
>>
>> --
>> Shane
>>
>>
>> ------------------------------------------------------------------------------
>> Everyone hates slow websites. So do we.
>> Make your web apps faster with AppDynamics
>> Download AppDynamics Lite for free today:http://p.sf.net/sfu/appdyn_sfd2d_oct
>>
>>
>>
>> _______________________________________________
>> rpy-list mailing 
>> listrpy-list@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/rpy-list
>>
>>
>>
>
>
> --
> Shane
>
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_sfd2d_oct
> _______________________________________________
> rpy-list mailing list
> rpy-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/rpy-list
>
>
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_nov
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list

Reply via email to