From dd952ddbe31bacf161b4873950ead7fd590f9324 Mon Sep 17 00:00:00 2001 From: Job Evers-Meltzer Date: Wed, 16 Nov 2016 15:15:46 -0600 Subject: [PATCH] Bug fix: pkg_resources doesn't like cx_freeze. Getting the location of bundling resources doesn't work with cx_freeze so putting in some temporary error handling while we figure out a better way to bundle the UI. --- lbrynet/lbrynet_daemon/UIManager.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lbrynet/lbrynet_daemon/UIManager.py b/lbrynet/lbrynet_daemon/UIManager.py index 93d6b91ec..a8811879d 100644 --- a/lbrynet/lbrynet_daemon/UIManager.py +++ b/lbrynet/lbrynet_daemon/UIManager.py @@ -92,8 +92,14 @@ class UIManager(object): return d def _check_for_bundled_ui(self): - bundle_manager = BundledUIManager(self.root, self.active_dir, get_bundled_ui_path()) - return bundle_manager.setup() + try: + bundled_path = get_bundled_ui_path() + except Exception: + log.warning('Failed to get path for bundled UI', exc_info=True) + return False + else: + bundle_manager = BundledUIManager(self.root, self.active_dir, bundled_path) + return bundle_manager.setup() def _up_to_date(self): def _get_git_info():