Great work ! (the tests failing are expected to fail - the first is yet to be fixed for all platforms, the next two are failing because stop and restarting the embedded R is causing great trouble, the last two are expected to fail under win32 at the moment).
I am surely interested in seeing this build distributed. Having that one (2.0.0beta1) on sourceforge would be nice as it would provide a similar reference for testing under win32 (although SVN is supposed to be always better than snapshots). L. On Mon, 2008-10-27 at 11:18 -0400, laurent oget wrote: > Here is the log of the rpy2 unit test on XP with R 2.7.2. Should I try > rebuilding from SVN? Anybody interested in this windows build? > > Laurent > > C:\laurent\rpy2-2.0.0b1>python rpy\tests.py > ..................Error in .Primitive("[")(0:10, list("a", "b", "c")) : > invalid subscript type 'list' > ...............................................Warning message: > closing unused connection 3 (C:\Temp\Garbage\RtmpJSZtrJ\file678418be) > .....E..F....Loading required package: splines > ..................Error in function (x) : object "y" not found > ...Error in .Primitive("sum")(c("a", "b", "c", "d", "e", "f", "g", "h", "i", > : > invalid 'type' (character) of argument > ......F. > F[1] "3" > F................................... > ====================================================================== > ERROR: testNewString > (rpy2.rinterface.tests.test_SexpVector.SexpVectorTestCase) > ---------------------------------------------------------------------- > Traceback (most recent call last): > File > "C:\Python25\Lib\site-packages\rpy2\rinterface\tests\test_SexpVector.py", > line 95, in testNewStrin > g > ri.NA_STRING[0] > ValueError: Cannot handle type 9 > > ====================================================================== > FAIL: testNewWithoutInit > (rpy2.rinterface.tests.test_SexpVector.SexpVectorTestCase) > ---------------------------------------------------------------------- > Traceback (most recent call last): > File > "C:\Python25\Lib\site-packages\rpy2\rinterface\tests\test_SexpVector.py", > line 37, in testNewWitho > utInit > self.assertTrue(False) # worked when tested, but calling > endEmbeddedR causes trouble > AssertionError > > ====================================================================== > FAIL: testCallErrorWhenEndedR > (rpy2.rinterface.tests.test_EmbeddedR.EmbeddedRTestCase) > ---------------------------------------------------------------------- > Traceback (most recent call last): > File > "C:\Python25\Lib\site-packages\rpy2\rinterface\tests\test_EmbeddedR.py", > line 30, in testCallError > WhenEndedR > self.assertTrue(False) # worked when tested, but calling > endEmbeddedR causes trouble > AssertionError > > ====================================================================== > FAIL: testSetReadConsole > (rpy2.rinterface.tests.test_EmbeddedR.EmbeddedRTestCase) > ---------------------------------------------------------------------- > Traceback (most recent call last): > File > "C:\Python25\Lib\site-packages\rpy2\rinterface\tests\test_EmbeddedR.py", > line 25, in testSetReadCo > nsole > self.assertEquals(yes.strip(), res[0]) > AssertionError: 'yes' != '' > > ====================================================================== > FAIL: testSetWriteConsole > (rpy2.rinterface.tests.test_EmbeddedR.EmbeddedRTestCase) > ---------------------------------------------------------------------- > Traceback (most recent call last): > File > "C:\Python25\Lib\site-packages\rpy2\rinterface\tests\test_EmbeddedR.py", > line 16, in testSetWriteC > onsole > self.assertEquals('[1] "3"\n', str.join('', buf)) > AssertionError: '[1] "3"\n' != '' > > ---------------------------------------------------------------------- > Ran 144 tests in 2.534s > > FAILED (failures=4, errors=1) > > C:\laurent\rpy2-2.0.0b1> > > > > > 2008/10/23 laurent <[EMAIL PROTECTED]>: > > > > > > On Wed, 2008-10-22 at 22:33 -0400, laurent oget wrote: > >> After some more tinkering, I was able to build a windows installer for > >> rpy2. > > > > Good ! > > > >> I'll test it tomorrow. > > > > More tests will fail, as some of the features are not working with > > winXP, I think (the callback functions for console input and output for > > example). > > > > (more comments below). > > > >> Laurent > >> > >> 2008/10/22 laurent oget <[EMAIL PROTECTED]>: > >> > I could not find a machine with VS 2003 so i tried my chance with > >> > MINGW/MSYS, following > >> > > >> > http://boodebr.org/main/python/build-windows-extensions > >> > > >> > I installed MSYS and MINGW and ran python setup.py bdist_wininst > >> > > >> > A few issues i found: > >> > > >> > -windows is confused between rinterface.h (from rpy) and Rinterface.h > >> > (from R) > >> > -Rinterface.h is not shipped with the windows binary installer of R > >> > -windows/mingw does not know what to do with uintptr_t > >> > > >> > i worked around those 3 by: > >> > -replacing uintptr_t with unsigned int > > > > The SVN version has a patch for that one: > > svn diff -r660:653 rpy/rinterface/rinterface.c > > > >> > -renaming rinterface.h to r_interface.h > > > > Odd you had to do so. > > It used to work on the winXP machine I used for the previous builds. > > > >> > -copying RInterface.h from a src distribution of R > > > > So Rinterface.h is no longer distributed with the R win32 binaries... > > that's annoying. > > > >> > now > >> > > >> > i am stuck with a mysterious > >> > > >> > > >> > writing build\temp.win32-2.5\Release\rpy\rinterface\rinterface.def > >> > Traceback (most recent call last): > >> > File "setup.py", line 156, in <module> > >> > [pack_name + '.rinterface', pack_name + '.rinterface.tests'] > >> > File "C:\Python25\lib\distutils\core.py", line 151, in setup > >> > dist.run_commands() > >> > File "C:\Python25\lib\distutils\dist.py", line 974, in run_commands > >> > self.run_command(cmd) > >> > File "C:\Python25\lib\distutils\dist.py", line 994, in run_command > >> > cmd_obj.run() > >> > File "C:\Python25\lib\distutils\command\bdist_wininst.py", line 107, in > >> > run > >> > self.run_command('build') > >> > File "C:\Python25\lib\distutils\cmd.py", line 333, in run_command > >> > self.distribution.run_command(command) > >> > File "C:\Python25\lib\distutils\dist.py", line 994, in run_command > >> > cmd_obj.run() > >> > File "C:\Python25\lib\distutils\command\build.py", line 112, in run > >> > self.run_command(cmd_name) > >> > File "C:\Python25\lib\distutils\cmd.py", line 333, in run_command > >> > self.distribution.run_command(command) > >> > File "C:\Python25\lib\distutils\dist.py", line 994, in run_command > >> > cmd_obj.run() > >> > File "C:\Python25\lib\distutils\command\build_ext.py", line 299, in run > >> > self.build_extensions() > >> > File "C:\Python25\lib\distutils\command\build_ext.py", line 425, in > >> > build_extensions > >> > self.build_extension(ext) > >> > File "C:\Python25\lib\distutils\command\build_ext.py", line 522, in > >> > build_extension > >> > target_lang=language) > >> > File "C:\Python25\lib\distutils\ccompiler.py", line 845, in > >> > link_shared_object > >> > extra_preargs, extra_postargs, build_temp, target_lang) > >> > File "C:\Python25\lib\distutils\cygwinccompiler.py", line 246, in link > >> > target_lang) > >> > File "C:\Python25\lib\distutils\unixccompiler.py", line 214, in link > >> > libraries) > >> > File "C:\Python25\lib\distutils\ccompiler.py", line 1242, in > >> > gen_lib_options > >> > opt = compiler.runtime_library_dir_option (dir) > >> > File "C:\Python25\lib\distutils\unixccompiler.py", line 278, in > >> > runtime_library_dir_option > >> > compiler = os.path.basename(sysconfig.get_config_var("CC")) > >> > File "C:\Python25\lib\ntpath.py", line 200, in basename > >> > return split(p)[1] > >> > File "C:\Python25\lib\ntpath.py", line 164, in split > >> > d, p = splitdrive(p) > >> > File "C:\Python25\lib\ntpath.py", line 119, in splitdrive > >> > if p[1:2] == ':': > >> > TypeError: 'NoneType' object is unsubscriptable > >> > > >> > I will do some more digging in distutils to try and figure about what > >> > is going on, but I welcome any hint from knowledgeable people > > > > distutils is buggy. I had to manually edit the python files in my > > windows install (I can't remember, and I have no access to that machine > > at the moment). > > > > Try look at: > > http://code.google.com/p/netcdf4-python/issues/detail?id=8#c1 > > > >> > Laurent > >> > > >> > 2008/10/22 laurent oget <[EMAIL PROTECTED]>: > >> >> If I can get my hands on a windows machine with VS 2003 and python > >> >> 2.5.2, should I expect python setup.py bdist_wininst > >> >> to produce a windows installer? > >> >> > >> >> Laurent > >> >> > >> > > >> > >> ------------------------------------------------------------------------- > >> This SF.Net email is sponsored by the Moblin Your Move Developer's > >> challenge > >> Build the coolest Linux based applications with Moblin SDK & win great > >> prizes > >> Grand prize is a trip for two to an Open Source event anywhere in the world > >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ > >> _______________________________________________ > >> rpy-list mailing list > >> rpy-list@lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/rpy-list > > > > ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ rpy-list mailing list rpy-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rpy-list