为FreeBSD打包biom

时间:2016-05-26 03:03:57

标签: python biom

我正在为FreeBSD打包biom(2.1.5)。

根据文档,我最初取决于pynumpyh5py,但挖掘我认为它还应该依赖于:

py27-click-6.6
py27-future-0.14.3
py27-pyqi-0.2.0
py27-scipy-0.16.1.

现在我正在运行biom给出以下错误。你有没有 调试建议?我不是蟒蛇开发者,所以请保持温和。

Traceback (most recent call last):
  File "/usr/local/bin/biom", line 9, in <module>
    load_entry_point('biom-format==2.1.5', 'console_scripts', 'biom')()
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 547, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2720, in load_entry_point
    return ep.load()
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2380, in load
    return self.resolve()
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2386, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/local/lib/python2.7/site-packages/biom/__init__.py", line 51, in <module>
    from .table import Table
  File "/usr/local/lib/python2.7/site-packages/biom/table.py", line 188, in <module>
    from future.utils import string_types
ImportError: cannot import name string_types

1 个答案:

答案 0 :(得分:1)

在将来的0.14.3中,string_types中没有future.utils。 (虽然在文档中提到过)。查看github repo for future0.14.x分支。

在撰写本文时,future module的当前版本为0.15.2。所以在biom工作之前需要更新端口。我建议联系该端口的维护者。