on windows in superset sql lab error "module object has no attribute sigalrm"

改下  utils.py   文件

 

It works after doing the following change (sorry for the massed up alignment, problems with github formatting):

def __enter__(self):

    try:

        #signal.signal(signal.SIGALRM, self.handle_timeout)

        #signal.alarm(self.seconds)

        pass

    except ValueError as e:

        logging.warning("timeout can't be used in the current context")

        logging.exception(e)

 

def __exit__(self, type, value, traceback):
    try:

        #signal.alarm(0)

    pass
        except ValueError as e:
            logging.warning("timeout can't be used in the current context")
            logging.exception(e)`

 

posted @ 2019-06-05 11:40  553490191  阅读(800)  评论(0编辑  收藏  举报