Red-DiscordBot icon indicating copy to clipboard operation
Red-DiscordBot copied to clipboard

Fix DeprecationError from `ModuleSpec.loader.load_module` in `Red.load_extension`

Open Kuro-Rui opened this issue 2 years ago • 4 comments

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

Kuro-Rui avatar Jan 06 '23 00:01 Kuro-Rui

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.

Jackenmen avatar Jan 06 '23 00:01 Jackenmen

Sorry, closed by accident because of conflicts 😅

Kuro-Rui avatar Mar 24 '23 14:03 Kuro-Rui

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 avatar Nov 04 '23 01:11 Kuro-Rui

Fixed!

Kuro-Rui avatar Nov 04 '23 02:11 Kuro-Rui