运行 edx Studio 时找不到 XModule 分发

XModule ditribution not found when running edx Studio

我在连接到 edx Studio 时遇到问题。当我 运行 paver devstack studio 我得到这个错误

xmodule_assets common/static/xmodule
Traceback (most recent call last):
  File "/edx/app/edxapp/venvs/edxapp/bin/xmodule_assets", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3084, in <module>
    @_call_aside
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3070, in _call_aside
    f(*args, **kwargs)
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3097, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 651, in _build_master
    ws.require(__requires__)
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 952, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 839, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'XModule==0.1.1' distribution was not found and is required by the application




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


---> pavelib.assets.update_assets
---> pavelib.prereqs.install_node_prereqs
python manage.py lms --settings=devstack preprocess_assets lms/static/sass/*.scss lms/static/themed_sass
python manage.py cms --settings=devstack preprocess_assets cms/static/sass/*.scss cms/static/themed_sass
xmodule_assets common/static/xmodule


Build failed running pavelib.assets.update_assets: Subprocess return code: 1

我以为我可以用 pip install 安装 XModule 但事实证明它不是一个包,因为 pip 给了我这个错误

Could not find a version that satisfies the requirement XModule (from versions: )
No matching distribution found for XModule

谁能提供合适的解决方案

通常您会在可管理的托管步骤中安装 XModule。这些还负责 运行 为您安装所有 pip。

如果你真的想手动安装XModule库,你可以使用edx-platform/requirements/edx/local.txt文件。

确保您处于 edxapp 环境中。 sudo su edxapp 在常规的 devstack 中应该足够了,然后 运行 pip install -r requirements/edx/local.txt