我试图在我的Ubuntu 14.04 LTS上安装BOSS(Billing for OpenStack软件)。 (使用Python 3.4)BOSS上的Python3编译错误(为OpenStack软件计费)
这是我得到了什么,当我尝试buildout -c backend.cfg
/opt/boss$ sudo bin/buildout -c backend.cfg
While:
Installing.
Loading extensions.
An internal error occurred due to a bug in either zc.buildout or in a
recipe being used:
Traceback (most recent call last):
File "/opt/boss/.buildout/eggs/zc.buildout-2.5.3-py3.4.egg/zc/buildout/buildout.py", line 1995, in main
getattr(buildout, command)(args)
File "/opt/boss/.buildout/eggs/zc.buildout-2.5.3-py3.4.egg/zc/buildout/buildout.py", line 507, in install
self._load_extensions()
File "/opt/boss/.buildout/eggs/zc.buildout-2.5.3-py3.4.egg/zc/buildout/buildout.py", line 1039, in _load_extensions
ep.load()(self)
File "/opt/boss/.buildout/eggs/setuptools-27.2.0-py3.4.egg/pkg_resources/__init__.py", line 2258, in load
return self.resolve()
File "/opt/boss/.buildout/eggs/setuptools-27.2.0-py3.4.egg/pkg_resources/__init__.py", line 2264, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/opt/boss/.buildout/eggs/buildout.eggscleaner-0.1.7-py3.4.egg/buildout/eggscleaner/__init__.py", line 70
print "Can't remove path %s: %s" % (path, e)
^
SyntaxError: invalid syntax
我只是跟着在源文件中的安装文档。 有人可以帮我解决这个问题吗?
你可以https://github.com/asdfolks/boss
感谢下载该项目。
++多一个问题。
我成功构建了第一个(构建-c backend.cfg),但在下一个安装步骤中遇到了几乎相同的问题。
Installing frontend-admin.
/tmp/tmpj61mn5xj/run: 1: cd: can't cd to frontend/admin/apps/data-pro-admin
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No repository field.
npm http GET https://registry.npmjs.org/bower
npm http 304 https://registry.npmjs.org/bower
npm ERR! peerinvalid The package eslint does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer [email protected] wants [email protected]>=2.0.0
npm ERR! peerinvalid Peer [email protected] wants [email protected]^2.0.0
npm ERR! peerinvalid Peer [email protected] wants [email protected]<2.3.0
npm ERR! peerinvalid Peer [email protected] wants [email protected]>=1.6.0 <4.0.0
npm ERR! System Linux 4.4.0-31-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "bower"
npm ERR! cwd /opt/boss
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! code EPEERINVALID
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /opt/boss/npm-debug.log
npm ERR! not ok code 0
While:
Installing frontend-admin.
An internal error occurred due to a bug in either zc.buildout or in a
recipe being used:
Traceback (most recent call last):
File "/opt/boss/.buildout/eggs/zc.buildout-2.5.3-py3.4.egg/zc/buildout/buildout.py", line 1995, in main
getattr(buildout, command)(args)
File "/opt/boss/.buildout/eggs/zc.buildout-2.5.3-py3.4.egg/zc/buildout/buildout.py", line 666, in install
installed_files = self[part]._call(recipe.install)
File "/opt/boss/.buildout/eggs/zc.buildout-2.5.3-py3.4.egg/zc/buildout/buildout.py", line 1410, in _call
return f()
File "/opt/boss/.buildout/eggs/collective.recipe.cmd-0.11-py3.4.egg/collective/recipe/cmd/__init__.py", line 56, in install
self.execute()
File "/opt/boss/.buildout/eggs/collective.recipe.cmd-0.11-py3.4.egg/collective/recipe/cmd/__init__.py", line 69, in execute
run_commands(cmds, self.shell)
File "/opt/boss/.buildout/eggs/collective.recipe.cmd-0.11-py3.4.egg/collective/recipe/cmd/__init__.py", line 39, in run_commands
check_call('%s %s' % (shell, tmpfile), shell=True)
File "/usr/lib/python3.4/subprocess.py", line 561, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'sh /tmp/tmpj61mn5xj/run' returned non-zero exit status 1
当然,我编辑的base.cfg
像https://github.com/asdfolks/boss/blob/bc0cfe3067bf1cbf26789f7443a36e7cdd2ac869/base.cfg#L19-L21此。所以,buildout -c backend
没有发生错误。但当我试图buildout -c frontend
时发生。
需要你的手来解决这个问题!谢谢。
是的,eggcleener扩展有一个'print something'语句,它应该是python 3中的一个'print(something)'函数调用。 –
感谢您的帮助。有用! – kycfeel
我在文章中增加了一个问题。你能帮我检查一下吗? – kycfeel