Top Diff List Source Search Help RSS Login

Workaround of matplotlib 2.0.2 error

Workaround of matplotlib 2.0.2 error

[All of Data Analysis System(Servers and Terminals)]
[Data analysis servers(anam* and anah*)]
[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/", line 253, in show
  return _show(*args, **kw)
File "/usr/local/lib/python2.7/site-packages/matplotlib/", line 163, in __call__
File "/usr/local/lib/python2.7/site-packages/matplotlib/backends/", line 610, in show
  self.canvas.manager.window.attributes('-topmost', 1)
File "/usr/local/lib/python2.7/lib-tk/", line 1619, in wm_attributes
_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
 --> "1.5.3"