imshow() Qt: Session management error: Follow
I am running the community edition of PyCharm on my Fedora linux machine.
Everytime I run imshow() I get the error
Qt: Session management error: None of the authentication protocols specified are supported
I only get this with PyCharm IDE and not on my anaconda installation.
Is there a way to resolve this issue?
Please sign in to leave a comment.
Could you please run this snippet from PyCharm and from the terminal outside of PyCharm where the issue is not reproduced, and provide outputs for comparison?
From within Anaconda
Thank you. You are using different interpreters from the terminal and in PyCharm. Different environments mean you may get different behavior with your code. You can configure PyCharm to use the same interpreter as in your terminal, namely
When I look at pycharm it says that i am using /usr/bin/python3.8
Please see attached
If I change my interpreter to
/home/blupace/anaconda3/bin/python'
And run my code I get all of these errors:
So either way it doesn't seem to resolve the issue.
So, to clarify, running using /usr/bin/python3.8 from the terminal works correctly?
The error comes from Qt though, which may be configured differently in the terminal with env variables.
Please also run this simple script from both environments as well (terminal and PyCharm):
Share the output for comparison (if there's nothing confidential).
Thanks for your support on this.
Here is the output from the snippet from within Pycharm
Here is the snippet run form terminal
So the issue only happens within Pycharm, not within Anaconda Spyder or terminal. I would like to move my workflow over to Pycharm, but really would like to solve this issue first.
Kind regards,
Thanks,
I found a recommendation to unset SESSION_MANAGE environment variable: https://stackoverflow.com/a/62262203/10895914
Could you try it and let me know?
Another suggestion - try disabling "Show plots in tool window" in "Preferences | Tools | Python Scientific"