Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
zmykevin opened this issue Sep 24, 2019 · 1 comment
Open

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

zmykevin opened this issue Sep 24, 2019 · 1 comment

Comments

@zmykevin
Copy link

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant