Description
The current implementation of both the tutor-contrib-limesurvey plugin and the LimeSurvey XBlock relies on pkg_resources from setuptools.
In recent Python versions (3.12+), pkg_resources has been deprecated and is no longer bundled with the standard library, which causes import errors when enabling the plugin.
As a result, the plugin cannot be enabled in modern Tutor environments running Python 3.12 or newer, and this breaks deployments that depend on it.
This is a similar problem to the one reported in Tutor core:
overhangio/tutor#966
Steps to Reproduce
- Use a recent Tutor environment (Python ≥ 3.12).
- Install and enable the
tutor-contrib-limesurvey plugin
- Run tutor instance
- Observe the error indicating that
pkg_resources cannot be imported.
Expected Behavior
The plugin should enable successfully without errors on recent Python versions.
Actual Behavior
Plugin fails to enable due to:
ModuleNotFoundError: No module named 'pkg_resources'
Impact
- This plugin is used by other clients, including Ceibal and UPM.
- This issue blocks deployment or upgrades using azimut because run Tutor on Python 3.12 for these clients, or requires removing these plugins in order to migrate them to Azimut
Description
The current implementation of both the
tutor-contrib-limesurveyplugin and the LimeSurvey XBlock relies onpkg_resourcesfromsetuptools.In recent Python versions (3.12+),
pkg_resourceshas been deprecated and is no longer bundled with the standard library, which causes import errors when enabling the plugin.As a result, the plugin cannot be enabled in modern Tutor environments running Python 3.12 or newer, and this breaks deployments that depend on it.
This is a similar problem to the one reported in Tutor core:
overhangio/tutor#966
Steps to Reproduce
tutor-contrib-limesurveypluginpkg_resourcescannot be imported.Expected Behavior
The plugin should enable successfully without errors on recent Python versions.
Actual Behavior
Plugin fails to enable due to:
Impact