-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Description
Bug report
Bug summary
After updating the matplotlib to the latest version (2.0.0), an error/warning message occurs
failed to get the current screen resources
QXcbConnection: XCB error: 170 (Unknown), sequence: 164, resource id: 90, major code: 146 (Unknown), minor code: 20
More detailed info
After the updating, I found a lot of annoying problems. Following the instrcutions at ContinuumIO/anaconda-issues#1249, I was able to fix the problem.
This application failed to start because it could not find or load the Qt platform plugin "xcb"
in "".
Available platform plugins are: minimal, offscreen, xcb.
Reinstalling the application may fix this problem.
Aborted
But there is another annoying problem, every time I execute a python script in the shell (for example, python simple.py), another error/warning message occured, which is in the bug summary section.
Code for reproduction
The simple.py script could be
import matplotlib.pyplot as plt
x = [1, 2, 3]
y = [2, 4, 6]
plt.plot(x, y)
plt.show()
This picture below shows the error message when executing the script

If I comment out plt.show or replace it with plt.savefig('simple.py') the error message becomes solely
failed to get the current screen resources
I have search the web, but found no helpful message about how to solve this issue. I am not familiar with the qt and xcb package, I guess this still has something to do with the qt package and xcb.
Matplotlib version
The matplotlib version now is 2.0.0 and I connect to the server via ssh using putty and xming. The server
is installed with CentOS Linux release 7.2.1511.