rpy2.tests,搜索列表中没有名为“无”的项

时间:2015-07-24 16:22:10

标签: python r rpy2

我正在使用Rpy2并使用$ python -m“rpy2.tests”运行测试。我收到以下错误。我正在使用ubuntu 14.03,python 2.7并尝试使用此包在python中调用R。

    rpy2 version: 2.6.0
    - built against R version: 3-2.1--68531
    - running linked to R version: R version 3.2.1 (2015-06-18)
    ....../tmp/tmpRWL4lU.py:17: UserWarning: 

      ri.baseenv['eval'](ri.parse(rcode))
    ..................................................................................................................................................................................x.........................................................................................................E
    Stderr:
    /usr/local/lib/python2.7/dist-packages/rpy2-2.6.0-py2.7-linux-x86_64.egg/rpy2/robjects/methods.py:80: UserWarning: Error in as.environment(where) : no item called "None" on the search list

      StrSexpVector((cls_packagename, )))
    E...................................sssssssss................................E.s...s..s.....
    ======================================================================
    ERROR: testRS4Auto_Type (robjects.tests.testMethods.MethodsTestCase)
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/usr/local/lib/python2.7/dist-packages/rpy2-2.6.0-py2.7-linux-x86_64.egg/rpy2/robjects/tests/testMethods.py", line 115, in testRS4Auto_Type
        robjects.methods.RS4)):
      File "/usr/lib/python2.7/dist-packages/six.py", line 617, in with_metaclass
        return meta("NewBase", bases, {})
      File "/usr/local/lib/python2.7/dist-packages/rpy2-2.6.0-py2.7-linux-x86_64.egg/rpy2/robjects/methods.py", line 154, in __new__
        cls_def = getclassdef(cls_rname, cls_rpackagename)
      File "/usr/local/lib/python2.7/dist-packages/rpy2-2.6.0-py2.7-linux-x86_64.egg/rpy2/robjects/methods.py", line 80, in getclassdef
        StrSexpVector((cls_packagename, )))
    RRuntimeError: Error in as.environment(where) : no item called "None" on the search list


    Stderr:
    /usr/local/lib/python2.7/dist-packages/rpy2-2.6.0-py2.7-linux-x86_64.egg/rpy2/robjects/methods.py:80: UserWarning: Error in as.environment(where) : no item called "None" on the search list

      StrSexpVector((cls_packagename, )))

    ======================================================================
    ERROR: testRS4Auto_Type_nopackname (robjects.tests.testMethods.MethodsTestCase)
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/usr/local/lib/python2.7/dist-packages/rpy2-2.6.0-py2.7-linux-x86_64.egg/rpy2/robjects/tests/testMethods.py", line 122, in testRS4Auto_Type_nopackname
        robjects.methods.RS4)):
      File "/usr/lib/python2.7/dist-packages/six.py", line 617, in with_metaclass
        return meta("NewBase", bases, {})
      File "/usr/local/lib/python2.7/dist-packages/rpy2-2.6.0-py2.7-linux-x86_64.egg/rpy2/robjects/methods.py", line 154, in __new__
        cls_def = getclassdef(cls_rname, cls_rpackagename)
      File "/usr/local/lib/python2.7/dist-packages/rpy2-2.6.0-py2.7-linux-x86_64.egg/rpy2/robjects/methods.py", line 80, in getclassdef
        StrSexpVector((cls_packagename, )))
    RRuntimeError: Error in as.environment(where) : no item called "None" on the search list


    ======================================================================
    ERROR: test_Rconverter (ipython.tests.test_rmagic.TestRmagic)
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/usr/local/lib/python2.7/dist-packages/rpy2-2.6.0-py2.7-linux-x86_64.egg/rpy2/ipython/tests/test_rmagic.py", line 127, in test_Rconverter
        tuple(fromr_dataf_np.ix[col_i].values))
      File "/usr/lib/python2.7/dist-packages/numpy/core/records.py", line 418, in __getattribute__
        raise AttributeError("record array has no attribute %s" % attr)
    AttributeError: record array has no attribute ix

    ----------------------------------------------------------------------
    Ran 383 tests in 3.719s

    FAILED (errors=3, skipped=12, expected failures=1)

要解决这三个错误的想法吗?

谢谢,

0 个答案:

没有答案