on windows in superset sql lab error "module object has no attribute sigalrm"
2024-09-06 06:45:20
改下 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)`
最新文章
- webconfig中注册HttpHandler报错:检测到在集成的托管管道模式下不适用的 ASP.NET 设置。
- Codeforces 410C.Team[构造]
- mysqli连接数据库常见函数
- So... what's up?
- vim tab 和4个空格
- NET 使用HtmlAgilityPack抓取网页数据
- DB天气app冲刺二阶段第三天
- (二)《Java编程思想》——t h i s 关键字
- Eclipse中debug调试java代码一直报Source not found的解决办法
- [置顶]
 android ListView包含Checkbox滑动时状态改变
- cocos2dx中的坐标系统
- 2013年山东省赛F题 Mountain Subsequences
- 关于Java中构造方法的问题以及回答
- 安卓学习 intent
- 调用Excel宏批量处理文件
- Android5.x Notification应用解析
- UVa 1629 切蛋糕(记忆化搜索)
- day10作业
- Android menu+ anctionbar
- JS原生Date类型方法的一些冷知识