Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions bbot/core/helpers/depsinstaller/installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
from ansible_runner.interface import run
from subprocess import CalledProcessError

from bbot import __version__
from ..misc import can_sudo_without_password, os_platform, rm_at_exit, get_python_constraints

log = logging.getLogger("bbot.core.helpers.depsinstaller")
Expand Down Expand Up @@ -174,6 +175,7 @@ async def install(self, *modules):
+ self.venv
+ str(self.parent_helper.bbot_home)
+ os.uname()[1]
+ str(__version__)
).hexdigest()
success = self.setup_status.get(module_hash, None)
dependencies = list(chain(*preloaded["deps"].values()))
Expand Down
7 changes: 6 additions & 1 deletion bbot/core/modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,12 @@ def preload_module(self, module_file):
def load_modules(self, module_names):
modules = {}
for module_name in module_names:
module = self.load_module(module_name)
try:
module = self.load_module(module_name)
except ModuleNotFoundError as e:
raise BBOTError(
f"Error loading module {module_name}: {e}. You may have leftover artifacts from an older version of BBOT. Try deleting/renaming your '~/.bbot' directory."
) from e
modules[module_name] = module
return modules

Expand Down
Loading