This is a relatively simple fix i found, I don't know if it need to be reported to upstream.
Since the script resolves additional dependencies anyway by appending the path, we simply move the import xen.lowlevel.xc line to below the line that appends path. Worked like a charm for me. Rergards, Dmitry
diff --git a/tools/pygrub/src/pygrub b/tools/pygrub/src/pygrub index d0d8844..f8d8f37 100644 --- a/tools/pygrub/src/pygrub +++ b/tools/pygrub/src/pygrub @@ -17,13 +17,13 @@ import os, sys, string, struct, tempfile, re import copy import logging import platform -import xen.lowlevel.xc import curses, _curses, curses.wrapper, curses.textpad, curses.ascii import getopt sys.path.insert(1, sys.path[0] + '/../lib/python') +import xen.lowlevel.xc import fsimage import grub.GrubConf import grub.LiloConf