2016-07-07 4 views
3

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) 

:、hereherehere 。しかし、それらのどれも私にとって役に立たない。

解決方法の説明は非常に役に立ちます。

+1

PyNomoはTeXインストールを使用してテキストをタイプセットします。おそらくこれが欠落してパイプが破損している可能性があります。あなたはコマンドライン 'tex hello.tex'に' hello、world!\ bye'という内容のファイル 'hello.tex'を走らせる必要があります。 'hello.dvi'というファイルが生成されます。そうでなければ、TeXLiveのようなTeXディストリビューションをインストールする必要があります。 – wobsta

+0

それはうまくいった!あなたはそれを答えに入れることができるので、私はそれを正しいものとしてマークすることができますか?ありがとう! –

答えて

0

PyNomoは、テキストをタイプセットするためにTeXインストールを使用します。おそらくこれが欠落してパイプが破損している可能性があります。コマンドラインtex hello.texにコンテンツHello, world!\byeを含むファイルhello.texを実行できる必要があります。結果はファイルhello.dviになります。そうでなければ、TeXLiveのようなTeXディストリビューションをインストールする必要があります。

関連する問題