phenom4n4n / phen-cogs

My public cogs for Red, Discord bot.
https://phen-cogs.readthedocs.io/en/latest/
MIT License
120 stars 71 forks source link

[tags] tags will not load on latest dev version. #160

Closed ltzmax closed 1 year ago

ltzmax commented 1 year ago

Hello. though iknow red 3.5.0 has not yet released. i wanted to leave the error i got, the latest changes makes now tags not load due to new changes has happened.

Exception during loading of package
Traceback (most recent call last):
  File "/home/max/redenv/lib/python3.11/site-packages/redbot/core/core_commands.py", line 221, in _load
    await bot.load_extension(spec)
  File "/home/max/redenv/lib/python3.11/site-packages/redbot/core/bot.py", line 1703, in load_extension
    lib = spec.loader.load_module()
          ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap_external>", line 605, in _check_name_wrapper
  File "<frozen importlib._bootstrap_external>", line 1120, in load_module
  File "<frozen importlib._bootstrap_external>", line 945, in load_module
  File "<frozen importlib._bootstrap>", line 290, in _load_module_shim
  File "<frozen importlib._bootstrap>", line 721, in _load
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/home/max/redbot/cogs/CogManager/cogs/tags/__init__.py", line 32, in <module>
    from .core import Tags
  File "/home/max/redbot/cogs/CogManager/cogs/tags/core.py", line 44, in <module>
    from .mixins import Commands, OwnerCommands, Processor
  File "/home/max/redbot/cogs/CogManager/cogs/tags/mixins/__init__.py", line 2, in <module>
    from .owner import OwnerCommands
  File "/home/max/redbot/cogs/CogManager/cogs/tags/mixins/owner.py", line 46, in <module>
    class OwnerCommands(MixinMeta):
  File "/home/max/redbot/cogs/CogManager/cogs/tags/mixins/owner.py", line 108, in OwnerCommands
    self, ctx: commands.Context, name: str, *, code: Dev.cleanup_code
                                                     ^^^^^^^^^^^^^^^^
AttributeError: type object 'Dev' has no attribute 'cleanup_code'