I tried to include use rpy within a Python script that runs on a mod_python 
Apache server. Upon import with from rpy import *, I get

RPy_Exception: R Function "get" not found

The full error stack trace is pasted below. Any ideas? There was a similar post 
concerning django, with the same error message, filed as (rpy-Bugs-1772975).

I am running rpy version 1.0.4 with R version 2.7.0 (2008-04-22) and Python 
2.5.2 on Debian Linux.

Christof



Traceback (most recent call last):

   File "/usr/lib/python2.5/site-packages/mod_python/importer.py", line 1537, 
in 
HandlerDispatch
     default=default_handler, arg=req, silent=hlist.silent)

   File "/usr/lib/python2.5/site-packages/mod_python/importer.py", line 1229, 
in 
_process_target
     result = _execute_target(config, req, object, arg)

   File "/usr/lib/python2.5/site-packages/mod_python/importer.py", line 1128, 
in 
_execute_target
     result = object(arg)

   File "/usr/lib/python2.5/site-packages/mod_python/publisher.py", line 204, 
in 
handler
     module = page_cache[req]

   File "/usr/lib/python2.5/site-packages/mod_python/importer.py", line 1059, 
in 
__getitem__
     return import_module(req.filename)

   File "/usr/lib/python2.5/site-packages/mod_python/importer.py", line 296, in 
import_module
     log, import_path)

   File "/usr/lib/python2.5/site-packages/mod_python/importer.py", line 680, in 
import_module
     execfile(file, module.__dict__)

   File "/var/www/testing/myscript.py", line 19, in <module>
     from rpy import *

   File "/usr/lib/python2.5/site-packages/rpy.py", line 346, in <module>
     r = R()

   File "/usr/lib/python2.5/site-packages/rpy.py", line 289, in __init__
     self.get = _rpy.get_fun('get')  # this must happen before any calls to 
self 
or its methods!

RPy_Exception: R Function "get" not found



-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list

Reply via email to