0

我正在尝试安装 Biopython 1.61。我在 bash 终端中以 root 身份登录。我正在使用 Mageia 2.0,并且我已经更新了操作系统上的所有包/程序(带有urpmi update -a)。

我提取了源代码,然后运行python setup.py build,它有两个错误:

FAIL: test_protein_16130152 (test_SeqIO_online.EntrezTests)
Bio.Entrez.efetch(protein, 16130152, ...)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test_SeqIO_online.py", line 77, in <lambda>
    method = lambda x : x.simple(d, f, e, l, c)
  File "test_SeqIO_online.py", line 65, in simple
    self.assertEqual(seguid(record.seq), checksum)
AssertionError: 'NT/aFiTXyD/7KixizZ9sq2FcniU' != 'fCjcjMFeGIrilHAn6h+yju267lg'

======================================================================
ERROR: test_doctests (test_Tutorial.TutorialTestCase)
Run tutorial doctests.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test_Tutorial.py", line 152, in test_doctests
ValueError: 4 Tutorial doctests failed: test_from_line_05671, test_from_line_06030, test_from_line_06190, test_from_line_06479

然后我跑了python setup.py install,但也失败了。urpmi install lib64python-devel我用 ( ) 和 my更新了我的 python gcc,但它已经是最新的了。

这是我得到的错误python setup.py install

[root@localhost biopython-1.61]# python setup.py install
running install
running build
running build_py
warning: build_py_biopython: byte-compiling is disabled, skipping.

running build_ext
building 'Bio.Cluster.cluster' extension
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -I/usr/include/ncursesw -DNDEBUG -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -g -fPIC -I/usr/lib64/python2.7/site-packages/numpy/core/include -I/usr/include/python2.7 -c Bio/Cluster/clustermodule.c -o build/temp.linux-x86_64-2.7/Bio/Cluster/clustermodule.o
Bio/Cluster/clustermodule.c:2:31: fatal error: numpy/arrayobject.h: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1
4

1 回答 1

2

Biopython 本身已修复单元测试失败。

编译器错误表明您缺少 NumPy 头文件,这些头文件通常包含在 OS 包管理器中的一个单独的包中,称为 numpy-dev 或 numpy-devel。

于 2013-06-10T17:18:12.937 回答