R 2.11.1 compatibility issue?

Asked by MikeM

Running 32-bit intel maverick in xubuntu, with these versions of python-rpy and r-base:

ii python-rpy 1.0.3-14 Python interface to the GNU R language and environ
ii r-base 2.11.1-2 GNU R statistical computation and graphics system

In python code, "from rpy import r as R" is failing for me as follows:

Traceback (most recent call last):
  File "compute_error.py", line 5, in <module>
    from rpy import r as R
  File "/usr/lib/python2.6/dist-packages/rpy.py", line 134, in <module>
    """ % RVERSION)
RuntimeError: No module named _rpy2111

      RPy module can not be imported. Please check if your rpy
      installation supports R 2.11.1. If you have multiple R versions
      installed, you may need to set RHOME before importing rpy. For
      example:

      >>> from rpy_options import set_options
      >>> set_options(RHOME='c:/progra~1/r/rw2011/')
      >>> from rpy import *

Indeed, there seems to be no such module _rpy2111 in my python-rpy package, although I do have this file:

/usr/lib/python2.6/dist-packages/_rpy2110.so

Has python-rpy gotten out of sync with the r-base package?

(On a related note, I tried downloading rpy (1.0.3) from sourceforge to build it myself, but the file "Rdevices.h" cannot be found, even though I have the current r-base-dev (2.11.1-2). Oddly, r-base-dev does not seem to have that or any other header files, and I can't find a file of that name at packages.ubuntu.com. I suppose I can move on to downloading the R source, but this starts to defeat the purpose of using apt I think.)

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu rpy Edit question
Assignee:
No assignee Edit question
Solved by:
Jérémy Subtil
Solved:
Last query:
Last reply:
Revision history for this message
Jérémy Subtil (bigmadwolf) said :
#1

Hi, this is a packaging bug introduced in Debian. The fix has been released in Debian few months ago, but it has not been synced in Ubuntu… So I reported the bug #667795.

Revision history for this message
MikeM (jmmacpherson) said :
#2

Hi Jérémy --

Thanks much. I take it from your activity on 667795 that the remedy is to update the maverick python-rpy to 1.0.3-15 from 1.03.-14. I imagine that this update will happen when folks with the necessary permissions have the bandwidth for it. If this is accurate, would you expect the fix to be in place within, perhaps, one week's time?

Thanks again, Yours, Mike

Revision history for this message
Best Jérémy Subtil (bigmadwolf) said :
#3

If you haven't done it yet, I advise you to click the "This bug affects me too" link at the top of the bug #667795 page. This would increase the bug "heat", and so it's more likely to get the developpers' attention.

I'm not able to provide any official fix, but I think I've completed the whole procedure to expect the bug to get fixed. However, as a temporary workaround, I've just prepared an Ubuntu python-rpy 1.0.3-15 package from Debian sources: it will be available on my PPA once Launchpad will build the binary packages from what I uploaded. I'll try to remember to tell you once it will be alright. ;)

Revision history for this message
MikeM (jmmacpherson) said :
#4

Hi Jérémy --

I added myself as you suggested. Merci beaucoup for your help.

Yours, Mike

Revision history for this message
Jakob (jakob-g) said :
#5

HI there,

I have exactly the dame problem. I tried to install an older version of R (v 2.10.1), then I installed rpy with all its dependencies using synaptic (I have ubuntu 10.10). Once I import rpy in python I get:

Traceback (most recent call last):
  File "<pyshell#6>", line 1, in <module>
    import rpy
  File "/usr/lib/python2.6/dist-packages/rpy.py", line 134, in <module>
    """ % RVERSION)
RuntimeError: No module named _rpy2101

      RPy module can not be imported. Please check if your rpy
      installation supports R 2.10.1. If you have multiple R versions
      installed, you may need to set RHOME before importing rpy. For
      example:

      >>> from rpy_options import set_options
      >>> set_options(RHOME='c:/progra~1/r/rw2011/')
      >>> from rpy import *

How do I solve it? I thought that rpy 1.0.3-14 supported R2.10.1.

Any suggestion?
I have reported the bug as you suggested above!

Thanks!

Revision history for this message
Jérémy Subtil (bigmadwolf) said :
#6

I've finally uploaded in my PPA the python-rpy 1.0.3-15 Debian package, as commented in bug #667795. ;)

Revision history for this message
MikeM (jmmacpherson) said :
#7

Hi guys --

Thanks Jérémy!

In the meantime, my workaround was to point at the ubuntu repos hosted by CRAN, eg:

http://cran.cnr.berkeley.edu/bin/linux/ubuntu/

They have a functioning rpy, in addition to a more recent version of R than maverick's.

Cheers, Mike

Revision history for this message
Jakob (jakob-g) said :
#8

Hi friend!

I've got good news for you, you'll like it for sure! Read it here please http://zhukov.bobricemusic.com

Best Wishes, jakob grazzini

Sent from Mail for Windows 10

Revision history for this message
Jakob (jakob-g) said :
#9

Hello,

Here are some news since we've met last time, just read them here http://bit.do/dxrfh

Warmest, jakob grazzini

From: question131480 [mailto:<email address hidden>]
Sent: Tuesday, June 27, 2017 2:14 AM
To: <email address hidden>
Subject: Round 2 or tapout?

Clinkz' ult isn't technically a passive but it basically is.

I think his aghs upgrade should turn a sacrificed creep into a demon that he can control for the duration of the buff. Not just a dominated creep, but a demonic version of the creep he sacrificed that had a different set of skills. It would be like a weaker warlock golem that had many versions.

Sent from Mail for Windows 10

Revision history for this message
Jakob (jakob-g) said :
#10

Greetings!

I've just come across a great thing and in fact it's just so cool, that I thought I need to share this with you) here, take a look http://www.shoponline2.com/indigenous.php?6362

Speak to you later, jakob grazzini

Revision history for this message
Jakob (jakob-g) said :
#11

Yo!

There are several prospective Galaxy Note 8 designs circulating the web, but no indication as to http://hoonrhee.org/moreoverx.php?abaa

Yours faithfully, jakob grazzini

From: question131480 [mailto:<email address hidden>]
Sent: Monday, July 17, 2017 6:08 PM
To: <email address hidden>
Subject: How air is made.

First off i did not suggest to remove AB completely, rather to remove the default one that does not take any slots which, some know, was not present when the game was released and some time after release. If you think about it this means that the game was not ballanced around the assumption that all ESFs have more or less AB. Case in point flares, FS and composite armour have existed before AB was made a default ability.

The reason it was made a default ability was not mainly to avoid lock ons and flack, rather to allow every build (even those that use lock ons) to dogfight. We all know how that turned out and it's the reason why this thread was even made.

Revision history for this message
Jakob (jakob-g) said :
#12

Hi friend!

I've been looking for some nice stuff and have run into those amazing things, just take a look http://drcd.net/target.php?1GDcmX3t8

Warm regards, jakob grazzini

Revision history for this message
Jakob (jakob-g) said :
#13

Hey friend,

Check out those attractive things I've just picked for you, you'll be amazed))) Here, check this out http://www.ccsspku.org/wp-content/themes/twentysixteen/js/scared.php?UE9xdWVzdGlvbjEzMTQ4MEBhbnN3ZXJzLmxhdW5jaHBhZC5uZXQ-

Sincerely, jakob grazzini