imshow() Qt: Session management error:

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?

 

12 comments
Comment actions Permalink

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?

0
Comment actions Permalink
/usr/bin/python3.8 /home/blupace/PycharmProjects/OpencvPython/pycharmsnip.py
{'PATH': ['/app/bin',
'/usr/bin',
'/app/extensions/bin',
'/app/packages/bin',
'/home/blupace/.var/app/com.jetbrains.PyCharm-Community/data/node/bin',
'/home/blupace/.var/app/com.jetbrains.PyCharm-Community/data/cargo/bin',
'/home/blupace/.var/app/com.jetbrains.PyCharm-Community/data/python/bin'],
'PYTHONPATH': ['/home/blupace/PycharmProjects/OpencvPython',
'/app/packages/python'],
'pkg_resources.working_set': [wheel 0.36.2 (/usr/lib/python3.8/site-packages),
six 1.15.0 (/usr/lib/python3.8/site-packages),
setuptools 51.3.3.post20210302 (/usr/lib/python3.8/site-packages),
Pygments 2.8.0.dev20210302 (/usr/lib/python3.8/site-packages),
pip 21.0.1 (/usr/lib/python3.8/site-packages),
meson 0.55.3 (/usr/lib/python3.8/site-packages),
Markdown 3.3.4 (/usr/lib/python3.8/site-packages),
Mako 1.1.4.dev0 (/usr/lib/python3.8/site-packages),
Cython 0.29.22 (/usr/lib/python3.8/site-packages),
virtualenv 20.0.31 (/app/lib/python3.8/site-packages),
virtualenv-clone 0.5.4 (/app/lib/python3.8/site-packages),
urllib3 1.25.10 (/app/lib/python3.8/site-packages),
ruamel.yaml 0.16.12 (/app/lib/python3.8/site-packages),
ruamel.yaml.clib 0.2.2 (/app/lib/python3.8/site-packages),
requests 2.24.0 (/app/lib/python3.8/site-packages),
pycosat 0.6.3 (/app/lib/python3.8/site-packages),
pipenv 2020.8.13 (/app/lib/python3.8/site-packages),
idna 2.10 (/app/lib/python3.8/site-packages),
filelock 3.0.12 (/app/lib/python3.8/site-packages),
distlib 0.3.1 (/app/lib/python3.8/site-packages),
conda 4.3.16 (/app/lib/python3.8/site-packages),
chardet 3.0.4 (/app/lib/python3.8/site-packages),
certifi 2020.6.20 (/app/lib/python3.8/site-packages),
appdirs 1.4.4 (/app/lib/python3.8/site-packages),
opencv-python 4.5.1.48 (/home/blupace/.var/app/com.jetbrains.PyCharm-Community/data/python/lib/python3.8/site-packages),
numpy 1.20.1 (/home/blupace/.var/app/com.jetbrains.PyCharm-Community/data/python/lib/python3.8/site-packages)],
'sys.executable': '/usr/bin/python3.8',
'sys.path': ['/home/blupace/PycharmProjects/OpencvPython',
'/home/blupace/PycharmProjects/OpencvPython',
'/app/packages/python',
'/usr/lib/python38.zip',
'/usr/lib/python3.8',
'/usr/lib/python3.8/lib-dynload',
'/usr/lib/python3.8/site-packages',
'/app/lib/python3.8/site-packages',
'/home/blupace/.var/app/com.jetbrains.PyCharm-Community/data/python/lib/python3.8/site-packages'],
'sys.prefix': '/usr',
'sys.version_info': sys.version_info(major=3, minor=8, micro=8, releaselevel='final', serial=0)}

Process finished with exit code 0
0
Comment actions Permalink

From within Anaconda

{'PATH': ['/home/blupace/anaconda3/bin',
'/home/blupace/anaconda3/condabin',
'/home/blupace/.local/bin',
'/home/blupace/bin',
'/usr/local/bin',
'/usr/local/sbin',
'/usr/bin',
'/usr/sbin'],
'PYTHONPATH': None,
'pkg_resources.working_set': [zope.interface 5.2.0 (/home/blupace/anaconda3/lib/python3.8/site-packages),
zope.event 4.5.0 (/home/blupace/anaconda3/lib/python3.8/site-packages),
zipp 3.4.1 (/home/blupace/anaconda3/lib/python3.8/site-packages),
zict 2.0.0 (/home/blupace/anaconda3/lib/python3.8/site-packages),
yapf 0.31.0 (/home/blupace/anaconda3/lib/python3.8/site-packages),
xmltodict 0.12.0 (/home/blupace/anaconda3/lib/python3.8/site-packages),
xlwt 1.3.0 (/home/blupace/anaconda3/lib/python3.8/site-packages),
XlsxWriter 1.3.7 (/home/blupace/anaconda3/lib/python3.8/site-packages),
xlrd 2.0.1 (/home/blupace/anaconda3/lib/python3.8/site-packages),
wurlitzer 2.0.1 (/home/blupace/anaconda3/lib/python3.8/site-packages),
wrapt 1.12.1 (/home/blupace/anaconda3/lib/python3.8/site-packages),
widgetsnbextension 3.5.1 (/home/blupace/anaconda3/lib/python3.8/site-packages),
wheel 0.36.2 (/home/blupace/anaconda3/lib/python3.8/site-packages),
Werkzeug 1.0.1 (/home/blupace/anaconda3/lib/python3.8/site-packages),
webencodings 0.5.1 (/home/blupace/anaconda3/lib/python3.8/site-packages),
wcwidth 0.2.5 (/home/blupace/anaconda3/lib/python3.8/site-packages),
watchdog 1.0.2 (/home/blupace/anaconda3/lib/python3.8/site-packages),
urllib3 1.26.4 (/home/blupace/anaconda3/lib/python3.8/site-packages),
unicodecsv 0.14.1 (/home/blupace/anaconda3/lib/python3.8/site-packages),
ujson 4.0.2 (/home/blupace/anaconda3/lib/python3.8/site-packages),
typing-extensions 3.7.4.3 (/home/blupace/anaconda3/lib/python3.8/site-packages),
typed-ast 1.4.2 (/home/blupace/anaconda3/lib/python3.8/site-packages),
traitlets 5.0.5 (/home/blupace/anaconda3/lib/python3.8/site-packages),
tqdm 4.59.0 (/home/blupace/anaconda3/lib/python3.8/site-packages),
tornado 6.1 (/home/blupace/anaconda3/lib/python3.8/site-packages),
toolz 0.11.1 (/home/blupace/anaconda3/lib/python3.8/site-packages),
toml 0.10.1 (/home/blupace/anaconda3/lib/python3.8/site-packages),
tifffile 2020.10.1 (/home/blupace/anaconda3/lib/python3.8/site-packages),
three-merge 0.1.1 (/home/blupace/anaconda3/lib/python3.8/site-packages),
threadpoolctl 2.1.0 (/home/blupace/anaconda3/lib/python3.8/site-packages),
textdistance 4.2.1 (/home/blupace/anaconda3/lib/python3.8/site-packages),
testpath 0.4.4 (/home/blupace/anaconda3/lib/python3.8/site-packages),
terminado 0.9.3 (/home/blupace/anaconda3/lib/python3.8/site-packages),
tblib 1.7.0 (/home/blupace/anaconda3/lib/python3.8/site-packages),
tables 3.6.1 (/home/blupace/anaconda3/lib/python3.8/site-packages),
sympy 1.7.1 (/home/blupace/anaconda3/lib/python3.8/site-packages),
statsmodels 0.12.2 (/home/blupace/anaconda3/lib/python3.8/site-packages),
SQLAlchemy 1.3.23 (/home/blupace/anaconda3/lib/python3.8/site-packages),
spyder 4.2.3 (/home/blupace/anaconda3/lib/python3.8/site-packages),
spyder-kernels 1.10.2 (/home/blupace/anaconda3/lib/python3.8/site-packages),
sphinxcontrib-websupport 1.2.4 (/home/blupace/anaconda3/lib/python3.8/site-packages),
sphinxcontrib-serializinghtml 1.1.4 (/home/blupace/anaconda3/lib/python3.8/site-packages),
sphinxcontrib-qthelp 1.0.3 (/home/blupace/anaconda3/lib/python3.8/site-packages),
sphinxcontrib-jsmath 1.0.1 (/home/blupace/anaconda3/lib/python3.8/site-packages),
sphinxcontrib-htmlhelp 1.0.3 (/home/blupace/anaconda3/lib/python3.8/site-packages),
sphinxcontrib-devhelp 1.0.2 (/home/blupace/anaconda3/lib/python3.8/site-packages),
sphinxcontrib-applehelp 1.0.2 (/home/blupace/anaconda3/lib/python3.8/site-packages),
Sphinx 3.5.2 (/home/blupace/anaconda3/lib/python3.8/site-packages),
soupsieve 2.2 (/home/blupace/anaconda3/lib/python3.8/site-packages),
sortedcontainers 2.3.0 (/home/blupace/anaconda3/lib/python3.8/site-packages),
sortedcollections 2.1.0 (/home/blupace/anaconda3/lib/python3.8/site-packages),
snowballstemmer 2.1.0 (/home/blupace/anaconda3/lib/python3.8/site-packages),
six 1.15.0 (/home/blupace/anaconda3/lib/python3.8/site-packages),
sip 4.19.13 (/home/blupace/anaconda3/lib/python3.8/site-packages),
singledispatch 0.0.0 (/home/blupace/anaconda3/lib/python3.8/site-packages),
simplegeneric 0.8.1 (/home/blupace/anaconda3/lib/python3.8/site-packages),
setuptools 52.0.0.post20210125 (/home/blupace/anaconda3/lib/python3.8/site-packages),
Send2Trash 1.5.0 (/home/blupace/anaconda3/lib/python3.8/site-packages),
SecretStorage 3.3.1 (/home/blupace/anaconda3/lib/python3.8/site-packages),
seaborn 0.11.1 (/home/blupace/anaconda3/lib/python3.8/site-packages),
scipy 1.6.1 (/home/blupace/anaconda3/lib/python3.8/site-packages),
scikit-learn 0.24.1 (/home/blupace/anaconda3/lib/python3.8/site-packages),
scikit-image 0.17.2 (/home/blupace/anaconda3/lib/python3.8/site-packages),
ruamel-yaml-conda 0.15.100 (/home/blupace/anaconda3/lib/python3.8/site-packages),
Rtree 0.9.4 (/home/blupace/anaconda3/lib/python3.8/site-packages),
rope 0.18.0 (/home/blupace/anaconda3/lib/python3.8/site-packages),
requests 2.25.1 (/home/blupace/anaconda3/lib/python3.8/site-packages),
regex 2020.11.13 (/home/blupace/anaconda3/lib/python3.8/site-packages),
QtPy 1.9.0 (/home/blupace/anaconda3/lib/python3.8/site-packages),
qtconsole 5.0.2 (/home/blupace/anaconda3/lib/python3.8/site-packages),
QtAwesome 1.0.2 (/home/blupace/anaconda3/lib/python3.8/site-packages),
QDarkStyle 2.8.1 (/home/blupace/anaconda3/lib/python3.8/site-packages),
pyzmq 20.0.0 (/home/blupace/anaconda3/lib/python3.8/site-packages),
PyYAML 5.4.1 (/home/blupace/anaconda3/lib/python3.8/site-packages),
pyxdg 0.27 (/home/blupace/anaconda3/lib/python3.8/site-packages),
PyWavelets 1.1.1 (/home/blupace/anaconda3/lib/python3.8/site-packages),
pytz 2021.1 (/home/blupace/anaconda3/lib/python3.8/site-packages),
python-xlib 0.29 (/home/blupace/anaconda3/lib/python3.8/site-packages),
python-language-server 0.36.2 (/home/blupace/anaconda3/lib/python3.8/site-packages),
python-jsonrpc-server 0.4.0 (/home/blupace/anaconda3/lib/python3.8/site-packages),
python-dateutil 2.8.1 (/home/blupace/anaconda3/lib/python3.8/site-packages),
pytest 6.2.2 (/home/blupace/anaconda3/lib/python3.8/site-packages),
PySocks 1.7.1 (/home/blupace/anaconda3/lib/python3.8/site-packages),
pyrsistent 0.17.3 (/home/blupace/anaconda3/lib/python3.8/site-packages),
pyparsing 2.4.7 (/home/blupace/anaconda3/lib/python3.8/site-packages),
pyOpenSSL 20.0.1 (/home/blupace/anaconda3/lib/python3.8/site-packages),
pyodbc 4.0.0-unsupported (/home/blupace/anaconda3/lib/python3.8/site-packages),
pyls-spyder 0.3.2 (/home/blupace/anaconda3/lib/python3.8/site-packages),
pyls-black 0.4.6 (/home/blupace/anaconda3/lib/python3.8/site-packages),
pylint 2.7.2 (/home/blupace/anaconda3/lib/python3.8/site-packages),
Pygments 2.8.1 (/home/blupace/anaconda3/lib/python3.8/site-packages),
pyflakes 2.2.0 (/home/blupace/anaconda3/lib/python3.8/site-packages),
pyerfa 1.7.2 (/home/blupace/anaconda3/lib/python3.8/site-packages),
pydocstyle 5.1.1 (/home/blupace/anaconda3/lib/python3.8/site-packages),
pycurl 7.43.0.6 (/home/blupace/anaconda3/lib/python3.8/site-packages),
pycparser 2.20 (/home/blupace/anaconda3/lib/python3.8/site-packages),
pycosat 0.6.3 (/home/blupace/anaconda3/lib/python3.8/site-packages),
pycodestyle 2.6.0 (/home/blupace/anaconda3/lib/python3.8/site-packages),
py 1.10.0 (/home/blupace/anaconda3/lib/python3.8/site-packages),
ptyprocess 0.7.0 (/home/blupace/anaconda3/lib/python3.8/site-packages),
psutil 5.8.0 (/home/blupace/anaconda3/lib/python3.8/site-packages),
prompt-toolkit 3.0.8 (/home/blupace/anaconda3/lib/python3.8/site-packages),
prometheus-client 0.9.0 (/home/blupace/anaconda3/lib/python3.8/site-packages),
ply 3.11 (/home/blupace/anaconda3/lib/python3.8/site-packages),
pluggy 0.13.1 (/home/blupace/anaconda3/lib/python3.8/site-packages),
pkginfo 1.7.0 (/home/blupace/anaconda3/lib/python3.8/site-packages),
pip 21.0.1 (/home/blupace/anaconda3/lib/python3.8/site-packages),
Pillow 8.1.2 (/home/blupace/anaconda3/lib/python3.8/site-packages),
pickleshare 0.7.5 (/home/blupace/anaconda3/lib/python3.8/site-packages),
pexpect 4.8.0 (/home/blupace/anaconda3/lib/python3.8/site-packages),
pep8 1.7.1 (/home/blupace/anaconda3/lib/python3.8/site-packages),
patsy 0.5.1 (/home/blupace/anaconda3/lib/python3.8/site-packages),
pathtools 0.1.2 (/home/blupace/anaconda3/lib/python3.8/site-packages),
pathspec 0.7.0 (/home/blupace/anaconda3/lib/python3.8/site-packages),
pathlib2 2.3.5 (/home/blupace/anaconda3/lib/python3.8/site-packages),
path 15.1.2 (/home/blupace/anaconda3/lib/python3.8/site-packages),
partd 1.1.0 (/home/blupace/anaconda3/lib/python3.8/site-packages),
parso 0.7.0 (/home/blupace/anaconda3/lib/python3.8/site-packages),
pandocfilters 1.4.3 (/home/blupace/anaconda3/lib/python3.8/site-packages),
pandas 1.2.3 (/home/blupace/anaconda3/lib/python3.8/site-packages),
packaging 20.9 (/home/blupace/anaconda3/lib/python3.8/site-packages),
openpyxl 3.0.7 (/home/blupace/anaconda3/lib/python3.8/site-packages),
olefile 0.46 (/home/blupace/anaconda3/lib/python3.8/site-packages),
numpydoc 1.1.0 (/home/blupace/anaconda3/lib/python3.8/site-packages),
numpy 1.19.2 (/home/blupace/anaconda3/lib/python3.8/site-packages),
numexpr 2.7.3 (/home/blupace/anaconda3/lib/python3.8/site-packages),
numba 0.53.0 (/home/blupace/anaconda3/lib/python3.8/site-packages),
notebook 6.2.0 (/home/blupace/anaconda3/lib/python3.8/site-packages),
nose 1.3.7 (/home/blupace/anaconda3/lib/python3.8/site-packages),
nltk 3.5 (/home/blupace/anaconda3/lib/python3.8/site-packages),
networkx 2.5 (/home/blupace/anaconda3/lib/python3.8/site-packages),
nest-asyncio 1.5.1 (/home/blupace/anaconda3/lib/python3.8/site-packages),
nbformat 5.1.2 (/home/blupace/anaconda3/lib/python3.8/site-packages),
nbconvert 6.0.7 (/home/blupace/anaconda3/lib/python3.8/site-packages),
nbclient 0.5.3 (/home/blupace/anaconda3/lib/python3.8/site-packages),
navigator-updater 0.2.1 (/home/blupace/anaconda3/lib/python3.8/site-packages),
mypy-extensions 0.4.3 (/home/blupace/anaconda3/lib/python3.8/site-packages),
multipledispatch 0.6.0 (/home/blupace/anaconda3/lib/python3.8/site-packages),
msgpack 1.0.2 (/home/blupace/anaconda3/lib/python3.8/site-packages),
mpmath 1.1.0 (/home/blupace/anaconda3/lib/python3.8/site-packages),
more-itertools 8.7.0 (/home/blupace/anaconda3/lib/python3.8/site-packages),
mock 4.0.3 (/home/blupace/anaconda3/lib/python3.8/site-packages),
mkl-service 2.3.0 (/home/blupace/anaconda3/lib/python3.8/site-packages),
mkl-random 1.1.1 (/home/blupace/anaconda3/lib/python3.8/site-packages),
mkl-fft 1.3.0 (/home/blupace/anaconda3/lib/python3.8/site-packages),
mistune 0.8.4 (/home/blupace/anaconda3/lib/python3.8/site-packages),
mccabe 0.6.1 (/home/blupace/anaconda3/lib/python3.8/site-packages),
matplotlib 3.3.4 (/home/blupace/anaconda3/lib/python3.8/site-packages),
MarkupSafe 1.1.1 (/home/blupace/anaconda3/lib/python3.8/site-packages),
lxml 4.6.2 (/home/blupace/anaconda3/lib/python3.8/site-packages),
llvmlite 0.36.0 (/home/blupace/anaconda3/lib/python3.8/site-packages),
libarchive-c 2.9 (/home/blupace/anaconda3/lib/python3.8/site-packages),
lazy-object-proxy 1.5.2 (/home/blupace/anaconda3/lib/python3.8/site-packages),
kiwisolver 1.3.1 (/home/blupace/anaconda3/lib/python3.8/site-packages),
keyring 22.3.0 (/home/blupace/anaconda3/lib/python3.8/site-packages),
jupyterlab 2.2.6 (/home/blupace/anaconda3/lib/python3.8/site-packages),
jupyterlab-widgets 1.0.0 (/home/blupace/anaconda3/lib/python3.8/site-packages),
jupyterlab-server 1.2.0 (/home/blupace/anaconda3/lib/python3.8/site-packages),
jupyterlab-pygments 0.1.2 (/home/blupace/anaconda3/lib/python3.8/site-packages),
jupyter 1.0.0 (/home/blupace/anaconda3/lib/python3.8/site-packages),
jupyter-core 4.7.1 (/home/blupace/anaconda3/lib/python3.8/site-packages),
jupyter-console 6.3.0 (/home/blupace/anaconda3/lib/python3.8/site-packages),
jupyter-client 6.1.7 (/home/blupace/anaconda3/lib/python3.8/site-packages),
jsonschema 3.2.0 (/home/blupace/anaconda3/lib/python3.8/site-packages),
json5 0.9.5 (/home/blupace/anaconda3/lib/python3.8/site-packages),
joblib 1.0.1 (/home/blupace/anaconda3/lib/python3.8/site-packages),
Jinja2 2.11.3 (/home/blupace/anaconda3/lib/python3.8/site-packages),
jeepney 0.6.0 (/home/blupace/anaconda3/lib/python3.8/site-packages),
jedi 0.17.2 (/home/blupace/anaconda3/lib/python3.8/site-packages),
jdcal 1.4.1 (/home/blupace/anaconda3/lib/python3.8/site-packages),
itsdangerous 1.1.0 (/home/blupace/anaconda3/lib/python3.8/site-packages),
isort 5.7.0 (/home/blupace/anaconda3/lib/python3.8/site-packages),
ipywidgets 7.6.3 (/home/blupace/anaconda3/lib/python3.8/site-packages),
ipython 7.21.0 (/home/blupace/anaconda3/lib/python3.8/site-packages),
ipython-genutils 0.2.0 (/home/blupace/anaconda3/lib/python3.8/site-packages),
ipykernel 5.3.4 (/home/blupace/anaconda3/lib/python3.8/site-packages),
intervaltree 3.1.0 (/home/blupace/anaconda3/lib/python3.8/site-packages),
iniconfig 1.1.1 (/home/blupace/anaconda3/lib/python3.8/site-packages),
importlib-metadata 3.7.3 (/home/blupace/anaconda3/lib/python3.8/site-packages),
imagesize 1.2.0 (/home/blupace/anaconda3/lib/python3.8/site-packages),
imageio 2.9.0 (/home/blupace/anaconda3/lib/python3.8/site-packages),
idna 2.10 (/home/blupace/anaconda3/lib/python3.8/site-packages),
html5lib 1.1 (/home/blupace/anaconda3/lib/python3.8/site-packages),
HeapDict 1.0.1 (/home/blupace/anaconda3/lib/python3.8/site-packages),
h5py 2.10.0 (/home/blupace/anaconda3/lib/python3.8/site-packages),
greenlet 1.0.0 (/home/blupace/anaconda3/lib/python3.8/site-packages),
gmpy2 2.0.8 (/home/blupace/anaconda3/lib/python3.8/site-packages),
glob2 0.7 (/home/blupace/anaconda3/lib/python3.8/site-packages),
gevent 21.1.1 (/home/blupace/anaconda3/lib/python3.8/site-packages),
future 0.18.2 (/home/blupace/anaconda3/lib/python3.8/site-packages),
fsspec 0.8.3 (/home/blupace/anaconda3/lib/python3.8/site-packages),
Flask 1.1.2 (/home/blupace/anaconda3/lib/python3.8/site-packages),
flake8 3.9.0 (/home/blupace/anaconda3/lib/python3.8/site-packages),
filelock 3.0.12 (/home/blupace/anaconda3/lib/python3.8/site-packages),
fastcache 1.1.0 (/home/blupace/anaconda3/lib/python3.8/site-packages),
et-xmlfile 1.0.1 (/home/blupace/anaconda3/lib/python3.8/site-packages),
entrypoints 0.3 (/home/blupace/anaconda3/lib/python3.8/site-packages),
docutils 0.16 (/home/blupace/anaconda3/lib/python3.8/site-packages),
docopt 0.6.2 (/home/blupace/anaconda3/lib/python3.8/site-packages),
distributed 2021.3.0 (/home/blupace/anaconda3/lib/python3.8/site-packages),
diff-match-patch 20200713 (/home/blupace/anaconda3/lib/python3.8/site-packages),
defusedxml 0.7.1 (/home/blupace/anaconda3/lib/python3.8/site-packages),
decorator 4.4.2 (/home/blupace/anaconda3/lib/python3.8/site-packages),
dask 2021.3.0 (/home/blupace/anaconda3/lib/python3.8/site-packages),
cytoolz 0.11.0 (/home/blupace/anaconda3/lib/python3.8/site-packages),
Cython 0.29.22 (/home/blupace/anaconda3/lib/python3.8/site-packages),
cycler 0.10.0 (/home/blupace/anaconda3/lib/python3.8/site-packages),
cryptography 3.4.6 (/home/blupace/anaconda3/lib/python3.8/site-packages),
contextlib2 0.6.0.post1 (/home/blupace/anaconda3/lib/python3.8/site-packages),
conda 4.9.2 (/home/blupace/anaconda3/lib/python3.8/site-packages),
conda-verify 3.4.2 (/home/blupace/anaconda3/lib/python3.8/site-packages),
conda-package-handling 1.7.2 (/home/blupace/anaconda3/lib/python3.8/site-packages),
conda-build 3.20.5 (/home/blupace/anaconda3/lib/python3.8/site-packages),
colorama 0.4.4 (/home/blupace/anaconda3/lib/python3.8/site-packages),
clyent 1.2.2 (/home/blupace/anaconda3/lib/python3.8/site-packages),
cloudpickle 1.6.0 (/home/blupace/anaconda3/lib/python3.8/site-packages),
click 7.1.2 (/home/blupace/anaconda3/lib/python3.8/site-packages),
chardet 4.0.0 (/home/blupace/anaconda3/lib/python3.8/site-packages),
cffi 1.14.5 (/home/blupace/anaconda3/lib/python3.8/site-packages),
certifi 2020.12.5 (/home/blupace/anaconda3/lib/python3.8/site-packages),
brotlipy 0.7.0 (/home/blupace/anaconda3/lib/python3.8/site-packages),
Bottleneck 1.3.2 (/home/blupace/anaconda3/lib/python3.8/site-packages),
boto 2.49.0 (/home/blupace/anaconda3/lib/python3.8/site-packages),
bokeh 2.3.0 (/home/blupace/anaconda3/lib/python3.8/site-packages),
bleach 3.3.0 (/home/blupace/anaconda3/lib/python3.8/site-packages),
black 19.10b0 (/home/blupace/anaconda3/lib/python3.8/site-packages),
bkcharts 0.2 (/home/blupace/anaconda3/lib/python3.8/site-packages),
bitarray 1.7.1 (/home/blupace/anaconda3/lib/python3.8/site-packages),
beautifulsoup4 4.9.3 (/home/blupace/anaconda3/lib/python3.8/site-packages),
backports.weakref 1.0.post1 (/home/blupace/anaconda3/lib/python3.8/site-packages),
backports.tempfile 1.0 (/home/blupace/anaconda3/lib/python3.8/site-packages),
backports.shutil-get-terminal-size 1.0.0 (/home/blupace/anaconda3/lib/python3.8/site-packages),
backports.functools-lru-cache 1.6.1 (/home/blupace/anaconda3/lib/python3.8/site-packages),
backcall 0.2.0 (/home/blupace/anaconda3/lib/python3.8/site-packages),
Babel 2.9.0 (/home/blupace/anaconda3/lib/python3.8/site-packages),
autopep8 1.5.6 (/home/blupace/anaconda3/lib/python3.8/site-packages),
attrs 20.3.0 (/home/blupace/anaconda3/lib/python3.8/site-packages),
atomicwrites 1.4.0 (/home/blupace/anaconda3/lib/python3.8/site-packages),
async-generator 1.10 (/home/blupace/anaconda3/lib/python3.8/site-packages),
astropy 4.2 (/home/blupace/anaconda3/lib/python3.8/site-packages),
astroid 2.5 (/home/blupace/anaconda3/lib/python3.8/site-packages),
asn1crypto 1.4.0 (/home/blupace/anaconda3/lib/python3.8/site-packages),
argon2-cffi 20.1.0 (/home/blupace/anaconda3/lib/python3.8/site-packages),
argh 0.26.2 (/home/blupace/anaconda3/lib/python3.8/site-packages),
appdirs 1.4.4 (/home/blupace/anaconda3/lib/python3.8/site-packages),
anaconda-project 0.9.1 (/home/blupace/anaconda3/lib/python3.8/site-packages),
anaconda-navigator 1.10.0 (/home/blupace/anaconda3/lib/python3.8/site-packages),
anaconda-client 1.7.2 (/home/blupace/anaconda3/lib/python3.8/site-packages),
alabaster 0.7.12 (/home/blupace/anaconda3/lib/python3.8/site-packages),
locket 0.2.1 (/home/blupace/anaconda3/lib/python3.8/site-packages/locket-0.2.1-py3.8.egg)],
'sys.executable': '/home/blupace/anaconda3/bin/python',
'sys.path': ['/home/blupace/anaconda3/lib/python38.zip',
'/home/blupace/anaconda3/lib/python3.8',
'/home/blupace/anaconda3/lib/python3.8/lib-dynload',
'',
'/home/blupace/anaconda3/lib/python3.8/site-packages',
'/home/blupace/anaconda3/lib/python3.8/site-packages/locket-0.2.1-py3.8.egg',
'/home/blupace/anaconda3/lib/python3.8/site-packages/IPython/extensions',
'/home/blupace/scripts/Final',
'/home/blupace/.ipython'],
'sys.prefix': '/home/blupace/anaconda3',
'sys.version_info': sys.version_info(major=3, minor=8, micro=5, releaselevel='final', serial=0)}
0
Comment actions Permalink

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

/usr/bin/python3.8
0
Comment actions Permalink

When I look at pycharm it says that i am using /usr/bin/python3.8

Please see attached

0
Comment actions Permalink

If I change my interpreter to

/home/blupace/anaconda3/bin/python'

And run my code I get all of these errors:

/home/blupace/anaconda3/bin/python /home/blupace/PycharmProjects/OpencvPython/chapter1.py
(512, 512, 3)
QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

Qt: Session management error: None of the authentication protocols specified are supported
QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)

QObject::moveToThread: Current thread (0x55983e4da620) is not the object's thread (0x55983e331870).
Cannot move to target thread (0x55983e4da620)
0
Comment actions Permalink

So either way it doesn't seem to resolve the issue.

0
Comment actions Permalink

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):

import os

for i, v in os.environ.items():
    print(f'{i}={v}')

Share the output for comparison (if there's nothing confidential).

0
Comment actions Permalink

Thanks for your support on this.

Here is the output from the snippet from within Pycharm

/home/****/anaconda3/bin/python /home/****/PycharmProjects/OpencvPython/charlie.py
PATH=/home/****/anaconda3/bin:/app/bin:/usr/bin:/app/extensions/bin:/app/packages/bin:/home/****/.var/app/com.jetbrains.PyCharm-Community/data/node/bin:/home/****/.var/app/com.jetbrains.PyCharm-Community/data/cargo/bin:/home/****/.var/app/com.jetbrains.PyCharm-Community/data/python/bin
container=flatpak
INVOCATION_ID=4ca4b17c577746d090ffa8ff2ffb2a06
XAUTHORITY=/run/user/1000/Xauthority
HISTCONTROL=ignoredups
XMODIFIERS=@im=ibus
GDMSESSION=gnome
XDG_DATA_DIRS=/app/share:/usr/share:/usr/share/runtime/share:/run/host/user-share:/run/host/share
CONDA_DEFAULT_ENV=base
MODULEPATH=/etc/modulefiles:/usr/share/modulefiles:/usr/share/modulefiles/Linux:/usr/share/modulefiles/Core:/usr/share/lmod/lmod/modulefiles/Core
CONDA_PYTHON_EXE=/home/****/anaconda3/bin/python
LMOD_SETTARG_FULL_SUPPORT=no
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
XDG_CACHE_HOME=/home/****/.var/app/com.jetbrains.PyCharm-Community/cache
XDG_CURRENT_DESKTOP=GNOME
CONDA_PREFIX=/home/****/anaconda3
JOURNAL_STREAM=8:48796
MODULEPATH_ROOT=/usr/share/modulefiles
MAIL=/var/spool/mail/****
SSH_AGENT_PID=2037
LMOD_DIR=/usr/share/lmod/lmod/libexec
USERNAME=blupace
SESSION_MANAGER=local/unix:@/tmp/.ICE-unix/2092,unix/unix:/tmp/.ICE-unix/2092
LOGNAME=****
ALSA_CONFIG_PATH=/usr/share/alsa/alsa-flatpak.conf
GST_PLUGIN_SYSTEM_PATH=/app/lib/gstreamer-1.0:/usr/lib/extensions/gstreamer-1.0:/usr/lib/x86_64-linux-gnu/gstreamer-1.0
MANAGERPID=1930
PWD=/home/****/PycharmProjects/OpencvPython
CARGO_HOME=/home/****/.var/app/com.jetbrains.PyCharm-Community/data/cargo
PYCHARM_HOSTED=1
FLATPAK_JETBRAINS_ENV=1
PYTHONPATH=/home/****/PycharmProjects/OpencvPython:/app/packages/python
LMOD_VERSION=8.4.1
GJS_DEBUG_TOPICS=JS ERROR;JS LOG
LMOD_CMD=/usr/share/lmod/lmod/libexec/lmod
LESSOPEN=||/usr/bin/lesspipe.sh %s
SHELL=/bin/sh
BASH_ENV=/usr/share/lmod/lmod/init/bash
GIO_LAUNCHED_DESKTOP_FILE=/var/lib/flatpak/exports/share/applications/com.jetbrains.PyCharm-Community.desktop
AT_SPI_BUS_ADDRESS=unix:path=/run/user/1000/at-spi-bus
OLDPWD=/app/pycharm/bin
NPM_CONFIG_USERCONFIG=/home****/.var/app/com.jetbrains.PyCharm-Community/config/npmrc
TMPDIR=/run/user/1000/app/com.jetbrains.PyCharm-Community
ALSA_CONFIG_DIR=/usr/share/alsa
CONDA_PROMPT_MODIFIER=(base)
XDG_SESSION_DESKTOP=gnome
PYTHONUSERBASE=/home/****/.var/app/com.jetbrains.PyCharm-Community/data/python
SHLVL=1
MANPATH=/usr/share/lmod/lmod/share/man:
QT_IM_MODULE=ibus
PULSE_CLIENTCONFIG=/run/user/1000/pulse/config
HISTSIZE=1000
CONDA_EXE=/home/****/anaconda3/bin/conda
CARGO_INSTALL_ROOT=/home/****/.var/app/com.jetbrains.PyCharm-Community/data/cargo
XDG_CONFIG_DIRS=/app/etc/xdg:/etc/xdg
LANG=en_US.UTF-8
MOZ_GMP_PATH=/usr/lib64/mozilla/plugins/gmp-gmpopenh264/system-installed
XDG_SESSION_TYPE=x11
FLATPAK_SANDBOX_DIR=/home/****.var/app/com.jetbrains.PyCharm-Community/sandbox
LMOD_PKG=/usr/share/lmod/lmod
DISPLAY=:99.0
_CE_M=
GI_TYPELIB_PATH=/app/lib/girepository-1.0
CONDA_SHLVL=1
_=/app/pycharm/jbr/bin/java
XDG_SESSION_CLASS=user
FLATPAK_ID=com.jetbrains.PyCharm-Community
GDM_LANG=en_US.UTF-8
XDG_DATA_HOME=/home/****/.var/app/com.jetbrains.PyCharm-Community/data
PYTHONIOENCODING=UTF-8
LMOD_ROOT=/usr/share/lmod
PYCHARM_JDK=${FLATPAK_DEST}/pycharm/jre64/
DESKTOP_SESSION=gnome
USER=****
GTK2_RC_FILES=/home/****/.gtkrc-2.0
XDG_CONFIG_HOME=/home/****/.var/app/com.jetbrains.PyCharm-Community/config
XDG_MENU_PREFIX=gnome-
GIO_LAUNCHED_DESKTOP_FILE_PID=53248
PULSE_SERVER=unix:/run/user/1000/pulse/native
WINDOWPATH=2
GJS_DEBUG_OUTPUT=stderr
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
_CE_CONDA=
PYTHONUNBUFFERED=1
HOSTNAME=bptsfed
MODULESHOME=/usr/share/lmod/lmod
LMOD_sys=Linux
KDEDIRS=/usr
XDG_RUNTIME_DIR=/run/user/1000
HOME=/home/****

Process finished with exit code 0
0
Comment actions Permalink

Here is the snippet run form terminal

SHELL=/bin/bash
SESSION_MANAGER=local/unix:@/tmp/.ICE-unix/2092,unix/unix:/tmp/.ICE-unix/2092
COLORTERM=truecolor
HISTCONTROL=ignoredups
XDG_MENU_PREFIX=gnome-
CONDA_EXE=/home/****/anaconda3/bin/conda
_CE_M=
HISTSIZE=1000
HOSTNAME=bptsfed
TERMINATOR_DBUS_PATH=/net/tenshu/Terminator2
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
TERMINATOR_UUID=urn:uuid:c06e11b0-cc6a-4163-ac96-5446cabcd0a5
XMODIFIERS=@im=ibus
DESKTOP_SESSION=gnome
SSH_AGENT_PID=2037
LMOD_DIR=/usr/share/lmod/lmod/libexec
PWD=/home/****/PycharmProjects/OpencvPython
GSETTINGS_SCHEMA_DIR=/home/****/anaconda3/envs/opencv/share/glib-2.0/schemas
XDG_SESSION_DESKTOP=gnome
LOGNAME=****
XDG_SESSION_TYPE=x11
CONDA_PREFIX=/home/****/anaconda3/envs/opencv
MODULESHOME=/usr/share/lmod/lmod
MANPATH=/usr/share/lmod/lmod/share/man:
GSETTINGS_SCHEMA_DIR_CONDA_BACKUP=
XAUTHORITY=/run/user/1000/gdm/Xauthority
GJS_DEBUG_TOPICS=JS ERROR;JS LOG
WINDOWPATH=2
GDM_LANG=en_US.UTF-8
GTK2_RC_FILES=/home/****/.gtkrc-2.0
HOME=/home/****
USERNAME=****
LANG=en_US.UTF-8
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=01;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=01;36:*.au=01;36:*.flac=01;36:*.m4a=01;36:*.mid=01;36:*.midi=01;36:*.mka=01;36:*.mp3=01;36:*.mpc=01;36:*.ogg=01;36:*.ra=01;36:*.wav=01;36:*.oga=01;36:*.opus=01;36:*.spx=01;36:*.xspf=01;36:
XDG_CURRENT_DESKTOP=GNOME
VTE_VERSION=6203
LMOD_SETTARG_FULL_SUPPORT=no
CONDA_PROMPT_MODIFIER=(opencv)
INVOCATION_ID=4ca4b17c577746d090ffa8ff2ffb2a06
LMOD_VERSION=8.4.1
TERMINATOR_DBUS_NAME=net.tenshu.Terminator23558193cd9818af7fe4d2c2f5bd9d00f
MANAGERPID=1930
GJS_DEBUG_OUTPUT=stderr
MODULEPATH_ROOT=/usr/share/modulefiles
MOZ_GMP_PATH=/usr/lib64/mozilla/plugins/gmp-gmpopenh264/system-installed
XDG_SESSION_CLASS=user
LMOD_PKG=/usr/share/lmod/lmod
IBUS_DISABLE_SNOOPER=1
TERM=xterm-256color
_CE_CONDA=
LESSOPEN=||/usr/bin/lesspipe.sh %s
USER=****
CONDA_SHLVL=2
DISPLAY=:1
LMOD_ROOT=/usr/share/lmod
SHLVL=1
BASH_ENV=/usr/share/lmod/lmod/init/bash
LMOD_sys=Linux
QT_IM_MODULE=ibus
CONDA_PYTHON_EXE=/home/****/anaconda3/bin/python
XDG_RUNTIME_DIR=/run/user/1000
CONDA_DEFAULT_ENV=opencv
KDEDIRS=/usr
JOURNAL_STREAM=8:48796
XDG_DATA_DIRS=/home/****/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share/:/usr/share/
PATH=/home/****/anaconda3/envs/opencv/bin:/home/****/anaconda3/condabin:/home/****/.local/bin:/home/****/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin
MODULEPATH=/etc/modulefiles:/usr/share/modulefiles:/usr/share/modulefiles/Linux:/usr/share/modulefiles/Core:/usr/share/lmod/lmod/modulefiles/Core
GDMSESSION=gnome
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
LMOD_CMD=/usr/share/lmod/lmod/libexec/lmod
MAIL=/var/spool/mail/****
CONDA_PREFIX_1=/home/****/anaconda3
GIO_LAUNCHED_DESKTOP_FILE_PID=39684
GIO_LAUNCHED_DESKTOP_FILE=/usr/share/applications/terminator.desktop
OLDPWD=/home/****/PycharmProjects
BASH_FUNC_ml%%=() { eval $($LMOD_DIR/ml_cmd "$@")
}
BASH_FUNC_module%%=() { eval $($LMOD_CMD bash "$@") && eval $(${LMOD_SETTARG_CMD:-:} -s sh)
}
_=/home/****/anaconda3/envs/opencv/bin/python

 

0
Comment actions Permalink

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,

 

0
Comment actions Permalink

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"

0

Please sign in to leave a comment.