quast 报错module 'cgi' has no attribute 'escape'

#在使用quast的过程中发生了报错

提示module ‘cgi’ has no attribute ‘escape’和’html’: cgi.escape 

#解决方法

##1.根据报错路径,找到最后一个文件

`cd /disk/201931107010127/Biosofts/quast-5.0.0/quast_libs/site_packages/jsontemplate`

##2.用vi命令 进入脚本编辑

`vi jsontemplate.py`

##3.用“/”,检索import cgi,在import cgi 下面加入import html

##4.用“/”,检索所有的cgi,将cgi.escape,都改成html.escape

##5.:wq保存退出 重新运行即可

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容