Dear All, I still have a problem installing a RPy2. I managed to have it done with the use of windows binary file, but when I run the test:
import rpy2.tests import unittest # the verbosity level can be increased if needed tr = unittest.TextTestRunner(verbosity = 1) suite = rpy2.tests.suite() tr.run(suite) I am getting the following failure message: .................................................................F.......................F.....F.F..................F.........F.FFF...F..................................... ====================================================================== FAIL: testVectorUnicodeCharacter (rpy2.robjects.tests.testNumpyConversions.NumpyConversionsTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "C:\Python26\lib\site-packages\rpy2\robjects\tests\testNumpyConversions.py", line 54, in testVectorUnicodeCharacter self.assertTrue(False) # arrays of unicode characters causing segfault AssertionError ====================================================================== FAIL: testNewWithoutInit (rpy2.rinterface.tests.test_SexpVector.SexpVectorTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "C:\Python26\lib\site-packages\rpy2\rinterface\tests\test_SexpVector.py", line 43, in testNewWithoutInit self.assertTrue(False) # worked when tested, but calling endEmbeddedR causes trouble AssertionError ====================================================================== FAIL: testGet (rpy2.rinterface.tests.test_SexpEnvironment.SexpEnvironmentTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "C:\Python26\lib\site-packages\rpy2\rinterface\tests\test_SexpEnvironment.py", line 39, in testGet self.assertRaises(LookupError, rinterface.globalEnv.get, "survfit") AssertionError: LookupError not raised ====================================================================== FAIL: testGet_functionOnly (rpy2.rinterface.tests.test_SexpEnvironment.SexpEnvironmentTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "C:\Python26\lib\site-packages\rpy2\rinterface\tests\test_SexpEnvironment.py", line 57, in testGet_functionOnly self.assertEquals(rinterface.CLOSXP, hist.typeof) AssertionError: 3 != 16 ====================================================================== FAIL: testClosureEnv (rpy2.rinterface.tests.test_SexpClosure.SexpClosureTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "C:\Python26\lib\site-packages\rpy2\rinterface\tests\test_SexpClosure.py", line 28, in testClosureEnv self.assertRaises(rinterface.RRuntimeError, fun, vec) AssertionError: RRuntimeError not raised ====================================================================== FAIL: testCallErrorWhenEndedR (rpy2.rinterface.tests.test_EmbeddedR.EmbeddedRTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "C:\Python26\lib\site-packages\rpy2\rinterface\tests\test_EmbeddedR.py", line 122, in testCallErrorWhenEndedR self.assertTrue(False) # worked when tested, but calling endEmbeddedR causes trouble AssertionError ====================================================================== FAIL: testReadConsoleWithError (rpy2.rinterface.tests.test_EmbeddedR.EmbeddedRTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "C:\Python26\lib\site-packages\rpy2\rinterface\tests\test_EmbeddedR.py", line 117, in testReadConsoleWithError self.assertTrue(errorstring.startswith('Traceback')) AssertionError ====================================================================== FAIL: testSetReadConsole (rpy2.rinterface.tests.test_EmbeddedR.EmbeddedRTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "C:\Python26\lib\site-packages\rpy2\rinterface\tests\test_EmbeddedR.py", line 97, in testSetReadConsole self.assertEquals(yes.strip(), res[0]) AssertionError: 'yes' != '' ====================================================================== FAIL: testSetWriteConsole (rpy2.rinterface.tests.test_EmbeddedR.EmbeddedRTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "C:\Python26\lib\site-packages\rpy2\rinterface\tests\test_EmbeddedR.py", line 36, in testSetWriteConsole self.assertEquals('[1] "3"\n', str.join('', buf)) AssertionError: '[1] "3"\n' != '' ====================================================================== FAIL: testWriteConsoleWithError (rpy2.rinterface.tests.test_EmbeddedR.EmbeddedRTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "C:\Python26\lib\site-packages\rpy2\rinterface\tests\test_EmbeddedR.py", line 55, in testWriteConsoleWithError self.assertTrue(errorstring.startswith('Traceback')) AssertionError ---------------------------------------------------------------------- Ran 172 tests in 0.711s FAILED (failures=10) Could anyone help mi with fixing this problem? Also, when I'm trying to run some of the example tests from the tutorial, some of them work, but most of them fails. Thank you in advance, Andrzej. ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ rpy-list mailing list rpy-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rpy-list