Bin zc.buildout

时间:2018-12-19 14:45:24

标签: python mnist buildout

An internal error occurred due to a bug in either zc.buildout or in a
    recipe being used:
    Traceback (most recent call last):
      File "/home/david/xbob.db.nist_sre12-1.1.1/eggs/zc.buildout-2.12.2-py2.7.egg/zc/buildout/buildout.py", line 2128, in main
        getattr(buildout, command)(args)
      File "/home/david/xbob.db.nist_sre12-1.1.1/eggs/zc.buildout-2.12.2-py2.7.egg/zc/buildout/buildout.py", line 798, in install
        installed_files = self[part]._call(recipe.install)
      File "/home/david/xbob.db.nist_sre12-1.1.1/eggs/zc.buildout-2.12.2-py2.7.egg/zc/buildout/buildout.py", line 1558, in _call
        return f()
      File "/home/david/xbob.db.nist_sre12-1.1.1/eggs/xbob.buildout-1.0.4-py2.7.egg/xbob/buildout/scripts.py", line 244, in install
        self.coverage.install_on_wrapped_env() + \
      File "/home/david/xbob.db.nist_sre12-1.1.1/eggs/xbob.buildout-1.0.4-py2.7.egg/xbob/buildout/python.py", line 83, in install_on_wrapped_env
        'paths': os.pathsep.join(tools.get_pythonpath(ws, self.buildout['buildout'], self.prefixes)),
      File "/home/david/xbob.db.nist_sre12-1.1.1/eggs/xbob.buildout-1.0.4-py2.7.egg/xbob/buildout/tools.py", line 242, in get_pythonpath
        prepend_path(zc.buildout.easy_install.setuptools_loc, paths)
    AttributeError: 'module' object has no attribute 'setuptools_loc'

尝试安装buildout并返回此错误,可能是问题zc.buildout-2.12.2-py2.7.egg。

1 个答案:

答案 0 :(得分:0)

您正在使用xbob.buildout扩展名(https://pypi.org/project/xbob.buildout/),该扩展名显然对路径做了一些修改。为此,它使用了setuptools_loc中的zc.buildout.easy_install属性,该属性显然不再存在。

有问题的行是removed in January 2017,该行是处理旧的setuptools / distribute差异的代码的一部分。不再需要了。

因此,您应该查看xbob.buildout是否可以调整(最新版本是2015年)。或者,您可以尝试选择一个旧的构建物(包括一个旧的安装工具)。