Error import rpy: No module named _rpy2062

Bug #223777 reported by Diwaker Gupta
This bug report is a duplicate of:  Bug #128180: rpy import error at Gusty. Edit Remove
10
Affects Status Importance Assigned to Milestone
rpy (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: python-rpy

Problem: the Python module for the language R doesn't work
How to reproduce:
$ python -c "import rpy"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python2.5/site-packages/rpy.py", line 134, in <module>
    """ % RVERSION)
RuntimeError: No module named _rpy2062

Cause:
R is version 2.6.2 in Hardy, but python-rpy only supports up to 2.6.1. This is broken, and trivially easy to fix.

I'm running Ubuntu 8.04 with all the latest updates.

ProblemType: Bug
Architecture: i386
Date: Mon Apr 28 10:25:00 2008
DistroRelease: Ubuntu 8.04
Package: python-rpy 1.0.1-1ubuntu1
PackageArchitecture: i386
ProcEnviron:
 SHELL=/bin/bash
 PATH=.:/home/username/local/bin:/usr/bin:/home/username/software/forrest//bin:/home/username/software/utils/:/home/username/.kde/bin:/usr/games/:/usr/local/kde/bin:/sbin:/usr/sbin:.:/home/username/local/bin:/usr/bin:/home/username/software/forrest//bin:/home/username/software/utils/:/home/username/.kde/bin:/usr/games/:/usr/local/kde/bin:/sbin:/usr/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/var/lib/gems/1.8/bin/:/var/lib/gems/1.8/bin/
 LANG=en_US.UTF-8
SourcePackage: rpy
Uname: Linux 2.6.24-16-generic i686

Tags: apport-bug
Revision history for this message
Diwaker Gupta (diwaker) wrote :
Revision history for this message
Mike DePalatis (depalatis) wrote :

So... is there a solution? I just ran into this problem, too.

Revision history for this message
Joost Cassee (jcassee) wrote :
Revision history for this message
netzberg (netzberg) wrote :
Revision history for this message
Stefan Schmieta (sschmieta) wrote :

I don't understand why this bug has been open for so long. It is very easy to fix with the existing source package: tighten the build dependency on r-base-dev to r-base-dev (= 2.6.2) and rebuild. That will generate the required _rpy2062 and resolve the problem.

Revision history for this message
Steve Langasek (vorlon) wrote :

This is the same root bug as bug #128180; marking as a duplicate.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.