使用matplotlib.pyplot.plot的Qt会话管理错误 [英] Qt Session management error with matplotlib.pyplot.plot
问题描述
突然间,每当我调用matplotlib.pyplot.plot
(在unix
操作系统内)时,屏幕上都会显示以下错误:
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?
linuxforums.org
能够找到防止错误的方法:
A user on linuxforums.org
was able to find a way to prevent the error:
我不知道为什么,但是在sudoers文件中授予用户权限,然后使用sudo
命令运行程序,可以修复错误."
"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.
是否有不需要编辑sudoers文件的解决方案?
Is there a solution that doesn't require editing the sudoers file?
NB:我正在共享计算集群上进行这项工作.
NB: I'm doing this work on a shared computing cluster.
推荐答案
问题的答案是,是的,有一种解决方案不需要编辑sudoers文件.我注意到主目录的.cache
目录中有一个matplotlib
目录和一个sessions
目录.
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 remain unsure why the error arose in the first place.
这篇关于使用matplotlib.pyplot.plot的Qt会话管理错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!