Setup: Windows XP, Python 2.5.4.4, MSYS-1.0.11-rc-1, MinGW-5.1.4 (copied
gcc-full-4.4.0-mingw32 on the install), R-2.9.1
Trying to compile rpy2-2.0.6 using "python setup.py build"
PROBLEM 1
rpy\rinterface\rinterface.c: In function 'EmbeddedR_init':
rpy\rinterface\rinterface.c:474: error: 'R_SignalHandlers' undeclared (first
use in this function)
rpy\rinterface\rinterface.c:474: error: (Each undeclared identifier is reported
only once
rpy\rinterface\rinterface.c:474: error: for each function it appears in.)
rpy\rinterface\rinterface.c:478: error: 'R_Interactive' undeclared (first use
in this function)
rpy\rinterface\rinterface.c:485: error: 'R_CStackLimit' undeclared (first use
in this function)
error: command 'gcc' failed with exit status 1
CHANGE
In rinterface.c, (i) added #undef RIF_HAS_RSIGHAND on line 472. (ii) commented
out lines 478 and 485.
PROBLEM 2
writing build\temp.win32-2.5\Release\rpy\rinterface\rinterface.def
Traceback (most recent call last):
File "setup.py", line 185, in <module>
data_files = [(os.path.join('rpy2','images'), [os.path.join('doc',
'source', 'rpy2_logo.png')])]
......................
File "C:\Python25\lib\ntpath.py", line 119, in splitdrive
if p[1:2] == ':':
TypeError: 'NoneType' object is unsubscriptable
CHANGE
Tried to comment out data_files, set it to data_files = []. None of them work.
QUESTIONS
1. Should problem 1 be handled differently?
2. How should I handle problem 2?
Thank you.
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/blackberry
_______________________________________________
rpy-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rpy-list