Vagrant 'paver devstack lms' 启动服务器:命令 "python setup.py egg_info" 失败,错误代码为 1
Vagrant 'paver devstack lms' Starting server: Command "python setup.py egg_info" failed with error code 1
我正在尝试安装 devstack edx,但遇到了一些问题。我找到了这个 post
How to fix python requirements update error (master branch) - SSO feature merged
但对我不起作用。
当我尝试启动服务器时,我遇到了下一个失败:
dxapp@precise64:~/edx-platform$ paver devstack studio
---> pavelib.servers.devstack
---> pavelib.prereqs.install_prereqs
---> pavelib.prereqs.install_ruby_prereqs
Ruby prereqs unchanged, skipping...
---> pavelib.prereqs.install_node_prereqs
Node prereqs unchanged, skipping...
---> pavelib.prereqs.install_python_prereqs
pip install -q --exists-action w -r requirements/edx/pre.txt
You are using pip version 6.0.8, however version 7.1.0 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
pip install -q --exists-action w -r requirements/edx/github.txt
You are using pip version 6.0.8, however version 7.1.0 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Could not find a tag or branch '96e1922348bfe6d99201b9512a9ed946c87b7e0b', assuming commit.
Could not find a tag or branch 'b0686a76f1ce3532088c4aee6e76b9abe61cc808', assuming commit.
Could not find a tag or branch 'd89aae2a82f2b', assuming commit.
[... more lines with the same content ....]
Could not find a tag or branch 'a286e89c73e1b788e35ac5b08a54b71a9fa63cfd', assuming commit.
Could not find a tag or branch '64a8b603f42669bb7fdca03d364d4e8d3d6ad67d', assuming commit.
Could not find a tag or branch '172a90fd2738f8142c10478356b2d9ed3e55334a', assuming commit.
pip install -q --exists-action w -r requirements/edx/local.txt
You are using pip version 6.0.8, however version 7.1.0 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
pip install -q --exists-action w -r requirements/edx/base.txt
You are using pip version 6.0.8, however version 7.1.0 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
meliae is potentially insecure and unverifiable.
Requested meliae==0.4.0 (from -r requirements/edx/base.txt (line 53)), but installing version None
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-rNPjSe/dm.xmlsec.binding`<br>
Captured Task Output:
---------------------
---> pavelib.servers.devstack
---> pavelib.prereqs.install_prereqs
---> pavelib.prereqs.install_ruby_prereqs
---> pavelib.prereqs.install_node_prereqs
---> pavelib.prereqs.install_python_prereqs
pip install -q --exists-action w -r requirements/edx/pre.txt
pip install -q --exists-action w -r requirements/edx/github.txt
pip install -q --exists-action w -r requirements/edx/local.txt
pip install -q --exists-action w -r requirements/edx/base.txt
Build failed running pavelib.servers.devstack: Subprocess return code:1
顺便说一句,我已经尝试更新 pip,看起来一切正常(已成功安装 pip-7.1.0),但我在尝试 paver devstack studio 时总是收到该消息。
通过一些步骤解决这个问题:
Requested meliae==0.4.0 (from -r requirements/edx/base.txt (line 53)),but installing version None
这一行定义当 vagrant 尝试安装所有 base.txt 文件依赖项时 文件中存在 一些错误。
分步解决这个问题:
1) 打开 base.txt
文件并注释 meliae==0.4.0
行,如 (#meliae==0.4.0
)
2) 现在尝试 pip install -r base.txt
文件,如果它成功 运行 那么没问题,或者如果任何其他包产生问题然后按照 1(现在评论这个)步骤。
3) 成功后运行 base.txt
3.1) 来自 edx-platform
的 exit
3.2) 在 vagrant 实例上(在 vagrant ssh
命令之后)安装所有注释包(在我的例子中是 pip install meliae==0.4.0
)
现在 运行 又是你的 lms 系统:)
如果上述步骤不起作用,请尝试从 Vagrant 实例安装 Cython、meliae==0.4.0 和 libxmlsec1。
我正在尝试安装 devstack edx,但遇到了一些问题。我找到了这个 post
How to fix python requirements update error (master branch) - SSO feature merged
但对我不起作用。 当我尝试启动服务器时,我遇到了下一个失败:
dxapp@precise64:~/edx-platform$ paver devstack studio
---> pavelib.servers.devstack
---> pavelib.prereqs.install_prereqs
---> pavelib.prereqs.install_ruby_prereqs
Ruby prereqs unchanged, skipping...
---> pavelib.prereqs.install_node_prereqs
Node prereqs unchanged, skipping...
---> pavelib.prereqs.install_python_prereqs
pip install -q --exists-action w -r requirements/edx/pre.txt
You are using pip version 6.0.8, however version 7.1.0 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
pip install -q --exists-action w -r requirements/edx/github.txt
You are using pip version 6.0.8, however version 7.1.0 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Could not find a tag or branch '96e1922348bfe6d99201b9512a9ed946c87b7e0b', assuming commit.
Could not find a tag or branch 'b0686a76f1ce3532088c4aee6e76b9abe61cc808', assuming commit.
Could not find a tag or branch 'd89aae2a82f2b', assuming commit.
[... more lines with the same content ....]
Could not find a tag or branch 'a286e89c73e1b788e35ac5b08a54b71a9fa63cfd', assuming commit.
Could not find a tag or branch '64a8b603f42669bb7fdca03d364d4e8d3d6ad67d', assuming commit.
Could not find a tag or branch '172a90fd2738f8142c10478356b2d9ed3e55334a', assuming commit.
pip install -q --exists-action w -r requirements/edx/local.txt
You are using pip version 6.0.8, however version 7.1.0 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
pip install -q --exists-action w -r requirements/edx/base.txt
You are using pip version 6.0.8, however version 7.1.0 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
meliae is potentially insecure and unverifiable.
Requested meliae==0.4.0 (from -r requirements/edx/base.txt (line 53)), but installing version None
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-rNPjSe/dm.xmlsec.binding`<br>
Captured Task Output:
---------------------
---> pavelib.servers.devstack
---> pavelib.prereqs.install_prereqs
---> pavelib.prereqs.install_ruby_prereqs
---> pavelib.prereqs.install_node_prereqs
---> pavelib.prereqs.install_python_prereqs
pip install -q --exists-action w -r requirements/edx/pre.txt
pip install -q --exists-action w -r requirements/edx/github.txt
pip install -q --exists-action w -r requirements/edx/local.txt
pip install -q --exists-action w -r requirements/edx/base.txt
Build failed running pavelib.servers.devstack: Subprocess return code:1
顺便说一句,我已经尝试更新 pip,看起来一切正常(已成功安装 pip-7.1.0),但我在尝试 paver devstack studio 时总是收到该消息。
通过一些步骤解决这个问题:
Requested meliae==0.4.0 (from -r requirements/edx/base.txt (line 53)),but installing version None
这一行定义当 vagrant 尝试安装所有 base.txt 文件依赖项时 文件中存在 一些错误。
分步解决这个问题:
1) 打开 base.txt
文件并注释 meliae==0.4.0
行,如 (#meliae==0.4.0
)
2) 现在尝试 pip install -r base.txt
文件,如果它成功 运行 那么没问题,或者如果任何其他包产生问题然后按照 1(现在评论这个)步骤。
3) 成功后运行 base.txt
3.1) 来自 edx-platform
的 exit
3.2) 在 vagrant 实例上(在 vagrant ssh
命令之后)安装所有注释包(在我的例子中是 pip install meliae==0.4.0
)
现在 运行 又是你的 lms 系统:)
如果上述步骤不起作用,请尝试从 Vagrant 实例安装 Cython、meliae==0.4.0 和 libxmlsec1。