Top List Search Help RSS Login

Workaround of matplotlib 2.0.2 errorの変更点

  • 追加された行はこのように表示されます。
  • 削除された行はこのように表示されます。
!!! Workaround of matplotlib 2.0.2 error
{{category All of Data Analysis System(Servers and Terminals)}}
{{category Data analysis servers(anam* and anah*)}}
{{category Terminal Workstations(alws* and sbws*)}}

Last update: 2017 Nov. 22

Following error of matplotlib 2.0.2 on data analysis system has been reported.
(on both version of python, 2.7.11 and 3.5.2, in /usr/local/bin/)

 Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
 File "/usr/local/lib/python2.7/site-packages/matplotlib/pyplot.py", line 253, in show
   return _show(*args, **kw)
 File "/usr/local/lib/python2.7/site-packages/matplotlib/backend_bases.py", line 163, in __call__
   manager.show()
 File "/usr/local/lib/python2.7/site-packages/matplotlib/backends/backend_tkagg.py", line 610, in show
   self.canvas.manager.window.attributes('-topmost', 1)
 File "/usr/local/lib/python2.7/lib-tk/Tkinter.py", line 1619, in wm_attributes
   return self.tk.call(args)
 _tkinter.TclError: wrong # args: should be "wm attributes window"

As of 2017 Nov. 22, the problem is under investigation.
If you can accept use of older version, the following workaround is available.
(install the latest stable version of 1.x, 1.5.3, by user (not root) privileges)

% cd
% pip2.7 install matplotlib==1.5.3 --user
(Note: installed in ~/.local/lib/python2.7/site-packages/)

After installation, you can confirm use of old version by running the following commands:
  % python
  import matplotlib
  matplotlib.version
  matplotlib.__version__
  --> "1.5.3"