From 125f7d6db6ad39fc95c0607ff10a66d3f25f3536 Mon Sep 17 00:00:00 2001 From: wez3 Date: Sun, 22 Jan 2017 00:38:10 +0100 Subject: [PATCH 1/2] Update example.conf --- example.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example.conf b/example.conf index 4a3ebde..fc9327b 100644 --- a/example.conf +++ b/example.conf @@ -10,7 +10,7 @@ [[domoboard]] time = False # True/False: show time in top bar date = False # True/False: show date in top bar - language = "gb" # Change this to display date/time in local language and format + language = "gb" # Change this to display date/time in local language and format google_maps_api_key = X # Google Maps Embed API key # Add Navbar items here. The key is the navbar link name. The first value is the URI name, second value can be any font awesome logo to be displayed. From c6410e21f29dd8b699543416aeaf8af27be34a67 Mon Sep 17 00:00:00 2001 From: squandor Date: Sun, 22 Jan 2017 00:54:48 +0100 Subject: [PATCH 2/2] changed format ImportError --- modules/plugins.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/plugins.py b/modules/plugins.py index c5a22ba..9ce60a9 100644 --- a/modules/plugins.py +++ b/modules/plugins.py @@ -1,7 +1,7 @@ #!/usr/bin/python # This file contains the functions regarding the plugin manager. -import git, shutil, os, imp +import git, shutil, os, imp, sys import security, api import re @@ -17,7 +17,8 @@ def loadPlugins(): plugin[name] = imp.load_source(name, plugin_dir + i) plugin[name].init() except ImportError as msg: - sys.exit("Error occured during loading imports for the plugin {}: {}. Install it with 'easy_install {}' or 'pip install {}'".format(name, msg, msg , msg)) + moduleName = str(msg).split(' ')[len(str(msg).split(' ')) -1] + sys.exit("Error occured during loading imports for the plugin {}: {}. Install it with 'easy_install {}' or 'pip install {}'".format(name, msg, moduleName , moduleName)) return plugin def getPluginDict():