Vagrant&#; paver devstack lms'启动服务器:命令" python setup.py egg_info"失败,错误代码为1

时间:2015-07-07 09:42:20

标签: django git vagrant virtualbox vagrantfile

我试图安装一个devstack edx,但我遇到了一些问题。我找到了这篇文章

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时我总是收到该消息。

2 个答案:

答案 0 :(得分:1)

如果上述步骤不起作用,请尝试从Vagrant实例安装Cython,meliae == 0.4.0和libxmlsec1。

答案 1 :(得分:0)

通过以下步骤解决此问题:

Requested meliae==0.4.0 (from -r requirements/edx/base.txt (line 53)),but installing version None

此行定义当vagrant尝试安装所有base.txt文件依赖时,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)来自exit的{​​{1}}    3.2)关于vagrant实例(在edx-platform命令之后)安装所有注释包(在我的情况下为vagrant ssh

现在再次运行你的lms系统:)