StageDP icon indicating copy to clipboard operation
StageDP copied to clipboard

Always run into issue when I want to draw the tree out

Open zmykevin opened this issue 5 years ago • 1 comments

Hi, I have encountered an error when I set the flag for draw to True in the evaluation stage. The error is like this:

  File "/home/zmykevin/alexa_challenge/code/discourse_parsing/StageDP/src/eval/evaluation.py", line 118, in raw_parser
    pred_rst.draw_rst(fmerge.replace(".merge", ".ps"))
  File "/home/zmykevin/alexa_challenge/code/discourse_parsing/StageDP/src/models/tree.py", line 556, in draw_rst
    cf = CanvasFrame()
  File "/home/zmykevin/software/miniconda2/envs/alexa_prize_3/lib/python3.5/site-packages/nltk/draw/util.py", line 1654, in __init__
    self._parent = Tk()
  File "/home/zmykevin/software/miniconda2/envs/alexa_prize_3/lib/python3.5/tkinter/__init__.py", line 1876, in __init__
    self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
_tkinter.TclError: no display name and no $DISPLAY environment variable

I wonder if there is a quick solution for this problem? Thanks

zmykevin avatar Sep 24 '19 19:09 zmykevin

I think this is an issue if I want to run it on a remote server. I didn't know if I can work around it on remote server, but I just download the code on my PC and see the result. Thanks

zmykevin avatar Sep 25 '19 00:09 zmykevin