Hi!
After installing (python setup.py install), I run the tests and get
the following. What should I do?
Thanks
Agus
# python
Python 2.6.2 (release26-maint, Apr 19 2009, 01:56:41)
[GCC 4.3.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import rpy2.tests
>>> import unittest
>>> tr = unittest.TextTestRunner(verbosity = 1)
>>> suite = rpy2.tests.suite()
>>> tr.run(suite)
.......................Error in .Primitive("[")(0:10, list("a", "b",
"c")) :
invalid subscript type 'list'
..........................................F.......................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............................................
======================================================================
FAIL: testVectorUnicodeCharacter
(rpy2.robjects.tests.testNumpyConversions.NumpyConversionsTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/usr/local/lib/python2.6/dist-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
"/usr/local/lib/python2.6/dist-packages/rpy2/rinterface/tests/test_SexpVector.py",
line 43, in testNewWithoutInit
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
"/usr/local/lib/python2.6/dist-packages/rpy2/rinterface/tests/test_EmbeddedR.py",
line 122, in testCallErrorWhenEndedR
self.assertTrue(False) # worked when tested, but calling
endEmbeddedR causes trouble
AssertionError
----------------------------------------------------------------------
Ran 171 tests in 0.849s
FAILED (failures=3)
<unittest._TextTestResult run=171 errors=0 failures=3>
>>> tr.run(suite)
.......................Error in .Primitive("[")(0:10, list("a", "b",
"c")) :
invalid subscript type 'list'
..........................................F.......................F.....F.F..................F..Error
in .Primitive("sum")(c("a", "b", "c", "d", "e", "f", "g", "h", "i", :
invalid 'type' (character) of argument
.......F............................................
======================================================================
FAIL: testVectorUnicodeCharacter
(rpy2.robjects.tests.testNumpyConversions.NumpyConversionsTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/usr/local/lib/python2.6/dist-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
"/usr/local/lib/python2.6/dist-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
"/usr/local/lib/python2.6/dist-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
"/usr/local/lib/python2.6/dist-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
"/usr/local/lib/python2.6/dist-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
"/usr/local/lib/python2.6/dist-packages/rpy2/rinterface/tests/test_EmbeddedR.py",
line 122, in testCallErrorWhenEndedR
self.assertTrue(False) # worked when tested, but calling
endEmbeddedR causes trouble
AssertionError
----------------------------------------------------------------------
Ran 171 tests in 0.132s
FAILED (failures=6)
<unittest._TextTestResult run=171 errors=0 failures=6>
>>>
begin:vcard
fn:Agustin Lobo
n:Lobo;Agustin
org:Institut de Ciencies de la Terra "Jaume Almera" CSIC
adr:;;Lluis Sole Sabris s/n;Barcelona;;08028;Spain
email;internet:agustin.l...@ija.csic.es
url:http://www.ija.csic.es/gt/obster
version:2.1
end:vcard
------------------------------------------------------------------------------
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/Challenge
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list