Shell is already running a gui event loop for qt5.

294 views
Skip to first unread message

Giorgia Cariati

unread,
Feb 8, 2024, 10:29:03 AM2/8/24
to diffpy-users
Goodmorning everyone, 
I tried to run the pdfgetx3 command but I have obtained the following error: 
INFO:calling config_xray
Installed qt5 event loop hook.
Shell is already running a gui event loop for qt5. Call with no arguments to disable the current loop.
Using matplotlib backend: Qt5Agg
INFO:started PDF processing.

A white window opens, but there's no plot in it.
I have python 3.8.18

Thank you in advance
Giorgia

Simon Billinge

unread,
Feb 13, 2024, 9:24:16 AM2/13/24
to diffpy...@googlegroups.com
Dear Giorgia, Sorry for your difficulties.  I am not sure your  issue, but there was an earlier thread about a qt5agg issue, so I not sure if this may help:

--
You received this message because you are subscribed to the Google Groups "diffpy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to diffpy-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/diffpy-users/a6e6606e-4706-4c03-a095-535b2dd0b1abn%40googlegroups.com.


--
Simon Billinge
Professor, 
Department of Applied Physics and Applied Mathematics
Columbia University

María Curria

unread,
Jun 18, 2024, 10:03:50 AM6/18/24
to diffpy-users
Hi Georgia, 

I am having the same issue, where you able to fix it?

Federico Bianconi

unread,
Jun 18, 2024, 10:25:17 AM6/18/24
to diffpy-users
Hi Maria!

If you are running one of the latest versions of pdfgetx3 on Windows, you might have encountered the same issue that also me and my colleagues had. It should be something related to the Windows powershell and the matplotlib library, which end to show a blank window instead of the interactive one. By now, I have managed this problem by creating a linux virtual machine in WSL and installing pdfgetx3 in there with a dedicated python environment (I use pyenv) it works fine. 

I link you also a previous discussion of one of my colleague who had the same concern.
https://groups.google.com/g/diffpy-users/c/JnNtepCD6so

Cheers,

Federico Bianconi

Simon Billinge

unread,
Jun 20, 2024, 8:53:53 AM6/20/24
to diffpy...@googlegroups.com
as a general comment, we are working hard this summer to try and bring most all the group software up to latest specs and hope to have fixes in place for most things. 

It is super helpful to us to get the bug reports and issues reported so we really thank the community for that (and keep them coming).

S

--
You received this message because you are subscribed to the Google Groups "diffpy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to diffpy-users...@googlegroups.com.

María Curria

unread,
Jul 12, 2024, 5:55:59 AM7/12/24
to diffpy-users
Hi Federico,

Thank you for your answer! After months of trying to fix this issue I was finally able to make it work (after downgrading to matplotlib 3.1.3, because of the "set_window_title" issue). 

I can now finish writing my dissertation! :D

Cheers,
Maria

Simon Billinge

unread,
Jul 12, 2024, 7:38:12 AM7/12/24
to diffpy...@googlegroups.com
so sorry for the issues Maria.  Hopefully we will complete our updates of the software this summer!  We are making progress!

--
You received this message because you are subscribed to the Google Groups "diffpy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to diffpy-users...@googlegroups.com.

duy linh Pham

unread,
Dec 4, 2024, 3:47:54 AM12/4/24
to diffpy-users
Hello everyone,

I encountered the same problem as Giorgia, but thanks to the conversation and Maria's suggestion, I was able to install pdfgetx3. I'm sharing my installation notes here in the hope that they will help someone new to coding like me.
First, check the pdfgetx documentation link here

Then
Execute the commands in anaconda prompt

#Search for conda environment
conda env list

#delete overlap environment, if installed other versions before. (optional)
conda remove --name pdfgetx_env --all

# create a new pdfgetx env with the correct python version(3.7)
conda create -n pdfgetx_env python=3.7  

#activate conda env
conda activate pdfgetx_env

#direct to the folder containing the installation file, for example
cd C:\Users\Downloads\pdfgetx\

#In the same folder make a simple requiremets.txt file. It has the following lines to help install the necessary packages. 

pip
setuptools
six
NumPy
matplotlib==3.5
IPython

#install package according to the requirement file
conda install --yes --file requirements.txt  

#install the pdfget file
pip install diffpy.pdfgetx-2.2.1-py2.py3-none-any.whl

#test
python -m diffpy.pdfgetx.tests.run

#test with data. Download the example files on the link https://www.diffpy.org/doc/pdfgetx/2.0.0/tutorial.html. Then direct to the folder containing the downloaded test file, for example.
cd C:\Users\Downloads\pdfgetx\pdfgetxn3-examples\Ni

#test
pdfgetx3 ni300mesh_300k_nor_1-5.chi
plotdata ni300mesh_300k_nor_1-5.gr

Now you should be able to see the G(r) of Ni.
Cheers,
Linh.
Reply all
Reply to author
Forward
0 new messages