에 pycharm
을 사용하고 있습니다. PyNomo
을 설치했습니다. 이 small example from the official site을 실행하려고합니다. 링크에서 코드를 사용할 수 있으며 붙여 넣기 만하면됩니다. 나는 다음과 같은 오류가 발생합니다 :Python : PyNomo 예제에서 브로큰 파이프 오류 (Nomographer 함수에서)
Aligning with tag A
Traceback (most recent call last):
File "/home/darshil/Desktop/Caltech Summer Internship/Radiation Ononcology Data/DB/rad3/pynomo_temp.py", line 71, in <module>
Nomographer(main_params)
File "/usr/local/lib/python2.7/dist-packages/pynomo/nomographer.py", line 203, in __init__
wrapper.draw_nomogram(c,params['post_func'])
File "/usr/local/lib/python2.7/dist-packages/pynomo/nomo_wrapper.py", line 213, in draw_nomogram
block.draw(canvas)
File "/usr/local/lib/python2.7/dist-packages/pynomo/nomo_wrapper.py", line 445, in draw
atom.draw(canvas)
File "/usr/local/lib/python2.7/dist-packages/pynomo/nomo_wrapper.py", line 2503, in draw
axis_appear=p,base_start=base_start,base_stop=base_stop)
File "/usr/local/lib/python2.7/dist-packages/pynomo/nomo_axis.py", line 123, in __init__
self.draw_axis(canvas)
File "/usr/local/lib/python2.7/dist-packages/pynomo/nomo_axis.py", line 1067, in draw_axis
c.text(x,y,ttext,attr+[text_color])
File "/usr/local/lib/python2.7/dist-packages/pyx/canvas.py", line 324, in text
return self.insert(self.texrunner.text(x, y, atext, *args, **kwargs))
File "/usr/local/lib/python2.7/dist-packages/pyx/text.py", line 1194, in text
self.execute(expr, self.defaulttexmessagesdefaultrun + self.texmessagesdefaultrun + texmessages)
File "/usr/local/lib/python2.7/dist-packages/pyx/text.py", line 951, in execute
self.defaulttexmessagesstart + self.texmessagesstart)
File "/usr/local/lib/python2.7/dist-packages/pyx/text.py", line 1005, in execute
self.texinput.write(self.expr)
IOError: [Errno 32] Broken pipe
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
File "/usr/lib/python2.7/atexit.py", line 24, in _run_exitfuncs
func(*targs, **kargs)
File "/usr/local/lib/python2.7/dist-packages/pyx/text.py", line 748, in _cleantmp
texrunner.texinput.write("\n\\end\n")
IOError: [Errno 32] Broken pipe
Error in sys.exitfunc:
Traceback (most recent call last):
File "/usr/lib/python2.7/atexit.py", line 24, in _run_exitfuncs
func(*targs, **kargs)
File "/usr/local/lib/python2.7/dist-packages/pyx/text.py", line 748, in _cleantmp
texrunner.texinput.write("\n\\end\n")
IOError: [Errno 32] Broken pipe
Process finished with exit code 1
오류 코드의 마지막 줄에 : 나는 "깨진 파이프 오류"다른 질문을 살펴 보았다
Nomographer(main_params)
: here, here 및 here . 그러나 그들 중 누구도 나에게 도움이되지 않습니다.
해결 방법에 대한 설명은 매우 유용 할 것입니다.
PyNomo는 TeX 설치를 사용하여 텍스트를 조판합니다. 어쩌면 이것이 깨져 파이프가 파손 된 것일 수 있습니다. 명령 행'tex hello.tex'에서 내용'Hello, world! \ bye'로'hello.tex' 파일을 실행할 수 있어야합니다. 'hello.dvi' 파일이 생성되어야합니다. 그렇지 않다면 TeXLive와 같은 TeX 배포판을 설치해야합니다. – wobsta
그게 효과가! 당신이 그 대답을 올바른 것으로 표시 할 수 있도록 해줄 수 있습니까? 감사! –