InsightSoftwareConsortium / ITKColorNormalization

Structure preserving color normalization on H&E images using a reference image
Apache License 2.0
18 stars 5 forks source link

Help with installation? #41

Closed sousanunes closed 1 year ago

sousanunes commented 1 year ago

Hi!

I installed itk-spcn using pip, within a conda env with python=3.9.

However, when using the itk within the same environment, it does not work properly. I manage to import and read/write images.

But when calling itk.structure_preserving_color_normalization_filter(). I get AttributeError: PyCapsule_Import "_ITKCommonPython._C_API" is not valid

I get a similar outcome when trying itk.StructurePreservingColorNormalizationFilter.New()

There seems to be a problem with the installation of the python interface. I've wrapped my head around it and spent hours searching but can't figure out why this is happening. Any help would be greatly appreciated! Thank you!

dzenanz commented 1 year ago

This is a duplicate of https://github.com/InsightSoftwareConsortium/ITK/issues/3528. This package needs new wheels. @tbirdso or @Leengit might make them?

tbirdso commented 1 year ago

@dzenanz @Leengit I have opened #42 to build ITKColorNormalization wheels for v5.3.0. This issue should be addressed once those changes are merged and a new release is tagged.

@sousanunes Thank you for bringing this to our attention! We will have an updated release on PyPI soon that you will be able to pip install to resolve the issue. If you have other questions about using ITK and modules like ITKColorNormalization feel free to ask them on the ITK community forum.

sousanunes commented 1 year ago

Thanks so much!

tbirdso commented 1 year ago

Hi @sousanunes , updated packages are now available for download, thank you for your patience.

python -m pip install itk==v5.3.0 itk-spcn==v0.2.0

Please let us know if you run into any additional issues.