Toby Hocking wrote, On 06/24/08 20:20: > Hi Christof, did you ever resolve this problem? I am experiencing it now, and > I was wondering what you did for a solution/workaround. Thanks.
Hi Toby: The problem is still there. My current workaround is to use cgi instead of mod_python, which is much slower, however. There is something with the import functionality of mod_python that does not work well with rpy, so I'm not even sure if a possible fix would concern mod_python or rpy. Christof > -----Original Message----- From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Christof Winter > Sent: Wednesday, June 11, 2008 12:58 PM To: rpy-list@lists.sourceforge.net > Subject: [Rpy] rpy and mod_python problem > > > 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 > > ______________________________________________________________________ This > email has been scanned by the MessageLabs Email Security System. For more > information please visit http://www.messagelabs.com/email > ______________________________________________________________________ > > ______________________________________________________________________ This > email has been scanned by the MessageLabs Email Security System. For more > information please visit http://www.messagelabs.com/email > ______________________________________________________________________ ------------------------------------------------------------------------- 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