[Debian-med-packaging] Bug#868229: Bug#868229: NotImplementedError: Pixel Data is compressed in a format pydicom does not yet handle. Cannot return array
Étienne Mollier
emollier at emlwks999.eu
Wed Dec 22 22:11:18 GMT 2021
Hi Andreas,
Andreas Tille, on 2021-12-19:
> I tried the suggested test script but I think there is another even
> more deep problem which seems to be a broken Python3-port:
>
>
> + nib-dicomfs /tmp/bug1 /tmp/demo
> Traceback (most recent call last):
> File "/usr/bin/nib-dicomfs", line 33, in <module>
> sys.exit(load_entry_point('nibabel==3.2.1', 'console_scripts', 'nib-dicomfs')())
> File "/usr/lib/python3/dist-packages/nibabel/cmdline/dicomfs.py", line 232, in main
> dicom_path=files[0].decode(encoding)
> AttributeError: 'str' object has no attribute 'decode'
That looks definitely related to python3 port. The 'str' type
is expected to always be encoded utf-8, so it is not possible to
decode an from any other encodings anymore. Quick and easy (and
also probably deemed wrong) option would be to assume utf-8 and
just strip the decoding step. A more correct option would be to
work with 'bytes' type which can be decoded from more arbitrary
streams using its 'decode' method; from the quick glimpse I had
in the corresponding file, I didn't get a precise idea how to
implement that unfortunately.
In hope this helps anyway,
--
Étienne Mollier <emollier at emlwks999.eu>
Fingerprint: 8f91 b227 c7d6 f2b1 948c 8236 793c f67e 8f0d 11da
Sent from /dev/pts/4, please excuse my verbosity.
On air: Platitude - Starlight
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-med-packaging/attachments/20211222/598f4cc4/attachment.sig>
More information about the Debian-med-packaging
mailing list