On 18 July 2006 at 15:41, Keith Hellman wrote: | On Tue, Jul 18, 2006 at 02:44:47PM -0500, Dirk Eddelbuettel wrote: | > On 18 July 2006 at 12:35, Keith Hellman wrote: | > | Package: python-rpy | > | Version: 0.99.2-4 | > | Severity: important | > | | > | The rpy python modules appear to be installed into the pycentral | > | tree, but they are not linked to the pythonX.Y/site-packages | > | directories. | > | > Do they have to be? Is that specified somewhere? | | I'm not familiar enough with either the new python policy to know if and | where it is specified. I simply noticed that the latest Numeric | packages (using dh_pycentral have the links).
I'll need to learn more as well, I suppose... | What I do know is that my python is not finding the rpy modules, because | it doesn't look in /usr/share/pycentral/blah/blah/blah for modules. It | sounds (from what limited I've read about pycentral) that it (pycentral) | is supposed to make these links *for* the python module packager. It | doesn't appear to be happening in the case of rpy. I followed the standard recipe from the Debian Wiki when I converted the package, and as it still worked afterwards ... You may well have found a geniune bug in that the old files are being used instead. We'll see. | Do you have RPY in your PYTHONPATH? Perhaps for development reasons? No, I basically have zero env.vars set for anything. | If you uninstall python-rpy* do you have rpy files still in | /usr/lib/pythonX.Y/site-packages/ ? Perhaps they are remnants of a | previous install (I think this is in fact how stumbled across this, | there were residual rpy files in site-packages that didn't like the new | R version string). That seems very likely: Script started on Tue Jul 18 16:54:46 2006 [EMAIL PROTECTED]:~$ dpkg -l | grep rpy ii python-rpy 0.99.2-4 Python interface to the GNU R language and environment [EMAIL PROTECTED]:~$ wajig purge python-rpy (Reading database ... 158946 files and directories currently installed.) Removing python-rpy ... [EMAIL PROTECTED]:~$ ls -l /usr/lib/python2.3/site-packages/rpy* -rw-r--r-- 1 root root 10392 Apr 10 17:24 [00m/usr/lib/python2.3/site-packages/rpy.pyc -rw-r--r-- 1 root root 10392 May 25 21:22 [00m/usr/lib/python2.3/site-packages/rpy.pyo -rw-r--r-- 1 root root 1688 Apr 10 17:24 [00m/usr/lib/python2.3/site-packages/rpy_io.pyc -rw-r--r-- 1 root root 1688 May 25 21:22 [00m/usr/lib/python2.3/site-packages/rpy_io.pyo -rw-r--r-- 1 root root 859 Apr 10 17:24 [00m/usr/lib/python2.3/site-packages/rpy_options.pyc -rw-r--r-- 1 root root 859 May 25 21:22 [00m/usr/lib/python2.3/site-packages/rpy_options.pyo -rw-r--r-- 1 root root 5685 May 3 17:35 [00m/usr/lib/python2.3/site-packages/rpy_tools.pyc -rw-r--r-- 1 root root 5685 May 25 21:22 [00m/usr/lib/python2.3/site-packages/rpy_tools.pyo -rw-r--r-- 1 root root 176 Apr 10 17:24 [00m/usr/lib/python2.3/site-packages/rpy_version.pyc -rw-r--r-- 1 root root 176 May 25 21:22 [00m/usr/lib/python2.3/site-packages/rpy_version.pyo -rw-r--r-- 1 root root 1072 Apr 10 17:24 [00m/usr/lib/python2.3/site-packages/rpy_wintools.pyc -rw-r--r-- 1 root root 1072 May 25 21:22 [00m/usr/lib/python2.3/site-packages/rpy_wintools.pyo [EMAIL PROTECTED]:~$ python Python 2.3.5 (#2, Jun 13 2006, 23:12:55) [GCC 4.1.2 20060613 (prerelease) (Debian 4.1.1-4)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from rpy import * RHOME= /usr/lib/R RVERSION= 2.3.1 RVER= 2031 RUSER= /home/edd Loading Rpy version 2031 .. Traceback (most recent call last): File "<stdin>", line 1, in ? File "/usr/lib/python2.3/site-packages/rpy.py", line 112, in ? File "<string>", line 1, in ? ImportError: No module named _rpy2031 >>> [EMAIL PROTECTED]:~$ exit exit Script done on Tue Jul 18 16:59:02 2006 | Well, now I feel like a putz for submitting a bug-report. I honestly | didn't know what the best course was (I didn't know there was a No worries. I also have sent in non-bug reports on occassion... | debian-python list), and I guess I thought Emailing the maintainer | directly would be a little presumptuous. If you'd like me to delete | (nullify? close? whack-with-a-big-stick?) the bug report I'm happy to do | so, didn't know it was the wrong course to take. | | Sorry for the trouble. Ah, you're not dismissed yet :) We first need to get to the bottom of this. I now feel I really am missing something in the package. A quick glance reveals that python-numeric has a working postinst in /var/lib/dpkg/info/python-numeric.postinst: #!/bin/sh set -e # Automatically added by dh_pycentral if which pycentral >/dev/null 2>&1; then pycentral pkginstall python-numeric fi # End automatically added section whereas python-rpy doesn't. I may have a leftover flag preventing the automatic generation of that stub... A quick glance at rpy's debian/rules show that I do of course call dh_pycentral. Hm. Not quite there yet... But we'll get there. Thanks, Dirk -- Hell, there are no rules here - we're trying to accomplish something. -- Thomas A. Edison -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]