我正在为FreeBSD打包biom
(2.1.5)。
根据文档,我最初取决于pynumpy
和h5py
,但挖掘我认为它还应该依赖于:
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
答案 0 :(得分:1)
在将来的0.14.3中,string_types
中没有future.utils
。 (虽然在文档中提到过)。查看github repo for future的0.14.x
分支。
在撰写本文时,future module的当前版本为0.15.2。所以在biom工作之前需要更新端口。我建议联系该端口的维护者。