Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dump_dcm_info gives error #77

Closed
GuangSunshine opened this issue Jan 25, 2024 · 2 comments
Closed

dump_dcm_info gives error #77

GuangSunshine opened this issue Jan 25, 2024 · 2 comments

Comments

@GuangSunshine
Copy link

Installed dicom-validator-0.4.1 lxml-5.1.0 pydicom-2.4.4
validate_iods works fine, thanks!
Tried dump_dcm_info on several Dicom images, always get the following error:


Using DICOM revision 2024a

/mnt/c/Images//CT.Image1.dcm
Traceback (most recent call last):
File "/home/yg/.local/lib/python3.10/site-packages/pydicom/tag.py", line 28, in tag_in_exception
yield
File "/home/yg/.local/lib/python3.10/site-packages/pydicom/dataset.py", line 2474, in walk
callback(self, data_element) # self = this Dataset
File "/home/yg/.local/lib/python3.10/site-packages/dicom_validator/dump_dcm_info.py", line 48, in
lambda data_set, data_elem: self.print_dataelement(data_set, data_elem)
File "/home/yg/.local/lib/python3.10/site-packages/dicom_validator/dump_dcm_info.py", line 74, in print_dataelement
description = self.dict_info.get(tag_id)
AttributeError: 'DataElementDumper' object has no attribute 'dict_info'. Did you mean: 'dicom_info'?

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/home/yg/.local/bin/dump_dcm_info", line 8, in
sys.exit(main())
File "/home/yg/.local/lib/python3.10/site-packages/dicom_validator/dump_dcm_info.py", line 196, in main
dumper.dump_file(dicom_path)
File "/home/yg/.local/lib/python3.10/site-packages/dicom_validator/dump_dcm_info.py", line 118, in dump_file
self.print_dataset(dataset)
File "/home/yg/.local/lib/python3.10/site-packages/dicom_validator/dump_dcm_info.py", line 47, in print_dataset
dataset.walk(
File "/home/yg/.local/lib/python3.10/site-packages/pydicom/dataset.py", line 2472, in walk
with tag_in_exception(tag):
File "/usr/lib/python3.10/contextlib.py", line 153, in exit
self.gen.throw(typ, value, traceback)
File "/home/yg/.local/lib/python3.10/site-packages/pydicom/tag.py", line 32, in tag_in_exception
raise type(exc)(msg) from exc
AttributeError: With tag (0008, 0005) got exception: 'DataElementDumper' object has no attribute 'dict_info'
Traceback (most recent call last):
File "/home/yg/.local/lib/python3.10/site-packages/pydicom/tag.py", line 28, in tag_in_exception
yield
File "/home/yg/.local/lib/python3.10/site-packages/pydicom/dataset.py", line 2474, in walk
callback(self, data_element) # self = this Dataset
File "/home/yg/.local/lib/python3.10/site-packages/dicom_validator/dump_dcm_info.py", line 48, in
lambda data_set, data_elem: self.print_dataelement(data_set, data_elem)
File "/home/yg/.local/lib/python3.10/site-packages/dicom_validator/dump_dcm_info.py", line 74, in print_dataelement
description = self.dict_info.get(tag_id)
AttributeError: 'DataElementDumper' object has no attribute 'dict_info'

@mrbean-bremen
Copy link
Member

Thanks - this was a regression that is already fixed in main. I will probably make a new patch release.

@mrbean-bremen
Copy link
Member

Fixed with new release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants