运行edX开发人员堆栈:运行摊铺机lms时出错

时间:2014-11-16 18:21:19

标签: python python-2.7 edx

我正在关注edx教程以运行devstack(来自http://edx-installing-configuring-and-running.readthedocs.org/en/latest/devstack/run_devstack.html#default-accounts-on-devstack)我在运行命令时遇到错误" paver lms"

错误如下:

edxapp@precise64:~/edx-platform$ paver devstack lms
---> pavelib.servers.devstack
---> pavelib.prereqs.install_prereqs
---> pavelib.assets.update_assets
---> pavelib.prereqs.install_ruby_prereqs
---> pavelib.prereqs.install_node_prereqs
python manage.py lms --settings=devstack preprocess_assets
Traceback (most recent call last):
  File "manage.py", line 15, in <module>
    from safe_lxml import defuse_xml_libs
ImportError: No module named safe_lxml

Captured Task Output:
---------------------

---> pavelib.servers.devstack
---> pavelib.prereqs.install_prereqs
---> pavelib.assets.update_assets
---> pavelib.prereqs.install_ruby_prereqs
---> pavelib.prereqs.install_node_prereqs
python manage.py lms --settings=devstack preprocess_assets

Build failed running pavelib.servers.devstack: Subprocess return code: 1

请指导我运行命令需要做什么。

1 个答案:

答案 0 :(得分:2)

你必须运行

paver install_prereqs
paver update_assets lms --settings=devstack
paver update_assets studio/cms --settings=devstack

否则手动安装要求

将以下内容添加到文件要求/ edx / local.txt并重新运行上述命令

-e common/lib/capa
-e common/lib/chem
-e common/lib/dogstats
-e common/lib/safe_lxml
-e common/lib/sandbox-packages
-e common/lib/symmath
-e common/lib/xmodule

请参阅paver