Error during automated DICOM import

66 views
Skip to first unread message

Renè Schöpf

unread,
Jun 24, 2022, 8:16:27 AM6/24/22
to OpenREM
maybe you can help me. Our OPENREM works perfectly, even manual import is no problem. However, the import from our Pacs does not work. I am submitting all the details here.

Error from celery log:

[2022-06-24 10:51:40,364: WARNING/MainProcess] celery-default ready.
[2022-06-24 11:18:15,644: INFO/Worker-1] Association response received
[2022-06-24 11:18:15,887: ERROR/MainProcess] Task remapp.netdicom.qrscu.qrscu[6f4e278a-ef4f-4edf-821d-b3cc402504ad] raised unexpected: KeyError((0000, 0002),)
Traceback (most recent call last):
  File "c:\python27\lib\site-packages\celery\app\trace.py", line 240, in trace_task
    R = retval = fun(*args, **kwargs)
  File "c:\python27\lib\site-packages\celery\app\trace.py", line 438, in __protected_call__
    return self.run(*args, **kwargs)
  File "c:\python27\lib\site-packages\openrem\remapp\netdicom\qrscu.py", line 908, in qrscu
    modalities_returned, modality_matching = _query_for_each_modality(all_mods, query, d, assoc)
  File "c:\python27\lib\site-packages\openrem\remapp\netdicom\qrscu.py", line 709, in _query_for_each_modality
    _query_study(assoc, d, query, query_id)
  File "c:\python27\lib\site-packages\openrem\remapp\netdicom\qrscu.py", line 619, in _query_study
    for ss in st:
  File "c:\python27\lib\site-packages\netdicom\SOPclass.py", line 225, in SCU
    ans, id = self.DIMSE.Receive(Wait=False)
  File "c:\python27\lib\site-packages\netdicom\DIMSEprovider.py", line 92, in Receive
    return tmp.ToParams(), tmp.ID
  File "c:\python27\lib\site-packages\netdicom\DIMSEmessages.py", line 435, in ToParams
    tmp.AffectedSOPClassUID = self.CommandSet[(0x0000, 0x0002)]
  File "c:\python27\lib\site-packages\dicom\dataset.py", line 277, in __getitem__
    data_elem = dict.__getitem__(self, tag)
KeyError: (0000, 0002)



Python Packages: 
amqp                 1.4.9
anyjson              0.3.3
backports-abc        0.5
billiard             3.3.0.23
celery               3.1.25
certifi              2021.10.8
chardet              4.0.0
configparser         4.0.2
contextlib2          0.6.0.post1
defusedxml           0.7.1
Django               1.8.19
django-crispy-forms  1.8.1
django-filter        0.14.0
django-js-reverse    0.9.1
django-qsstats-magic 1.0.0
django-solo          1.1.5
flower               0.9.5
funcsigs             1.0.2
future               0.18.2
futures              3.3.0
humanize             1.0.0
idna                 2.10
importlib-metadata   2.1.3
kombu                3.0.37
mock                 3.0.5
numpy                1.16.6
OpenREM              0.10.0
pandas               0.24.2
pathlib2             2.3.7.post1
pip                  20.3.4
prometheus-client    0.8.0
psycopg2-binary      2.8.6
pydicom              0.9.9
pynetdicom           0.8.2b2
python-dateutil      2.8.2
pytz                 2022.1
requests             2.27.1
scandir              1.10.0
setuptools           41.2.0
singledispatch       3.7.0
six                  1.16.0
testfixtures         6.18.5
tornado              5.1.1
typing               3.10.0.0
urllib3              1.26.9
vine                 1.3.0
wheel                0.37.1
xlrd                 2.0.1
XlsxWriter           2.0.0
zipp                 1.2.0

Details you can see in the pics enclosed. OPENREM Version 0.10, PACS is synedra

ty for your help
RenèTask administraton.png

DICOM Networking.png

Ed McDonagh

unread,
Jun 24, 2022, 9:24:46 AM6/24/22
to OpenREM
Hi Renè

It isn't immediately obvious to me what is going wrong here. You are querying at the study level, presumably for the first time (in that query), and pydicom is complaining about there being no CommandSet tag AffectedSOPClassUID.

I haven't seen this before.

Can you please set the qrscu logs to DEBUG (docs.openrem.org/en/0.10.0-docs/install.html#log-file) and repeat the test, and this time send me both the Celery log as you have here, as well as the QR log?

You can send the log files directly to me instead of the group if you wish, and I'll post any findings/advice here afterwards.

Kind regards

Ed

--
You received this message because you are subscribed to the Google Groups "OpenREM" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openrem+u...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/openrem/2ca52ab8-8baa-4800-9e16-f418ee9bbf49n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages