Skip to content

Fix pkg resources#17

Open
EJ-PJ wants to merge 2 commits into
IvanFon:masterfrom
EJ-PJ:fix-pkg_resources
Open

Fix pkg resources#17
EJ-PJ wants to merge 2 commits into
IvanFon:masterfrom
EJ-PJ:fix-pkg_resources

Conversation

@EJ-PJ
Copy link
Copy Markdown

@EJ-PJ EJ-PJ commented May 1, 2026

Hi. I recently came across whit this great tool for visualize xinput devices and edit their parameters.

While testing the project on recent Python versions (specifically Python 3.12+), I noticed some import errors.

The tool currently triggers a ModuleNotFoundError: No module named 'pkg_resources'. This is because "pkg_resources (part of setuptools) has been deprecated and was removed from the standard library starting with Python 3.12."
(A more in-depth look at the issue can be found here: mu-editor/mu#2485 (comment))

This PR addresses the issue by replacing the deprecated pkg_resources imports with importlib.resources.

I hope this can be merged into the master branch or, at the very least, help others get this tool working on modern Python versions.

@EJ-PJ EJ-PJ closed this May 1, 2026
@EJ-PJ EJ-PJ reopened this May 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant