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

Fix DeprecationError from ModuleSpec.loader.load_module in Red.load_extension #5956

Open
wants to merge 14 commits into
base: V3/develop
Choose a base branch
from

Conversation

Kuro-Rui
Copy link
Contributor

@Kuro-Rui Kuro-Rui commented Jan 6, 2023

Description of the changes

This PR changes load_module in Red.load_extension to exec_module to give support for Python 3.12

Have the changes in this PR been tested?

Yes

@Jackenmen Jackenmen added this to the 3.5.0 milestone Jan 6, 2023
@Jackenmen
Copy link
Member

We currently have some other plans for changes to the import system (related to #2446) so I'm going to mark this as Blocked for now and we will see if it's still needed once we either make those changes or decide to defer them.

@Kuro-Rui Kuro-Rui reopened this Mar 24, 2023
@github-actions github-actions bot added the Category: Core - Bot Class This is related to the `redbot.core.bot.Red` class. label Mar 24, 2023
@Kuro-Rui
Copy link
Contributor Author

Sorry, closed by accident because of conflicts 😅

@Flame442 Flame442 modified the milestones: 3.5.0, 3.5.1 Apr 13, 2023
@Kuro-Rui Kuro-Rui changed the title Fix DeprecationError in Red.load_extension Fix DeprecationError from ModuleSpec.loader.load_module in Red.load_extension Apr 26, 2023
@Kuro-Rui
Copy link
Contributor Author

Kuro-Rui commented Nov 4, 2023

Recently found a bug, apparently if you load warnings (redbot.cogs.warnings) it replaces the built-in warnings module with red's warnings cog. Will find a fix ASAP.

@Kuro-Rui
Copy link
Contributor Author

Kuro-Rui commented Nov 4, 2023

Fixed!

@Jackenmen Jackenmen modified the milestones: 3.5.6, 3.5.7 Mar 18, 2024
@Jackenmen Jackenmen modified the milestones: 3.5.9, 3.5.10 Apr 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Blocked Category: Core - Bot Class This is related to the `redbot.core.bot.Red` class.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants