Nedd help to correct program ping verfy ok but at the time of image transfer i got following error why what to change in program #1045
Replies: 2 comments 2 replies
-
Next time could you post a minimal code sample + output, especially one without threading? Having dozens of the overlapping versions of the same error is really hard to parse and is just a pain, for me and anyone else looking at the same issue for help. The (excessive, I should fix that) UID warnings are because pydicom v3.0 doesn't have the newer transfer syntaxes. You can fix that by As for the exceptions, looks like there's a text value in the association request that doesn't use the required ASCII encoding. Probably an AE title. It's always an AE title:
>>> b = b"\xC0\x33\x8E\x79\xF8\x7F\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20"
>>> b.decode("ascii")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc0 in position 0: ordinal not in range(128)
>>> b.decode("utf-16") # probably not correct since 0x20 should be the padding spaces, you can figure out the right one
'㏀禎翸†††††' Although maybe it's doing a weird mix of allowing non-ASCII AE titles then padding them out with ASCII spaces? Gross. Anyway, this can be worked around by extending the encodings list via _config.CODECS or fixed permanently by finding the non-conformant value (have you checked the AE title?) and make it conformant. I feel like we've had this discussion before. If that doesn't work can you post the output from: from pynetdicom import AE, evt, debug_logger
from pynetdicom.sop_class import Verification, USImageStorage
from pynetdicom._handlers import debug_data
debug_logger()
# Create AE, add handler to server as normal
ae = AE(ae_title="Dicom")
ae.add_supported_context(Verification)
ae.add_supported_context(USImageStorage)
# DO NOT USE THREADING OR I WILL DIE
ae.start_server(("192.168.1.10", 11116), evt_handlers=[(evt.EVT_DATA_RECV, debug_data, [0x01])]) And then send a single C-STORE request. This will at least let me narrow it down to the AE title. |
Beta Was this translation helpful? Give feedback.
-
Thanks for you time and reply I will try and will let you know
…On Sat, Aug 2, 2025 at 5:00 AM scaramallion ***@***.***> wrote:
File
"C:\Users\Admin\AppData\Local\Programs\Python\Python313\Lib\site-packages\pynetdicom\pdu.py",
line 581, in calling_ae_title
Oh, I missed this the first time due to all the nonsense. It's definitely
an AE title that's the problem.
—
Reply to this email directly, view it on GitHub
<#1045 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AULCX5Q6AOHL3IYML2XSH2T3LPZ7RAVCNFSM6AAAAACC4CDP62VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTGOJWGU4DGOA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
--
Regards,
Pankaj Bachhav.
Sujyot Technologies.
www.sujyottechnologies.com
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
this is my programm i got following log what is the problem
what need to change
Beta Was this translation helpful? Give feedback.
All reactions