Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Xblock workbench and edx-platform don't easily coexist

未关闭
#164 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
python
领域
devops

调研方向

复现安装了 XBlockWorkbench 的标准 devstack 设置,然后在 edx-platform 中运行 rake devstack[studio],并检查 preprocess_assets 期间的失败。检查 requirements/edx/pre.txt、base.txt 和 post.txt 中的依赖安装步骤;当 XBlock 和 edx-platform 可以共存,且 devstack 命令完成时无需执行 pip uninstall XBlockWorkbench,即表示完成。

由索引模型根据 Issue 内容生成。

描述

If you go through the standard "devstack" setup of edx-platform, then do (in some other directory):

git clone https://github.com/edx/XBlock.git xblock
cd xblock
pip install -r requirements.txt

Then go back to platform, and do:

rake devstack[studio]

The following error results:

edxapp@precise64:~/edx-platform$ rake devstack[studio]
Node requirements unchanged, nothing to install
Ruby requirements unchanged, nothing to install
pip install -q --exists-action w -r requirements/edx/pre.txt
pip install -q --exists-action w -r requirements/edx/base.txt
  Could not find a tag or branch 'd89aae2a82f2b', assuming commit.
  Could not find a tag or branch '88ec8a011e481918fdc9d2682d4017c835acd8be', assuming commit.
  Could not find a tag or branch '41815e2ef1b0323f92900f8e60711b0f0c37766b', assuming commit.
  Could not find a tag or branch 'cccc3978ad2df82a78b6f9648fe2e9baddd22f88', assuming commit.
  Could not find a tag or branch '776973740bdaad83a3b029f96e415a7d1e8bec2f', assuming commit.
  Could not find a tag or branch 'd53fe0e81b623f084e91776bcf6369f8b7b63879', assuming commit.
  Could not find a tag or branch 'a1a3e76b269d15b7bbd11976d8aef63e1db6c4c2', assuming commit.
  Could not find a tag or branch 'e3d98f9455', assuming commit.
  Could not find a tag or branch '823a102e48', assuming commit.
  Could not find a tag or branch 'f0211d702d', assuming commit.
  Could not find a tag or branch 'bc6f1adbe439618162079f1004b2b3db3b6f8916', assuming commit.
  Could not find a tag or branch 'afef6647edb488afc471b0239ef8c4b0669e5fdf', assuming commit.
pip install -q --exists-action w -r requirements/edx/post.txt
xmodule_assets common/static/xmodule
./manage.py cms --settings devstack preprocess_assets --traceback 
Traceback (most recent call last):
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/management/base.py", line 217, in execute
    translation.activate('en-us')
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/utils/translation/__init__.py", line 105, in activate
    return _trans.activate(language)
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/utils/translation/trans_real.py", line 194, in activate
    _active.value = translation(language)
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/utils/translation/trans_real.py", line 183, in translation
    default_translation = _fetch(settings.LANGUAGE_CODE)
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/utils/translation/trans_real.py", line 160, in _fetch
    app = import_module(appname)
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module
    __import__(name)
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/contrib/admin/__init__.py", line 4, in <module>
    from django.contrib.admin.options import ModelAdmin, HORIZONTAL, VERTICAL
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/contrib/admin/options.py", line 8, in <module>
    from django.contrib.admin import widgets, helpers
ImportError: cannot import name widgets
asset preprocessing failed!
node_modules/.bin/coffee --compile `find lms/ cms/ common/ -type f -name *.coffee` 
edxapp@precise64:~/edx-platform$ 

However, this can be solved by doing:

pip uninstall XBlockWorkbench
主要语言
Python
星标
470
派生
231
平均合并
2 天 22 小时
30 天内合并 PR
7

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

openedx/XBlock 的其他 Issue

查看 openedx/XBlock 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。