>
> Hello,

I'm having a really confusing problem with rpy.  I recently compiled for
2.9.2, windows.

Sometimes rpy loads just fine, but about half the time I get the error:


RHOME= C:\Python26\Lib\site-packages\R\R-2.9.2
RVERSION= 2.9.2
RVER= 2092
RUSER= C:\Users\covingto
Loading the R DLL C:\Python26\Lib\site-packages\R\R-2.9.2\bin\R.dll ..
1819279360
Done.
Loading Rpy version 2092 ..

Traceback (most recent call last):
  File "C:\Python26\Lib\site-packages\RedRTrunk\canvas\red-RCanvas.pyw",
line 18, in <module>
    import orngTabs, orngDoc, orngDlgs
  File "C:\Python26\Lib\site-packages\RedRTrunk\canvas\orngTabs.py", line 9,
in <module>
    import orngDoc, redRExceptionHandling, orngRegistry
  File "C:\Python26\Lib\site-packages\RedRTrunk\canvas\orngDoc.py", line 11,
in <module>
    from orngDlgs import *
  File "C:\Python26\Lib\site-packages\RedRTrunk\canvas\orngDlgs.py", line 9,
in <module>
    import RSession
  File "C:\Python26\Lib\site-packages\RedRTrunk\canvas\RSession.py", line
18, in <module>
    import rpy as rpy
  File "C:\Python26\lib\site-packages\rpy.py", line 135, in <module>
    """ % RVERSION)
RuntimeError: DLL load failed: Invalid access to memory location.

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


My current hypothesis is that the DLL either isn't getting loaded correctly
or is still in memory from a previous use and has to wait for something else
to take the memory before shutting down.

Any ideas about how to avoid this?

I have tried using the Rf_endEmbeddedR function in the r_finalize function
instead of the other functions in its place with the same result.

Also where is this error being generated?  I've tried tracking the code and
can't find anywhere that this would get thrown.

Thanks
Kyle
------------------------------------------------------------------------------
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly 
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list

Reply via email to