conda-forge / gdcm-feedstock

A conda-smithy repository for gdcm.
BSD 3-Clause "New" or "Revised" License
1 stars 11 forks source link

using GDCM handler to decode pixel data #26

Closed NargesSayah closed 4 years ago

NargesSayah commented 4 years ago

I'm trying to read and plot some DICOM files using Pydicom and GDCM handler, but I get an error although I have GDCM installed on my system (mac os x) through conda: $ conda install gdcm -c conda-forge And this is what I get:

RuntimeError: The following handlers are available to decode the pixel data however they are missing required dependencies: GDCM (req. GDCM)

This error was raised when calling pixel_array() to decode the pixel data. So, I specified the handler name by overwriting the dataset.py (passed handler_name='gdcm' as an input to convert_pixel_data) but still, I get:

RuntimeError: The pixel data handler 'gdcm' is not available on your system. Please refer to the pydicom documentation for information on installing needed packages.

Attempting to import gdcm in my python interpreter throws an ImportError while opening the library (referenced from libgdcmCommon.2.8.dylib):

Library not loaded: @rpath/libcrypto.1.1.dylib Reason: image not found

Also, I can't use other handlers like pillow due to the Transfer Syntax UID of my data ('1.2.840.10008.1.2.4.70' (JPEG Lossless, Non-Hierarchical, First-Order Prediction (Process 14 [Selection Value 1]))

NargesSayah commented 4 years ago

I just updated my python from Python 3.6.3 to Python 3.8 and now gdcm is working just fine!