python-rpy installation issues

Bug #89045 reported by CTW
4
Affects Status Importance Assigned to Milestone
rpy (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: python-rpy

I seem to have found two possible issues with the python-rpy package
on Ubuntu 7.04 Feisty Fawn (latest update as of 03/01/2007):

1) The package installs version _rpy2040.so of the library to
/usr/lib/python2.4/site-packages, but the rpy.py looks for
_rpy2041.so.

Here's the error output:
>>> import rpy
RHOME= /usr/lib/R
RVERSION= 2.4.1
RVER= 2041
RUSER= /home/ctw
Loading Rpy version 2041 ..
Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
 File "/usr/lib/python2.5/site-packages/rpy.py", line 112, in <module>
   exec("import _rpy%s as _rpy" % RVER)
 File "<string>", line 1, in <module>
ImportError: No module named _rpy2041

$ ls /usr/lib/python2.4/site-packages/_r*
/usr/lib/python2.4/site-packages/_rpy2040.so
$ ls /usr/lib/python2.5/site-packages/_r*
/usr/lib/python2.5/site-packages/_rpy2040.so

2) rpy.py and the other rpy-related .py files get installed to
/usr/share/pycentral/python-rpy/site-packages/ and not the standard
site-packages directories.
This means that you have to modify your PYTHONPATH before you can
import rpy from python, which seems like a problem.

Please let me know if I should contact the rpy developers directly or
you need more information.

ProblemType: Bug
Date: Thu Mar 1 16:12:27 2007
DistroRelease: Ubuntu 7.04
Uname: Linux kahamac1 2.6.20-9-generic #2 SMP Mon Feb 26 03:01:44 UTC 2007 i686 GNU/Linux

Revision history for this message
veldsla (avelds) wrote :

Same probleme here.

I found a similar bug in debian here: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=404636

It was apperently fixed:
Severity: important;
Found in version rpy/1.0~rc1-2;
Fixed in version rpy/1.0~rc1-4 by Dirk Eddelbuettel <email address hidden>;

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.