I have been using rpy for a project for over a year now and would like to help maintain it for newer versions of R and python.
I followed the instructions for compiling under windows without much luck. To start with I just want to compile rpy 1.0.3 with python 2.6 and R 2.9.1. Any help in setting up my windows environment would be greatly appreciated. I am using windows 7 64 bit. I have installed MinGW 5.1.6 and Python 2.6. I see the following errors (The full output is below): error: Unable to find vcvarsall.bat --- src/RPy.h:67:27: Rgraphics.h: No such file or directory src/RPy.h:77:51: Rdevices.h: No such file or directory Thanks for any help, Anup Here is the setup.bat file I run: =========================================== REM Important Paths set MINGW=C:\MinGW set PYTHON=C:\Python26 path %MINGW%\bin;%PYTHON%;%PATH% echo copying setup.Win32 to setup.cfg copy setup.Win32 setup.cfg REM Uncomment to specify a location for R REM set RHOMES=C:\Progra~1\R\R-2.2.1 REM Uncomment to clean up completely before starting python setup.py build clean --all REM Perform Local Build and Install python setup.py build_ext --compiler=mingw32 install --force REM Create Windows Installer python setup.py build --compiler=mingw32 bdist_wininst echo Removing setup.cfg del setup.cfg =========================================== And here is the output: =========================================== copying setup.Win32 to setup.cfg 1 file(s) copied. RHOMES= ['C:/cygwin/home/anup/R'] DEBUG= True ### Using R verion 2.9.1 installed at C:/cygwin/home/anup/R ### RHOME= C:/cygwin/home/anup/R copying src/rpymodule.c -> src/rpymodule2091.c copying src/R_eval.c -> src/R_eval2091.c copying src/io.c -> src/io2091.c running build running build_py running build_ext building '_rpy2091' extension error: Unable to find vcvarsall.bat RHOMES= ['C:/cygwin/home/anup/R'] DEBUG= True ### Using R verion 2.9.1 installed at C:/cygwin/home/anup/R ### RHOME= C:/cygwin/home/anup/R copying src/rpymodule.c -> src/rpymodule2091.c copying src/R_eval.c -> src/R_eval2091.c copying src/io.c -> src/io2091.c running build_ext building '_rpy2091' extension C:\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall -DWITH_NUMERIC=3 -DPY_ARRAY_TYPE S_PREFIX=PyArray_ -DRPY_SHNAME=_rpy2091 -DINIT_RPY=init_rpy2091 -UPRE_2_2 -IC:/c ygwin/home/anup/R\include -Isrc -IC:\Python26\lib\site-packages\numpy\core\inclu de -IC:/cygwin/home/anup/R/include -IC:\Python26\include -IC:\Python26\PC -c src /rpymodule2091.c -o build\temp.win32-2.6\Release\src\rpymodule2091.o In file included from src/rpymodule2091.c:51: src/RPy.h:67:27: Rgraphics.h: No such file or directory src/RPy.h:77:51: Rdevices.h: No such file or directory src/rpymodule2091.c:1568: warning: `intargfunc' is deprecated (declared at C:/Py thon26/include/object.h:139) src/rpymodule2091.c:1569: warning: `intintargfunc' is deprecated (declared at C: /Python26/include/object.h:140) src/rpymodule2091.c: In function `r_finalize': src/rpymodule2091.c:1782: warning: implicit declaration of function `Rf_KillAllD evices' src/rpymodule2091.c:1788: warning: implicit declaration of function `R_CleanTemp Dir' src/rpymodule2091.c:1775: warning: unused variable `buf' src/rpymodule2091.c:1776: warning: unused variable `tmpdir' src/rpymodule2091.c: In function `init_embedded_win32': src/rpymodule2091.c:1941: warning: assignment from incompatible pointer type src/rpymodule2091.c:1942: warning: assignment from incompatible pointer type error: command 'gcc' failed with exit status 1 RHOMES= ['C:/cygwin/home/anup/R'] DEBUG= True ### Using R verion 2.9.1 installed at C:/cygwin/home/anup/R ### RHOME= C:/cygwin/home/anup/R copying src/rpymodule.c -> src/rpymodule2091.c copying src/R_eval.c -> src/R_eval2091.c copying src/io.c -> src/io2091.c running build running build_py running build_ext building '_rpy2091' extension C:\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall -DWITH_NUMERIC=3 -DPY_ARRAY_TYPE S_PREFIX=PyArray_ -DRPY_SHNAME=_rpy2091 -DINIT_RPY=init_rpy2091 -UPRE_2_2 -IC:/c ygwin/home/anup/R\include -Isrc -IC:\Python26\lib\site-packages\numpy\core\inclu de -IC:/cygwin/home/anup/R/include -IC:\Python26\include -IC:\Python26\PC -c src /rpymodule2091.c -o build\temp.win32-2.6\Release\src\rpymodule2091.o In file included from src/rpymodule2091.c:51: src/RPy.h:67:27: Rgraphics.h: No such file or directory src/RPy.h:77:51: Rdevices.h: No such file or directory src/rpymodule2091.c:1568: warning: `intargfunc' is deprecated (declared at C:/Py thon26/include/object.h:139) src/rpymodule2091.c:1569: warning: `intintargfunc' is deprecated (declared at C: /Python26/include/object.h:140) src/rpymodule2091.c: In function `r_finalize': src/rpymodule2091.c:1782: warning: implicit declaration of function `Rf_KillAllD evices' src/rpymodule2091.c:1788: warning: implicit declaration of function `R_CleanTemp Dir' src/rpymodule2091.c:1775: warning: unused variable `buf' src/rpymodule2091.c:1776: warning: unused variable `tmpdir' src/rpymodule2091.c: In function `init_embedded_win32': src/rpymodule2091.c:1941: warning: assignment from incompatible pointer type src/rpymodule2091.c:1942: warning: assignment from incompatible pointer type error: command 'gcc' failed with exit status 1 Removing setup.cfg Microsoft Windows [Version 6.1.7600] Copyright (c) 2009 Microsoft Corporation. All rights reserved. =========================================== ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ rpy-list mailing list rpy-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rpy-list