Biopython在Mageia上构建错误

时间:2013-05-30 18:33:09

标签: linux biopython mageia

我正在尝试安装Biopython 1.61。我以root用户身份登录bash终端。我正在使用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)和gcc更新了我的python,但它已经是最新的了。

这是我从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

1 个答案:

答案 0 :(得分:2)

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

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