Python3 BOSS 上的构建错误(OpenStack 软件计费)
Python3 buildout error on BOSS (Billing for OpenStack Software)
我正在尝试在我的 Ubuntu 14.04 LTS 上安装 BOSS(OpenStack 软件计费)。 (使用 Python 3.4)
这是我尝试 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
下载此项目
谢谢。
++还有一题。
我成功构建了第一个 (buildout -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 angular-perfect-scrollbar@0.0.5 No repository field.
npm WARN package.json eslint-plugin-class-property@0.0.2 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 eslint-config-standard@5.3.5 wants eslint@>=2.0.0
npm ERR! peerinvalid Peer eslint-plugin-class-property@0.0.2 wants eslint@^2.0.0
npm ERR! peerinvalid Peer babel-eslint@5.0.4 wants eslint@<2.3.0
npm ERR! peerinvalid Peer eslint-loader@1.5.0 wants eslint@>=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
.
时发生
需要您的帮助来解决这个问题!谢谢。
至少 buildout.eggscleaner
似乎不兼容 python 3。
在不了解此项目的情况下,我认为您应该尝试从构建配置中删除此依赖项。
删除那些行...
https://github.com/asdfolks/boss/blob/bc0cfe3067bf1cbf26789f7443a36e7cdd2ac869/base.cfg#L19-L21
...然后重试。
我正在尝试在我的 Ubuntu 14.04 LTS 上安装 BOSS(OpenStack 软件计费)。 (使用 Python 3.4)
这是我尝试 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
下载此项目谢谢。
++还有一题。
我成功构建了第一个 (buildout -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 angular-perfect-scrollbar@0.0.5 No repository field.
npm WARN package.json eslint-plugin-class-property@0.0.2 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 eslint-config-standard@5.3.5 wants eslint@>=2.0.0
npm ERR! peerinvalid Peer eslint-plugin-class-property@0.0.2 wants eslint@^2.0.0
npm ERR! peerinvalid Peer babel-eslint@5.0.4 wants eslint@<2.3.0
npm ERR! peerinvalid Peer eslint-loader@1.5.0 wants eslint@>=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
.
需要您的帮助来解决这个问题!谢谢。
至少 buildout.eggscleaner
似乎不兼容 python 3。
在不了解此项目的情况下,我认为您应该尝试从构建配置中删除此依赖项。
删除那些行... https://github.com/asdfolks/boss/blob/bc0cfe3067bf1cbf26789f7443a36e7cdd2ac869/base.cfg#L19-L21
...然后重试。