Everything was working fine with my python install on Linux Mint. Then all of a sudden I tried:
import matplotlib.pyplot as plt
GConf-WARNING **: Client failed to connect to the D-BUS daemon
Qt: Session management error: Could not open network socket
So I updated Qt with Anaconda to v5.6 and I deleted the matplotlib cache per this question:
conda update qt
rm -r ~/.cache/matplotlib
That got rid of the GConf error, but I still get
import matplotlib.pyplot as plt
Qt: Session management error: Could not open network socket
This just started happening all of a sudden and I'm not sure what changed. Any thoughts on where to start? Matplotlib still works and runs, it is just annoying to have an error like this pop up all of a sudden.
I was able to resolve the issue through two fixes (both worked independently of the other):
First, I changed the backend to TkAgg in matplotlibrc file, or I opened the ipython config file and set c.InteractiveShellApp.pylab = 'tk'.
I don't mind this fix, using Tk vs Qt, I just don't know why the errors popped up all of a sudden.