{"id":24845,"library":"xblock-poll","title":"XBlock Poll","description":"An XBlock for creating polls and surveys in Open edX. Version 1.15.1, maintained by Open Craft. Release cadence is irregular, roughly 1-2 minor versions per year.","status":"active","version":"1.15.1","language":"python","source_language":"en","source_url":"https://github.com/open-craft/xblock-poll","tags":["xblock","open-edx","poll","survey"],"install":[{"cmd":"pip install xblock-poll","lang":"bash","label":"Install from PyPI"}],"dependencies":[{"reason":"Core framework required to run XBlocks.","package":"XBlock","optional":false}],"imports":[{"note":"Correct import path is 'poll' module, not 'xblock_poll'.","wrong":"","symbol":"PollXBlock","correct":"from poll import PollXBlock"},{"note":"Same module as PollXBlock.","wrong":"","symbol":"SurveyXBlock","correct":"from poll import SurveyXBlock"}],"quickstart":{"code":"from poll import PollXBlock\nfrom workbench.runtime import WorkbenchRuntime\n\nruntime = WorkbenchRuntime()\nblock = PollXBlock(runtime, scope_ids=runtime.id_generator.create_definition('poll'))\nprint(type(block).__name__)","lang":"python","description":"Minimal instantiation of PollXBlock (for testing/development with XBlock SDK)."},"warnings":[{"fix":"Upgrade Django to 3.2 or later.","message":"Django 2.2 support was dropped; Django 3.2+ required in recent versions.","severity":"deprecated","affected_versions":">=1.12.0"},{"fix":"Ensure your project uses Celery 5.0+.","message":"Celery upgrade (>=5.0) required for async tasks in v1.12.0+. The old celery 4.x API is no longer supported.","severity":"breaking","affected_versions":">=1.12.0"},{"fix":"Use Python 3.6+ (preferably 3.8+).","message":"Python 2.7 support removed after v1.9.x.","severity":"deprecated","affected_versions":">=1.10.0"},{"fix":"Add 'poll' to advanced_modules list in course settings or set XBLOCK_SELECTION in Django settings.","message":"If you use the 'poll' block in an Open edX course, you must also enable the Poll XBlock in the advanced settings (Advanced Module List) of the course or globally via XBLOCK_SELECTION in settings.","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":"Ensure you have installed xblock-poll via pip, then import using 'from poll import PollXBlock'.","cause":"The package installs as 'xblock-poll' but the Python module is 'poll'.","error":"ImportError: No module named poll"},{"fix":"Install xblock-sdk and run with DJANGO_SETTINGS_MODULE=workbench.settings:run or as part of an Open edX environment.","cause":"Missing XBlock SDK or misconfigured Django settings for XBlock workbench.","error":"django.core.exceptions.ImproperlyConfigured: 'XBlock' is not a registered widget"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}