小编给大家分享一下MCscan报错之kpsewhich命令缺失怎么办,相信大部分人都还不怎么了解,因此分享这篇文章给大家参考一下,希望大家阅读完这篇文章后大有收获,下面让我们一起去了解一下吧!
kpsewhich命令缺失导致jcvi运行报错
最近在linux系统下安装jcvi用来做共线性分析,安装时都很顺利,但是运行时总会报错。
MCscan报错信息:
File "/biosoft/python/Python-v2.7.11/lib/python2.7/site-packages/jcvi/graphics/dotplot.py", line 357, in dotplot_main
title=opts.title, stdpf=(not opts.nostdpf))
File "/biosoft/python/Python-v2.7.11/lib/python2.7/site-packages/jcvi/graphics/dotplot.py", line 235, in dotplot
sepcolor=sepcolor, minfont=minfont, stdpf=stdpf)
File "/biosoft/python/Python-v2.7.11/lib/python2.7/site-packages/jcvi/graphics/dotplot.py", line 79, in plot_breaks_and_labels
th = TextHandler(fig)
File "/biosoft/python/Python-v2.7.11/lib/python2.7/site-packages/jcvi/graphics/base.py", line 51, in __init__
self.build_height_array(fig)
File "/biosoft/python/Python-v2.7.11/lib/python2.7/site-packages/jcvi/graphics/base.py", line 65, in build_height_array
w, h = TextHandler.get_text_width_height(fig, size=i)
File "/biosoft/python/Python-v2.7.11/lib/python2.7/site-packages/jcvi/graphics/base.py", line 57, in get_text_width_height
tp = mpl.textpath.TextPath((0,0), txt, size=size, usetex=usetex)
File "/biosoft/python/Python-v2.7.11/lib/python2.7/site-packages/matplotlib/textpath.py", line 450, in __init__
usetex=usetex)
File "/biosoft/python/Python-v2.7.11/lib/python2.7/site-packages/matplotlib/textpath.py", line 530, in text_get_vertices_codes
verts, codes = text_to_path.get_text_path(prop, s, usetex=True)
File "/biosoft/python/Python-v2.7.11/lib/python2.7/site-packages/matplotlib/textpath.py", line 152, in get_text_path
glyph_info, glyph_map, rects = self.get_glyphs_tex(prop, s)
File "/biosoft/python/Python-v2.7.11/lib/python2.7/site-packages/matplotlib/textpath.py", line 305, in get_glyphs_tex
dviread.find_tex_file('pdftex.map'))
File "/biosoft/python/Python-v2.7.11/lib/python2.7/site-packages/matplotlib/dviread.py", line 1045, in find_tex_file
stderr=subprocess.PIPE)
File "/biosoft/python/Python-v2.7.11/lib/python2.7/site-packages/subprocess32.py", line 614, in __init__
restore_signals, start_new_session)
File "/biosoft/python/Python-v2.7.11/lib/python2.7/site-packages/subprocess32.py", line 1393, in _execute_child
raise child_exception_type(errno_num, err_msg)
OSError: [Errno 2] No such file or directory: 'kpsewhich'
搜索查询后知道是linux中缺少kpsewhich命令导致的,于是安装该命令,方法如下:
sudo yum install tetex-latex tetex-doc tetex-fonts sudo yum install texlive tex-live-latex
安装好后再次运行,顺利通过。
以上是“MCscan报错之kpsewhich命令缺失怎么办”这篇文章的所有内容,感谢各位的阅读!相信大家都有了一定的了解,希望分享的内容对大家有所帮助,如果还想学习更多知识,欢迎关注亿速云行业资讯频道!
亿速云「云服务器」,即开即用、新一代英特尔至强铂金CPU、三副本存储NVMe SSD云盘,价格低至29元/月。点击查看>>
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。