[Piuparts-devel] Bug#705847: python-rpy fails to import

Dirk Eddelbuettel edd at debian.org
Sat Apr 20 22:10:52 UTC 2013


On 20 April 2013 at 17:27, Dave Steele wrote:
| Package: python-rpy
| Version: 1.0.3-24
| Severity: important
| thanks
| 
| The latest version of the python rpy module in sid fails to import.
| 
| $ python
| Python 2.7.3 (default, Mar  4 2013, 14:57:34)
| [GCC 4.7.2] on linux2
| Type "help", "copyright", "credits" or "license" for more information.
| >>> import rpy
| Traceback (most recent call last):
|   File "<stdin>", line 1, in <module>
|   File "/usr/lib/python2.7/dist-packages/rpy.py", line 134, in <module>
|     """ % RVERSION)
| RuntimeError: /usr/lib/python2.7/dist-packages/_rpy3000.so: undefined
| symbol: Rf_PrintWarnings
| 
|       RPy module can not be imported. Please check if your rpy
|       installation supports R 3.0.0. 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 *
| 

That doesn't seem to be it:

root at max:/# python 
Python 2.7.3 (default, Mar  5 2013, 01:19:40) 
[GCC 4.7.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import rpy
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/dist-packages/rpy.py", line 134, in <module>
    """ % RVERSION)
RuntimeError: /usr/lib/python2.7/dist-packages/_rpy3000.so: undefined symbol: Rf_PrintWarnings

      RPy module can not be imported. Please check if your rpy
      installation supports R 3.0.0. 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 *
      
      
>>> from rpy_options import set_options
>>> set_options(RHOME='/usr/lib/R')                                                                                                                            
>>> from rpy import *
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/dist-packages/rpy.py", line 134, in <module>
    """ % RVERSION)
RuntimeError: /usr/lib/python2.7/dist-packages/_rpy3000.so: undefined symbol: Rf_PrintWarnings

      RPy module can not be imported. Please check if your rpy
      installation supports R 3.0.0. 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 *
      
      
>>> 


ie it still fails.

I was a little afraid of this.  RPy has _long_ been dead. I even patched it
for (IIRC) R 2.10 when the original version regexp could not deal with two digits.

Could you spend some time on it?  I don't personally use it, and as we have
RPy2 actively maintained, would otherwise suggest to just drop it...
 
| >>>
| 
| 
| This error message is discussed upstream, in
| 
|    http://sourceforge.net/mailarchive/forum.php?thread_name=513E13A1.5040008%40gmail.com&forum_name=rpy-list

That thread is about RPy2, not RPy.  

I suspect that R 3.0.0 simply removed Rf_PrintWarnings and we'd have to
recode this.

Dirk

-- 
Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com



More information about the Piuparts-devel mailing list