3

当我启动 cpp-coveralls 实用程序将我的代码覆盖率结果发送到http://coveralls.io时,我总是收到此错误:

$ coveralls 
Traceback (most recent call last):
  File "/usr/local/bin/coveralls", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 2603, in <module>
    working_set.require(__requires__)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 666, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 565, in resolve
    raise DistributionNotFound(req)  # XXX put more info here
pkg_resources.DistributionNotFound: requests

我尝试了两个 python 版本(2.7.2 和 3.3.3),但我总是得到相同的结果......我在本地和我的测试项目的 travis 构建中都遇到了这个错误:

我在这里发布了一个问题:https ://github.com/eddyxu/cpp-coveralls/issues/27但我想知道它是否来自我的配置......

4

0 回答 0