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

doc-push is broken #5490

Closed
ezyang opened this issue Mar 1, 2018 · 1 comment · Fixed by #5494
Closed

doc-push is broken #5490

ezyang opened this issue Mar 1, 2018 · 1 comment · Fixed by #5494

Comments

@ezyang
Copy link
Contributor

ezyang commented Mar 1, 2018

+ make html
python source/scripts/build_activation_images.py
/var/lib/jenkins/workspace/pytorch/docs/source/_static/img/activation/
ELU(alpha=1.0)
Traceback (most recent call last):
  File "source/scripts/build_activation_images.py", line 69, in <module>
    pylab.clf()
  File "/opt/conda/lib/python3.6/site-packages/matplotlib/pyplot.py", line 677, in clf
    gcf().clf()
  File "/opt/conda/lib/python3.6/site-packages/matplotlib/pyplot.py", line 592, in gcf
    return figure()
  File "/opt/conda/lib/python3.6/site-packages/matplotlib/pyplot.py", line 539, in figure
    **kwargs)
  File "/opt/conda/lib/python3.6/site-packages/matplotlib/backend_bases.py", line 171, in new_figure_manager
    return cls.new_figure_manager_given_figure(num, fig)
  File "/opt/conda/lib/python3.6/site-packages/matplotlib/backends/backend_tkagg.py", line 1049, in new_figure_manager_given_figure
    window = Tk.Tk(className="matplotlib")
  File "/opt/conda/lib/python3.6/tkinter/__init__.py", line 2017, in __init__
    self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
_tkinter.TclError: no display name and no $DISPLAY environment variable
make: *** [figures] Error 1
Makefile:16: recipe for target 'figures' failed

CC @apaszke who was asking me about doc generation yesterday. Full log https://ci.pytorch.org/jenkins/job/pytorch-builds/job/doc-push/3092//console

And CC @pmitros

@mttk
Copy link
Contributor

mttk commented Mar 1, 2018

You probably know why this is happening, but just in case:
matplotlib.use('Agg') fixes this. (as per: https://stackoverflow.com/questions/37604289/tkinter-tclerror-no-display-name-and-no-display-environment-variable)

Matplotlib is trying to open a display window on what I assume is a screen-less server.

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

Successfully merging a pull request may close this issue.

2 participants