X Tutup
Skip to content

Updating matplotlib to 2.0.0 causing problems when plotting: error/warning message "failed to get the current screen resources" #8058

@jdhao

Description

@jdhao

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
qq 20170210164216
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      X Tutup