Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace deprecated imp module with importlib for Python compatibility #1465

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

teja-pola
Copy link

Replaced all usages of the deprecated imp module with importlib to ensure compatibility with Python 3.12 and beyond.

Copy link

@cyuria cyuria left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Regardless it seems to me like this repo isn't really maintained at the moment. There are a number of open PRs which are ready to be merged as far as I can tell, but haven't been. I have opened an issue #1466 with regards to the status of the project, so hopefully someone will pick up the maintenance and your PR can be properly sorted out.

Copy link

@cyuria cyuria Sep 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure exactly what is going on here

Edit: It looks like somehow your settings have made it into the PR

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you aren't doing anything on error, surely it would just be better to remove the try entirely. If load_source isn't available, it will fail later on with the instantiation of Settings at the bottom anyway, leading to a more confusing error message.

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.

2 participants