Closed blissdismissed closed 5 months ago
If handle_store
isn't being called then I really recommend you check what has been configured with PACS. Both the Move SCU AET/IP/Port and the destination Store SCP AET/IP/Port need to be registered.
Thank you @scaramallion
I had the configured saved in PACS. What seemed to do the trick was how the Store SCP was being configured. By changing the localhost IP from:
scp = ae.start_server(("127.0.0.1", 4410), block=False, evt_handlers=handlers)
to
scp = ae.start_server(("0.0.0.0", 4410), block=False, evt_handlers=handlers)
The transfer of the files was accepted and stored in the same directory in which the script was run
Hi I am trying to do a very basic transfer of a series of dicom images using pydicom. Performing a CMOVE the first part is successful, the association is established with the PACS server, and I see the correct number of images in the queue for the second part of a CMOVE operation, the CStore.
However when it starts actually retrieving the images it fails without an error, moves on to the next image and then at the end throws a: -MOVE query status: 0xb000
Here is my main.py with bogus IP and UIDs
Any ideas how to deeper troubleshoot to figure out why the CStore is failing? I put a breakpoint in my handle_store(event) event handler but doesn't even get triggered, so I'm a bit at a loss. The AE Title, IP, and port are registered with my PACS system. Actually the CMOVE works when I send it to an Orthanc instance on the computer with the same port configuration.
Is this a threading issue? I'm running the code from the computer trying to receive the images and the creation of the storage SCP in the python script is in the same script making the CMOVE request.
Also are the files just going in the same directory at my main.py file? I don't see anywhere to enter a path in the documentation.
Thanks for any help you can offer!