Patrice
Thanks for the quick response. Your assistance is greatly appreciated.
My script is running on Windows. I have attached it, but all I have done relative to the example is hard-coded the IP and port, and changed 'AET1' to 'DCM4CHEE'.
The VM was originally on a separate Linux box, but I just tried it on this same Windows computer with the same results.
I have not sent any datasets to the VM on my Windows PC; however, the VM on Linux did have some, which were sent there by someone else.
Here is the python output. It just sits there after I
>>> runfile('C:/GE/FPC/Phantom/QR_example.py', wdir=r'C:/GE/FPC/Phantom')
Association response received
DICOM Echo ... done with status "Success "
DICOM FindSCU ... done with status "<generator object SCU at 0x0564C0F8>"
As you can see, I never get the "Release association" print. Also, I don't know what the "SCU" output means. Where does it come from? If I comment out the "print ss" line, then it is still there, but it goes away if I comment out the entire for loop. That implies that the iteration over st generates it. Also, commenting out the for loop eliminates the exceptions on the VM side, which implies that the iteration process also includes communication to the VM.
Perhaps the solution is that I need to add some handling for an empty-set return. The one argument I have against that is that there are datasets on my Linux box. (See attached PNG, which was generated as follows. After logging into the VM's web interface, I pressed the Search button on the Folder tab without modifying any of the search fields.) In python, I changed the line to d.PatientsName = 'CH*' and saw the same errors. Maybe I am still doing something wrong?
I will try to figure out how to use the Storage SCU example to send some data. I think I will be in good shape if I can send a file to the VM, query the VM, and then retrieve it back to a new file.
Is there an easy way to see the lower-level communication details (maybe DICOM data) between python and VM? Maybe that can shed some light on my issue.
Regards,
Matt