Gorialis / jishaku

A debugging and testing cog for discord.py rewrite bots.
https://jishaku.readthedocs.io/en/latest/
MIT License
539 stars 176 forks source link

Python 3.13 opcode AttributeError #236

Closed fretgfr closed 1 week ago

fretgfr commented 3 weeks ago

Summary

Loading Jishaku under Python 3.13 results in an AttributeError. This is caused by the removal of opcode._specialized_instructions . This seems to have been replaced internally by opcode._specialized_opmap.

Responsible Code

Reproduction steps

Load extension while running under Python 3.13.

Expected results

Extension loads successfully.

Actual results

discord.ext.commands.errors.ExtensionFailed: Extension 'jishaku' raised an error: AttributeError: module 'opcode' has no attribute '_specialized_instructions'

Checklist

System information

Jishaku Version: 2.5.2a503+g4408b2a.master

Python v3.13.0-candidate discord.py v2.5.0-alpha discord.py metadata: v2.5.0a5060+gff638d39 aiohttp v3.10.4 system info: Darwin 23.5.0 Darwin Kernel Version 23.5.0: Wed May 1 20:12:58 PDT 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6000

Gorialis commented 2 weeks ago

0c16ddca174726966704a8f12f6e8f0e26528202 should hopefully fix this. Let me know if it works.

fretgfr commented 1 week ago

That commit does indeed fix this issue.