superset windows下的一些坑

推荐在linux下跑

sql lab

signal 模块对于windows系统支持并不是很好,运行sql lab的查询时会出现错误,需要在代码中修改。(目前只是让他能跑起来,并没有真的解决)

# utils/core.py

...
class timeout:
...

    def __enter__(self) -> None:
        try:
            if threading.current_thread() == threading.main_thread():
                # 修改此处
                # signal.signal(signal.SIGALRM, self.handle_timeout)
                # signal.alarm(self.seconds)
                pass
        except ValueError as ex:
            logger.warning("timeout can't be used in the current context")
            logger.exception(ex)

    def __exit__(  # pylint: disable=redefined-outer-name,unused-variable,redefined-builtin
        self, type: Any, value: Any, traceback: TracebackType
    ) -> None:
        try:
            # 修改此处
            # signal.alarm(0)
            pass
        except ValueError as ex:
            logger.warning("timeout can't be used in the current context")
            logger.exception(ex)




右下角对话与我联系。


Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×