Skip to content

Instantly share code, notes, and snippets.

@takluyver
Created May 22, 2011 18:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save takluyver/985716 to your computer and use it in GitHub Desktop.
Save takluyver/985716 to your computer and use it in GitHub Desktop.
rpy2 test failures with Python 3.2
thomas@thomas-desktop:~$ python3 -m rpy2.tests
.E...Traceback (most recent call last):
File "/tmp/tmpm66dxe.py", line 4, in <module>
import rpy2.rinterface as ri
File "/usr/local/lib/python3.2/dist-packages/rpy2/rinterface/__init__.py", line 79, in <module>
from rpy2.rinterface._rinterface import *
ImportError: No module named _rinterface
......../usr/local/lib/python3.2/dist-packages/rpy2/rinterface/tests/test_EmbeddedR.py:324: DeprecationWarning: Please use assertEqual instead.
self.assertEquals("Doesn't work.", str(sys.last_value))
.......................................................................................F....................................................................................................................................................................F...............................................
======================================================================
ERROR: testConsolePrint (rpy2.rinterface.tests.test_EmbeddedR.EmbeddedRTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/lib/python3.2/dist-packages/rpy2/rinterface/tests/test_EmbeddedR.py", line 40, in testConsolePrint
raise e
File "/usr/local/lib/python3.2/dist-packages/rpy2/rinterface/tests/test_EmbeddedR.py", line 37, in testConsolePrint
rinterface.consolePrint('haha')
File "/usr/local/lib/python3.2/dist-packages/rpy2/rinterface/__init__.py", line 84, in consolePrint
sys.stdout.write(x)
TypeError: 'str' does not support the buffer interface
======================================================================
FAIL: testInitFromSeqInvalidOverflow (rpy2.rinterface.tests.test_SexpVector.IntSexpVectorTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/lib/python3.2/dist-packages/rpy2/rinterface/tests/test_SexpVector.py", line 170, in testInitFromSeqInvalidOverflow
self.assertRaises(OverflowError, ri.IntSexpVector, (ri.R_LEN_T_MAX+1, ))
AssertionError: OverflowError not raised by IntSexpVector
======================================================================
FAIL: testMissingNumpy (rpy2.robjects.tests.testNumpyConversions.MissingNumpyDummyTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/lib/python3.2/dist-packages/rpy2/robjects/tests/testNumpyConversions.py", line 15, in testMissingNumpy
self.assertTrue(False) # numpy is missing. No tests.
AssertionError: False is not true
----------------------------------------------------------------------
Ran 313 tests in 3.594s
FAILED (failures=2, errors=1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment