1

我正在按照 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

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

4

1 回答 1

2

你必须跑

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

否则手动安装要求

将以下内容添加到文件 requirements/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

请参考摊铺机

于 2015-01-04T18:32:44.073 回答