Opened 10 years ago

Closed 10 years ago

#44427 closed defect (invalid)

py-rpy2 @2.4.2 python -m 'rpy2.tests' fails

Reported by: Liontooth (David Liontooth) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.3.1
Keywords: Cc: stromnov (Andrey Stromnov)
Port: py-rpy2

Description

On a fresh build of R and py-rpy2:

$ python -m 'rpy2.tests'
rpy2 version: 2.4.2
- built against R version: 3-1.0--65387
- running linked to R version: R version 3.1.0 (2014-04-10)
E
======================================================================
ERROR: __main__ (unittest.loader.LoadTestsFailure)
----------------------------------------------------------------------
ImportError: Start directory is not importable: 'ipython'

----------------------------------------------------------------------
Ran 1 test in 0.000s

FAILED (errors=1)

Or also

$ python
Python 2.7.8 (default, Jul 13 2014, 17:11:32) 
[GCC 4.2.1 Compatible Apple LLVM 5.1 (clang-503.0.40)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import rpy2
>>> import rpy2.tests
>>> import unittest
>>> tr = unittest.TextTestRunner(verbosity = 1)
>>> suite = rpy2.tests.suite()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'suite'

Are these different versions of R or just labeled differently?

Cheers, Dave

Change History (3)

comment:1 Changed 10 years ago by stromnov (Andrey Stromnov)

  1. Ipython is an optional dependency for rpy2 tests.
  2. For some reasons manual tests from official documentation doesn't work (http://stackoverflow.com/questions/24662036/bug-with-rpy2-test-suite). But you can run tests via separate commands like:

python -m 'rpy2.robjects.tests.__init__'.

comment:2 Changed 10 years ago by Liontooth (David Liontooth)

Very helpful, thank you. Please close.

comment:3 Changed 10 years ago by stromnov (Andrey Stromnov)

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.