Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.79 KB | None | 0 0
  1. ~/vscode$ cd /home/*/vscode ; env PYTHONIOENCODING=UTF-8 PYTHONUNBUFFERED=1 /usr/bin/python3 /home/*/.vscode-server/extensions/ms-python.python-2019.6.24221/pythonFiles/ptvsd_launcher.py --default --client --host localhost --port 39903 /home/*/vscode/test_plot.py
  2. Traceback (most recent call last):
  3. File "/home/*/.vscode-server/extensions/ms-python.python-2019.6.24221/pythonFiles/ptvsd_launcher.py", line 43, in <module>
  4. main(ptvsdArgs)
  5. File "/home/*/.vscode-server/extensions/ms-python.python-2019.6.24221/pythonFiles/lib/python/ptvsd/__main__.py", line 434, in main
  6. run()
  7. File "/home/*/.vscode-server/extensions/ms-python.python-2019.6.24221/pythonFiles/lib/python/ptvsd/__main__.py", line 312, in run_file
  8. runpy.run_path(target, run_name='__main__')
  9. File "/usr/lib/python3.6/runpy.py", line 263, in run_path
  10. pkg_name=pkg_name, script_name=fname)
  11. File "/usr/lib/python3.6/runpy.py", line 96, in _run_module_code
  12. mod_name, mod_spec, pkg_name, script_name)
  13. File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
  14. exec(code, run_globals)
  15. File "/home/*/vscode/test_plot.py", line 8, in <module>
  16. plt.figure()
  17. File "/usr/lib/python3/dist-packages/matplotlib/pyplot.py", line 539, in figure
  18. **kwargs)
  19. File "/usr/lib/python3/dist-packages/matplotlib/backend_bases.py", line 171, in new_figure_manager
  20. return cls.new_figure_manager_given_figure(num, fig)
  21. File "/usr/lib/python3/dist-packages/matplotlib/backends/backend_tkagg.py", line 1049, in new_figure_manager_given_figure
  22. window = Tk.Tk(className="matplotlib")
  23. File "/usr/lib/python3.6/tkinter/__init__.py", line 2023, in __init__
  24. self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
  25. _tkinter.TclError: no display name and no $DISPLAY environment variable
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement