Skip to content

Plugin fails to enable on recent Python versions due to pkg_resources usage #12

Description

@DonatoBD

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

  1. Use a recent Tutor environment (Python ≥ 3.12).
  2. Install and enable the tutor-contrib-limesurvey plugin
  3. Run tutor instance
  4. 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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions