On Mon, Jun 3, 2013 at 3:14 PM, David Chalenski <da...@cornell.edu> wrote:

> I am running into similar but slightly different problems.  I am able to
> change path, and have edited the r_interface\__init__.py file to output
> what Rlib and os.path are.  It guesses the correct location of R.dll, but
> still throws an error.  I have been doing some reading, and it appears as
> though the os.path.exists will fail if you do not have administartor
> priviliges when opening.  I changed write privileges on all the files (as
> well as moving the R installation out of C:\Program Files and into C:\).  I
> now have os.path.exists(Rlib) output True, but it fails at the
> win32.LoadLibrary(Rlib).
>
> My screen dump is below.
>
> Does anybody have any suggestions?
>
> I'm on 64 bit windows 7, but platform.architecture says "32 bit."  Could
> this be the problem (as the 32 vs 64 bit always seems to be...).
>
> Thanks for any help - I've been slaving away on this for a long time now...
>
> Rpy2 v 2.3.6
> Python 2.7.3
> R 2.15.3
>
> Thanks!,
> Dave
>
> >>> import rpy2.tests
> 32bit
> C:\Program Files\R\R-2.15.3
>  #Result of print(R_HOME)
> C:\Program Files\R\R-2.15.3\bin\i386\R.dll
>  #Result of print (Rlib)
> True
>             #This is the result if print(os.path.exists(Rlib))
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File "C:\Python27\lib\site-packages\rpy2\tests.py", line 9, in <module>
>     import rpy2.robjects.tests
>   File "C:\Python27\lib\site-packages\rpy2\robjects\__init__.py", line 15,
> in <module>
>     import rpy2.rinterface as rinterface
>   File "C:\Python27\lib\site-packages\rpy2\rinterface\__init__.py", line
> 90, in <module>
>     win32api.LoadLibrary( Rlib )
> pywintypes.error: (161, 'LoadLibrary', 'The specified path is invalid.')
>
>
My guess is to make sure that everything in your stack (Python, R, rpy2,
numpy, etc) are running off of 32-bit versions.

I'm afraid that's all the help that I can offer since I very rarely use
rpy2.
-p
------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list

Reply via email to