tlog failure to import plugins or plot module - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 87f6aa09df702aed26b70cb386c703f39c3fb4df DIR parent b29c2a0abdcc549ca4c20e18b68f1a71734ed44c HTML Author: Janus <ysangkok@gmail.com> Date: Fri, 13 Jul 2018 15:24:16 +0200 log failure to import plugins or plot module Diffstat: M electrum/gui/qt/history_list.py | 3 ++- M electrum/plugin.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) --- DIR diff --git a/electrum/gui/qt/history_list.py b/electrum/gui/qt/history_list.py t@@ -29,11 +29,12 @@ import datetime from electrum.wallet import AddTransactionException, TX_HEIGHT_LOCAL from .util import * from electrum.i18n import _ -from electrum.util import block_explorer_URL, profiler +from electrum.util import block_explorer_URL, profiler, print_error try: from electrum.plot import plot_history, NothingToPlotException except: + print_error("qt/history_list: could not import electrum.plot. This feature needs matplotlib to be installed.") plot_history = None # note: this list needs to be kept in sync with another in kivy DIR diff --git a/electrum/plugin.py b/electrum/plugin.py t@@ -132,7 +132,8 @@ class Plugins(DaemonThread): for dep, s in deps: try: __import__(dep) - except ImportError: + except ImportError as e: + self.print_error('Plugin', name, 'unavailable:', type(e).__name__, ':', str(e)) return False requires = d.get('requires_wallet_type', []) return not requires or w.wallet_type in requires