Plugin installation failure: "Main module ntfy not found in file"
Hallo!
We (me and colleagues) are using a docker version of maubot and trying to install the plugin (via mbc) and we get the following python related errors:
Traceback (most recent call last):
File "/opt/maubot/maubot/loader/zip.py", line 186, in _run_preload_checks
code = importer.get_code(self.main_module.replace(".", "/"))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/maubot/maubot/lib/zipimport.py", line 185, in get_code
code, ispackage, modpath = _get_module_code(self, fullname)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/maubot/maubot/lib/zipimport.py", line 720, in _get_module_code
raise ZipImportError(f"can't find module {fullname!r}", name=fullname)
maubot.lib.zipimport.ZipImportError: can't find module 'ntfy'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/opt/maubot/maubot/management/api/plugin_upload.py", line 77, in upload_new_plugin
plugin = ZippedPluginLoader.get(path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/maubot/maubot/loader/zip.py", line 101, in get
return cls(path)
^^^^^^^^^
File "/opt/maubot/maubot/loader/zip.py", line 80, in __init__
self._run_preload_checks(self._get_importer())
File "/opt/maubot/maubot/loader/zip.py", line 192, in _run_preload_checks
raise MaubotZipPreLoadError(f"Main module {self.main_module} not found in file") from e
maubot.loader.zip.MaubotZipPreLoadError: Main module ntfy not found in file
Installing ntfy module from within the docker container did not have any effect.
Any suggestions on how to proceed are really welcome.
Best regards Ilias