Hi, Running into a couple problems compiling rpy2 on windows. I have R_HOME defined and R in the system path.
first off in setup.py, def getRinterface_ext: include_dirs = [x.lstrip('-I','') for x in include_dirs] is bad if your drive letter happens to be 'I', I've replaced this with x.replace('-I','') in my version. ... moving on... During setup.py install, rinterface is running into multiple problems: w:<redacted>\rpy2-2.0.0\rpy\rinterface\rinterface.h(19) : warning C4114: same type qualifier used more than once w:<redacted>\rpy2-2.0.0\rpy\rinterface\rinterface.h(20) : warning C4114: same type qualifier used more than once rpy\rinterface\array.c(110) : error C2275: 'PyArrayInterface' : illegal use of t his type as an expression rpy\rinterface\array.c(27) : see declaration of 'PyArrayInterface' rpy\rinterface\array.c(110) : error C2065: 'inter' : undeclared identifier rpy\rinterface\array.c(111) : error C2143: syntax error : missing ';' before 'ty pe' rpy\rinterface\array.c(112) : error C2065: 'typekind' : undeclared identifier rpy\rinterface\array.c(116) : warning C4047: '=' : 'int' differs in levels of in direction from 'PyArrayInterface *' rpy\rinterface\array.c(120) : error C2143: syntax error : missing ';' before 'ty pe' rpy\rinterface\array.c(121) : error C2143: syntax error : missing ';' before 'ty pe' rpy\rinterface\array.c(122) : error C2223: left of '->version' must point to str uct/union rpy\rinterface\array.c(123) : error C2223: left of '->nd' must point to struct/u nion rpy\rinterface\array.c(123) : error C2065: 'nd' : undeclared identifier rpy\rinterface\array.c(124) : error C2223: left of '->typekind' must point to st ruct/union rpy\rinterface\array.c(125) : error C2223: left of '->itemsize' must point to st ruct/union rpy\rinterface\array.c(126) : error C2223: left of '->flags' must point to struc t/union rpy\rinterface\array.c(127) : error C2223: left of '->shape' must point to struc t/union rpy\rinterface\array.c(128) : error C2223: left of '->shape' must point to struc t/union rpy\rinterface\array.c(128) : warning C4047: 'function' : 'Py_intptr_t *' differ s in levels of indirection from 'int' rpy\rinterface\array.c(128) : error C2198: 'sexp_shape' : too few arguments for call through pointer-to-function rpy\rinterface\array.c(129) : error C2223: left of '->strides' must point to str uct/union rpy\rinterface\array.c(129) : error C2223: left of '->shape' must point to struc t/union rpy\rinterface\array.c(130) : error C2275: 'Py_intptr_t' : illegal use of this t ype as an expression i:\Global-Credit\Converts\IT\foopen\43\Python2.5\include\pyport.h(90) : see declaration of 'Py_intptr_t' rpy\rinterface\array.c(130) : error C2146: syntax error : missing ';' before ide ntifier 'stride' rpy\rinterface\array.c(130) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>' rpy\rinterface\array.c(130) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>' rpy\rinterface\array.c(130) : error C2143: syntax error : missing ';' before 'id entifier' rpy\rinterface\array.c(130) : error C2065: 'stride' : undeclared identifier rpy\rinterface\array.c(130) : error C2223: left of '->itemsize' must point to st ruct/union rpy\rinterface\array.c(131) : error C2223: left of '->strides' must point to str uct/union rpy\rinterface\array.c(132) : error C2065: 'i' : undeclared identifier rpy\rinterface\array.c(133) : error C2223: left of '->shape' must point to struc t/union rpy\rinterface\array.c(134) : error C2223: left of '->strides' must point to str uct/union rpy\rinterface\array.c(136) : error C2223: left of '->data' must point to struct /union rpy\rinterface\array.c(137) : error C2223: left of '->data' must point to struct /union rpy\rinterface\array.c(142) : warning C4022: 'PyCObject_FromVoidPtrAndDesc' : po inter mismatch for actual parameter 1 error: command '"C:\Program Files\msvs2003\Vc7\bin\cl.exe"' failed with exit sta tus 2 On Fri, Dec 19, 2008 at 6:59 PM, James Yoo <james....@gmail.com> wrote: > Thanks. I think I'm stuck with compiling it. > > > > > > On Dec 19, 2008, at 6:51 PM, Peter <rpy-l...@maubp.freeserve.co.uk> wrote: > > On Fri, Dec 19, 2008 at 9:19 PM, James Yoo <james....@gmail.com> wrote: >> >>> yes, I have R in the path... the hang up is that the rpy2 binary >>> installer >>> expects to find python in the registry... hoping someone on this list >>> might >>> have had success installing rpy2 on windows (python not registered) with >>> the >>> binary installer >>> >> >> Sorry - I misread your initial question, assuming it was the R >> registry entry you were talking about. >> >> This sounds like a general python installer problem (not rpy >> specific), so perhaps some time google searching on installer options >> when using a python installer created with distutils (bdist_wininst) >> might help. I've tried, but so far haven't found anything. >> >> Peter >> >> >> ------------------------------------------------------------------------------ >> _______________________________________________ >> rpy-list mailing list >> rpy-list@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/rpy-list >> >
------------------------------------------------------------------------------
_______________________________________________ rpy-list mailing list rpy-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rpy-list