#Am I missing something to make this live patching work?

1 messages · Page 1 of 1 (latest)

manic sluice
#

I thought I have everything correct, but I'm getting a ModuleNotFounderError for a module named 'binder_extension'.

main.py

import jurigged

bot.load_extension("booster_pack_extension")
bot.load_extension('binder_extension.ext.jurigged')
bot.start()```

binder_extension.py
```py
import jurigged```
Error:
```diff
Traceback (most recent call last):
  File "C:\CodeDump\06_Bot_Yugioh\main.py", line 141, in <module>
    bot.load_extension('binder_extension.py.jurigged')
  File "C:\Users\Jacob\AppData\Local\Programs\Python\Python311\Lib\site-packages\interactions\client\client.py", line 1995, in load_extension
    module = importlib.import_module(module_name, package)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Jacob\AppData\Local\Programs\Python\Python311\Lib\importlib\__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1126, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1135, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'binder_extension.py'; 'binder_extension' is not a package

Process finished with exit code 1
hazy mossBOT
#

Hey! Once your issue is solved, press the button below to close this thread!

hallow jacinth
manic sluice
hallow jacinth
manic sluice