Qt Session management error with matplotlib.pyplot.plot

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-08 15:27:40

问题


All of a sudden, whenever I call matplotlib.pyplot.plot (within a unix OS), the following error is printed to the screen:

Qt: Session management error: Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed

This error does not interrupt the function; the plot is created successfully. But what does this error mean?

A user on linuxforums.org was able to find a way to prevent the error:

"I don't know exactly why, but giving permissions to the user in the sudoers file, and then running the program with the sudo command, fixes the error."

This, however, leaves unresolved the cause of the error and whether it influences at all the ongoing process.

Is there a solution that doesn't require editing the sudoers file?

NB: I'm doing this work on a shared computing cluster.


回答1:


The answer to the question is, yes, there is a solution that doesn't require editing the sudoers file. I noticed that in the .cache directory of my home directory, there was a matplotlib directory and a sessions directory.

I deleted these.

The problem was resolved.

I remain unsure why the error arose in the first place.




回答2:


Make sure you use "su -" and not just "su"



来源:https://stackoverflow.com/questions/29998451/qt-session-management-error-with-matplotlib-pyplot-plot

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!