crowdsourcehinter XBlock
raw JSON → 1.0.0 verified Fri May 01 auth: no python
An XBlock for Open edX that allows crowdsourced hints in exercises. Current version is 1.0.0, released infrequently.
pip install crowdsourcehinter-xblock Common errors
error ModuleNotFoundError: No module named 'crowdsourcehinter' ↓
cause The package is installed under the name 'crowdsourcehinter-xblock', but import path is 'crowdsourcehinter'.
fix
Install with 'pip install crowdsourcehinter-xblock' and import as 'crowdsourcehinter'.
error RuntimeError: XBlock requires Django settings ↓
cause The XBlock is used outside of an Open edX environment without proper Django configuration.
fix
Run within an Open edX development stack or configure Django settings for XBlock.
Warnings
breaking Python 3.8 and 3.11 support dropped. Requires Python 3.9 or 3.10. ↓
fix Use Python 3.9 or 3.10; upgrade runtime environment.
gotcha This XBlock is designed specifically for Open edX. It will not work standalone without the XBlock runtime. ↓
fix Ensure your environment includes the XBlock SDK or Open edX platform.
Imports
- CrowdsourceHinterXBlock wrong
from xblocks.crowdsourcehinter import CrowdsourceHinterXBlockcorrectfrom crowdsourcehinter import CrowdsourceHinterXBlock
Quickstart
from crowdsourcehinter import CrowdsourceHinterXBlock
# To use in an Open edX course, add the XBlock to your advanced module list.
print('CrowdsourceHinterXBlock ready')