Closed gaggle closed 4 years ago
This should be fixed in the latest release. Please reopen if issue persist.
@sijis PR #1369 was merged but as of version 6.1.6 this is not applied. Can you help check this and pick that commit for the next release? https://github.com/errbotio/errbot/blob/99ba74850200bd87d5f1a3b3b442d1fd8d30eb64/errbot/plugin_manager.py#L366
@sijis PR #1369 was merged but as of version 6.1.6 this is not applied. Can you help check this and pick that commit for the next release?
Yikes! Yeah, looks like it was missed. I'll include it in a new release.
In order to let us help you better, please fill out the following fields as best you can:
I am...
I am running...
Issue description
Blacklisting plugins results in exceptions during bot startup, the exception is highly visible in bot log output and the error is emitted by the bot in Slack which is highly confusing.
The exception is:
.../lib/python3.6/site-packages/errbot/plugin_manager.py
:But there is no
self.bot
, soself.bot.prefix
throws exception, which causes the bot to emit errors.Quick glance at git history looks to me like this was introduced May 28th, 2018 in commit 21c282356892596cf18b356cfe2435c4abe41b70 where
self.bot
property was removed fromplugin_manager.py
(L140) as part of "removed circular dependency between pm and errbot "Steps to reproduce
backup.py
with content:bot.plugin_manager["configs"] = {} bot.plugin_manager["bl_plugins"] = ['Flows'] if "installed_repos" in bot.repo_manager: for repo in bot.repo_manager["installed_repos"]: log.error(bot.repo_manager.install_repo(repo)) log.info("Restoring plugins data.") bot.plugin_manager.update_plugin_places(bot.repo_manager.get_all_repos_paths()) pobj = bot.plugin_manager.plugins["Example"] pobj.init_storage() pobj.close_storage() pobj = bot.plugin_manager.plugins["Plugins"] pobj.init_storage() pobj.close_storage() pobj = bot.plugin_manager.plugins["CommandNotFoundFilter"] pobj.init_storage() pobj.close_storage() pobj = bot.plugin_manager.plugins["Help"] pobj.init_storage() pobj.close_storage() pobj = bot.plugin_manager.plugins["Backup"] pobj.init_storage() pobj.close_storage() pobj = bot.plugin_manager.plugins["ACLs"] pobj.init_storage() pobj.close_storage() pobj = bot.plugin_manager.plugins["VersionChecker"] pobj.init_storage() pobj.close_storage()
11:00:29 ERROR errbot.plugin_manager Error loading Flows. Traceback (most recent call last): File "/home/jln/.virtualenvs/slack-jokebot/lib/python3.6/site-packages/errbot/plugin_manager.py", line 360, in activate_non_started_plugins errors += f'Notice: {plugin.name} is blacklisted, ' \ AttributeError: 'BotPluginManager' object has no attribute 'bot'