2011-12-05 78 views
0

我在MacOS 10.6.4上安裝了EPD 7.1的學術版本。 我安裝Rpy2通過調用`的easy_install rpy2python,rpy2安裝測試 - nosetests rpy2導致失敗

Searching for rpy2 
Reading http://pypi.python.org/simple/rpy2/ 
Reading http://rpy.sourceforge.net 
Best match: rpy2 2.2.4 
Downloading http://pypi.python.org/packages/source/r/rpy2/rpy2-2.2.4.tar.gz#md5=0192a3c05d8d97971e2bcf888944aff5 
Processing rpy2-2.2.4.tar.gz 
Running rpy2-2.2.4/setup.py -q bdist_egg --dist-dir /var/folders/st/stQUFIfOG28bmpY9dCspTk+++TI/-Tmp-/easy_install-TE6kYA/rpy2-2.2.4/egg-dist-tmp-qKzkC5 
Configuration for R as a library: 
    include_dirs: ('/Library/Frameworks/R.framework/Resources/include', '/Library/Frameworks/R.framework/Resources/include/x86_64') 
    libraries: ('Rblas', 'Rlapack') 
    library_dirs: ('/Library/Frameworks/R.framework/Resources/lib/x86_64',) 
    extra_link_args: ('-framework R', '-F/Library/Frameworks/R.framework/..') 
# OSX-specific (included in extra_link_args) 
    framework_dirs: ('-F/Library/Frameworks/R.framework/..',) 
    frameworks: ('-framework R',) 
warning: no previously-included files matching '*patch*' found anywhere in distribution 
warning: no previously-included files matching '*diff*' found anywhere in distribution 
warning: no previously-included files matching '.hg' found anywhere in distribution 
no previously-included directories found matching 'dist' 
zip_safe flag not set; analyzing archive contents... 
rpy2.rinterface.tests.test_EmbeddedR: module references __path__ 
Adding rpy2 2.2.4dev-20111204 to easy-install.pth file 

Installed /Library/Frameworks/EPD64.framework/Versions/7.1/lib/python2.7/site-packages/rpy2-2.2.4dev_20111204-py2.7-macosx-10.5-x86_64.egg 
Processing dependencies for rpy2 
Finished processing dependencies for rpy2 
` 

然後,我跑到nosetests rpy2測試安裝,我收到以下錯誤:什麼怎麼回事

====================================================================== 
ERROR: Failure: ImportError (No module named testRevents) 
---------------------------------------------------------------------- 
Traceback (most recent call last): 
    File "/Library/Frameworks/EPD64.framework/Versions/7.1/lib/python2.7/site-packages/nose/loader.py", line 390, in loadTestsFromName 
    addr.filename, addr.module) 
    File "/Library/Frameworks/EPD64.framework/Versions/7.1/lib/python2.7/site-packages/nose/importer.py", line 39, in importFromPath 
    return self.importFromDir(dir_path, fqname) 
    File "/Library/Frameworks/EPD64.framework/Versions/7.1/lib/python2.7/site-packages/nose/importer.py", line 86, in importFromDir 
    mod = load_module(part_fqname, fh, filename, desc) 
    File "/Library/Frameworks/EPD64.framework/Versions/7.1/lib/python2.7/site-packages/rpy2-2.2.4dev_20111204-py2.7-macosx-10.5-x86_64.egg/rpy2/interactive/tests/__init__.py", line 3, in <module> 
    import testRevents 
ImportError: No module named testRevents 

---------------------------------------------------------------------- 
Ran 1 test in 0.005s 

FAILED (errors=1) 

任何想法?我非常感謝你的幫助。

+0

難道是因爲我需要運行'蟒蛇-m「rpy2.tests''代替?當我跑這個所有的測試通過。 – codingknob

回答

0

好像測試RPy2的,你需要運行安裝:

蟒蛇-m「rpy2.tests」