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的问题。
发布于 2018-12-20 22:53:58
您使用的是xbob.buildout扩展(https://pypi.org/project/xbob.buildout/),它显然会对路径进行一些修改。为此,它使用了zc.buildout.easy_install中的setuptools_loc属性,这个属性显然已经不存在了。
有问题的代码行是removed in January 2017,这行代码是处理旧的setuptools/distribute差异的代码的一部分。不再需要它了。
所以你应该看看xbob.buildout是否可以调整(上一次发布是在2015年)。或者您可以尝试选择一个旧的buildout (包括一个旧的setuptools)。
https://stackoverflow.com/questions/53853612
复制相似问题