{"id":23196,"library":"acid-xblock","title":"Acid XBlock","description":"Acid XBlock is a test XBlock for the Open edX platform that stresses the XBlock API. It provides a comprehensive test of XBlock functionality including various field types, scopes, and runtime interactions. Current version: 0.4.1, released September 2024. Releases are irregular.","status":"active","version":"0.4.1","language":"python","source_language":"en","source_url":"https://github.com/openedx/acid-block","tags":["xblock","openedx","testing","acid"],"install":[{"cmd":"pip install acid-xblock","lang":"bash","label":"Install from PyPI"}],"dependencies":[{"reason":"Acid XBlock is an XBlock and requires the XBlock framework.","package":"XBlock","optional":false}],"imports":[{"note":"The correct module name uses underscore, not hyphen or concatenation.","wrong":"from acidxblock import AcidBlock","symbol":"AcidBlock","correct":"from acid_xblock import AcidBlock"}],"quickstart":{"code":"# Add to your Open edX environment\n# Usually installed via requirements, then enabled in the advanced settings.\n# To test in a Python shell (if inside an XBlock runtime context):\nfrom acid_xblock import AcidBlock\nprint(AcidBlock.__name__)","lang":"python","description":"Get the AcidBlock class. For actual usage, install the package and add 'acid' to the Advanced Module list in Studio course settings."},"warnings":[{"fix":"Upgrade to Python 3.9+ or use acid-xblock==0.3.1","message":"Version 0.4.0 dropped support for Python 3.8. If your environment uses Python 3.8, upgrade Python or pin to acid-xblock<0.4.0.","severity":"breaking","affected_versions":">=0.4.0"},{"fix":"Use 'from acid_xblock import AcidBlock' or 'import acid_xblock'.","message":"The package name on PyPI is 'acid-xblock', but the Python module is 'acid_xblock'. Users often try to import 'acidxblock' or 'acid' directly.","severity":"gotcha","affected_versions":"all"},{"fix":"Do not rely on this package in production courses. Use only for development or testing.","message":"The package 'acid-xblock' is a test XBlock and is not intended for production use. It may not receive security updates.","severity":"deprecated","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run: from acid_xblock import AcidBlock","cause":"Incorrect import path: the module name uses underscores, not hyphens or concatenated words.","error":"ModuleNotFoundError: No module named 'acidxblock'"},{"fix":"Ensure you are using version 0.4.0 or later, and check that the package is installed: pip show acid-xblock","cause":"The class AcidBlock may not be available in older versions, or the package was installed but the wrong symbol is referenced.","error":"ImportError: cannot import name 'AcidBlock' from 'acid_xblock'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}