{"id":24651,"library":"staff-graded-xblock","title":"Staff Graded XBlock","description":"An XBlock for Open edX that allows staff to manually grade student submissions. Version 4.0.0 is current; releases follow an irregular cadence driven by upstream edX platform changes.","status":"active","version":"4.0.0","language":"python","source_language":"en","source_url":"https://github.com/openedx/staff-graded-xblock","tags":["xblock","openedx","grading"],"install":[{"cmd":"pip install staff-graded-xblock","lang":"bash","label":"PyPI"}],"dependencies":[{"reason":"Runtime dependency for XBlock framework","package":"XBlock","optional":false},{"reason":"Required for Django integration","package":"django","optional":false}],"imports":[{"note":"Correct import path for XBlock class","symbol":"StaffGradedXBlock","correct":"from staff_graded import StaffGradedXBlock"}],"quickstart":{"code":"from staff_graded import StaffGradedXBlock\nblock = StaffGradedXBlock(runtime=None, field_data=None, scope_ids=None)\nprint(block.display_name)","lang":"python","description":"Instantiate the XBlock (requires full runtime for actual use)."},"warnings":[{"fix":"Upgrade to >=3.0.0 and ensure Python >=3.9.","message":"v3.0.0 dropped support for Python 3.8 and replaced pkg_resources with importlib_resources.","severity":"breaking","affected_versions":"<3.0.0"},{"fix":"Use 'staff-graded-xblock' (all dashes) in requirements and pip commands.","message":"The package name on PyPI changed from 'staff-graded-xblock' to 'staff-graded-xblock' with dashes only. The old name with underscores may still resolve but is deprecated.","severity":"deprecated","affected_versions":"all"},{"fix":"Ensure you have the proper platform integration and Studio configuration.","message":"This XBlock does not include a default student view; it relies on the Open edX platform to render grading UI.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Use 'from staff_graded import StaffGradedXBlock' (note: no underscore after 'staff').","cause":"Trying to import the deprecated module name with underscores.","error":"ModuleNotFoundError: No module named 'staff_graded_xblock'"},{"fix":"Use: from staff_graded import StaffGradedXBlock","cause":"Incorrect import path.","error":"ImportError: cannot import name 'StaffGradedXBlock' from 'staff_graded_xblock'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}