[Kimchi-devel] [PATCH] [WOK] Github #745: Making import error messages less useless

Chandra Shehkhar Reddy Potula chandra at linux.vnet.ibm.com
Fri Oct 30 06:43:28 UTC 2015


Good and required one.

Reviewed-by: Chandra Shekhar Reddy Potula <chandra at linux.vnet.ibm.com>

On 10/30/2015 02:18 AM, dhbarboza82 at gmail.com wrote:
> From: Daniel Henrique Barboza <dhbarboza82 at gmail.com>
>
> Title says it all.
>
>
> This is an experiment I've made by removing the package 'python-magic' and
> then trying to boot WoK:
>
> Failed to import plugin plugins.kimchi.KimchiRoot
> Failed to import plugin plugins.ginger.Ginger
>
>
> Today, there's absolutely no info of what happened. With this fix we'll get:
>
>
> Failed to import plugin plugins.kimchi.KimchiRoot, error: Class plugins.kimchi.KimchiRoot can not be imported, error: No module named magic
> Failed to import plugin plugins.ginger.Ginger, error: Class plugins.ginger.Ginger can not be imported, error: No module named magic
>
>
> And then we can install the missing dependency right away.
>
>
> Daniel Henrique Barboza (1):
>    Github #745: WoK: improve error message when importing plug-ins
>
>   src/wok/server.py | 17 ++++++++++-------
>   src/wok/utils.py  |  7 +++++--
>   2 files changed, 15 insertions(+), 9 deletions(-)
>




More information about the Kimchi-devel mailing list