Hello everyone, I recently updated to the latest version of hikari-miru. I am using Miru, Hikari, and Lightbulb.
Miru now requires that I create a miru.Client to control my Modals and buttons, according to documentation found here: https://miru.hypergonial.com/guides/migrating_from_v3/
I have my commands split across multiple files. Within those files, I also take care of creating views, modals, etc.
When attempting to import my miru.Client into any file, my Lightbulb extensions stop working completely. When adding the import, I get this error:
Exception has occurred: ExtensionMissingLoad
Extension 'Editors.Editor' is missing a load function
File "iHidThisPath\main.py", line 12, in <module>
bot.load_extensions("Editors.Editor", "Teams.Team", "Clients.Client")
File "iHidThisPath\Editor.py", line 12, in <module>
from main import miruClient
File "iHidThisPath\main.py", line 12, in <module>
bot.load_extensions("Editors.Editor", "Teams.Team", "Clients.Client")
lightbulb.errors.ExtensionMissingLoad: Extension 'Editors.Editor' is missing a load function
I have load and unload functions written. Upon removing my imports, my code runs just fine (of course without modal/button functionality). I would sometimes get the following error, indicating a circular import:
Exception has occurred: ImportError
cannot import name 'miruClient' from partially initialized module 'MIRU_Control' (most likely due to a circular import) (iHidThisPath\MIRU_Control.py)
Though, chatGPT and I have doubled checked that there are no circular imports that I am causing. I would really like to avoid restructuring all of my code. If there is no proper solution to this, I'd probably revert to an older version of Miru. Thank you.
PS: I am willing to give more information if needed.