Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rpy2 Installation issue, windows 7 [duplicate]

I am trying to find solution for my problem, so far not with success.

I am trying to install latest Rpy2 version on my computer. I already have all required programs (R 2.15.1 and 2.7 Python) installed. I am installing Rpy2 (rpy2-2.3.0) trough cmd with command

python setup.py build install

I am getting this traceback:

Traceback (most recent call last):

File "setup.py", line 441, in

[os.path.join('doc', 'source', 'rpy2_logo.png')])],

File "c:\Python27\lib\distutils\core.py", line 152, in setup

dist.run_commands()

File "c:\Python27\lib\distutils\dist.py", line 953, in run_commands

self.run_command(cmd)

File "c:\Python27\lib\distutils\dist.py", line 972, in run_command

cmd_obj.>run()

File "c:\Python27\lib\distutils\command\install.py", line 563, in run

self.run_command('build')

File "c:\Python27\lib\distutils\cmd.py", line 326, in run_command

self.distribution.run_command(command)

File "c:\Python27\lib\distutils\dist.py", line 972, in run_command

cmd_obj.run()

File "c:\Python27\lib\distutils\command\build.py", line 127, in run

self.run_command(cmd_name)

File "c:\Python27\lib\distutils\cmd.py", line 326, in run_command

self.distribution.run_command(command)

File "c:\Python27\lib\distutils\dist.py", line 971, in run_command

cmd_obj.ensure_finalized()

File "c:\Python27\lib\distutils\cmd.py", line 109, in ensure_finalized

self.finalize_options()

File "setup.py", line 152, in finalize_options

config += get_rconfig(r_home, about)

File "setup.py", line 312, in get_rconfig

rc = RConfig.from_string(rconfig, allow_empty = allow_empty)

File "setup.py", line 272, in from_string

  • '\nin string\n' + string)

ValueError: Invalid substring

in string

The same error I get when trying to install with

easy_install rpy2

UPDATE: now the same error shows on the other pc (64bit)

Thanks for help! :D

like image 421
Domagoj Avatar asked Oct 24 '12 18:10

Domagoj


People also ask

Is rpy2 discontinued?

Rpy2 (discontinued, unstable): provide access to the R software environment for statistical computing and graphics.

Do I need to install R for rpy2?

rpy2 will typically require an R version that is not much older than itself. This means that even if your system has R pre-installed, there is a chance that the version is too old to be compaible with rpy2. At the time of this writing, the latest rpy2 version is 2.8 and requires R 3.2 or higher.

What is rpy2 package?

rpy2 is an interface to R running embedded in a Python process.


1 Answers

Gave up on the rpy package. I will recommend PypeR package it is faster, easy to install (easy_install) and enjoyable to use! http://pypi.python.org/pypi/PypeR/

like image 79
Domagoj Avatar answered Oct 17 '22 03:10

Domagoj