Opened 17 years ago

Closed 17 years ago

#1974 closed defect (fixed)

TclError: no display name and no $DISPLAY environment variable — at Version 3

Reported by: Bhuricha Deen Sethanandha Owned by: anonymous
Priority: high Component: TracMetrixPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description (last modified by Bhuricha Deen Sethanandha)

File "/u/bhuricha/lib/python2.5/site-packages/Trac-0.11dev_r5933-py2.5.egg/trac/web/main.py", line 381, in dispatch_request File "/u/bhuricha/lib/python2.5/site-packages/Trac-0.11dev_r5933-py2.5.egg/trac/web/main.py", line 191, in dispatch File "/u/bhuricha/source/trac-hacks/tracmetrixplugin/0.11/tracmetrixplugin/web_ui.py", line 119, in process_request File "/u/bhuricha/source/trac-hacks/tracmetrixplugin/0.11/tracmetrixplugin/web_ui.py", line 193, in _render_view File "/u/bhuricha/source/trac-hacks/tracmetrixplugin/0.11/tracmetrixplugin/model.py", line 452, in get_daily_backlog_chart File "/usr/lib/python2.5/site-packages/matplotlib/pylab.py", line 876, in figure File "/usr/lib/python2.5/site-packages/matplotlib/backends/backend_tkagg.py", line 88, in new_figure_manager File "lib-tk/Tkinter.py", line 1639, in init

Local variables: Name Value baseName 'trac.cgi' className 'Tk' ext '.cgi' interactive 0 os <module 'os' from '/usr/lib/python2.5/os.pyc'> screenName None self None sync 0 sys <module 'sys' (built-in)> use None useTk 1

Change History (3)

comment:1 Changed 17 years ago by Bhuricha Deen Sethanandha

Trac Release: 0.100.11

comment:2 Changed 17 years ago by anonymous

Owner: changed from Bhuricha Deen Sethanandha to anonymous
Status: newassigned

comment:3 Changed 17 years ago by Bhuricha Deen Sethanandha

Description: modified (diff)
Resolution: fixed
Status: assignedclosed

pylab automatically use interactive backend.

matplotlib.use('Agg') has to be called befor importing pylab.

Note: See TracTickets for help on using tickets.