0

我在连接 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

我以为我可以安装XModulepip install但结果证明它不是一个包,因为 pip 给了我这个错误

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

任何人都可以提供适当的解决方案

4

1 回答 1

1

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

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

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

于 2017-06-01T08:57:20.693 回答