TomographicImaging / CIL

A versatile python framework for tomographic imaging
https://tomographicimaging.github.io/CIL/
Apache License 2.0
88 stars 40 forks source link

Unable to install CIL v24.0.0 with tigre on windows #1832

Open lauramurgatroyd opened 2 weeks ago

lauramurgatroyd commented 2 weeks ago

Description

command: conda create --name cil -c conda-forge -c intel -c ccpi cil=24.0.0 astra-toolbox=*=cuda* tigre ccpi-regulariser tomophantom ipywidgets hangs forever

The below did work: conda create --name cil -c conda-forge -c intel -c ccpi cil=24.0.0

This also works: conda create --name cil_except_tigre -c conda-forge -c intel -c ccpi cil=24.0.0 astra-toolbox=*=cuda* ccpi-regulariser tomophantom ipywidgets i.e. everything in the environment except for tigre

This shows the problem related to tigre.

With just cil and tigre: conda create --name cil -c conda-forge -c intel -c ccpi cil=24.0.0 tigre it doesn't work - just hangs at "solving environment"

I treid installing only tigre, not cil and it gave me tigre=2.4. I tried to force tigre=2.6 but it said it didnt exist. Seems its only been built for linux. Not sure if this is the problem.

In the recipe: https://github.com/TomographicImaging/CIL/blob/master/recipe/meta.yaml run_constrained allows 2.4 but test requires 2.6 https://github.com/TomographicImaging/CIL/blob/ccf17f393ba911d13b74f2327779dde030098fe6/recipe/meta.yaml#L95C4-L95C23 https://github.com/TomographicImaging/CIL/blob/ccf17f393ba911d13b74f2327779dde030098fe6/recipe/meta.yaml#L39C7-L39C16

paskino commented 2 weeks ago

The binaries for v2.6 on Windows are not on the anaconda channel, https://anaconda.org/ccpi/tigre. I remember @gfardell saying something about problems with Visual Studio and runtime, somehow conflicting with https://github.com/TomographicImaging/CIL/blob/26c2fe9555d14a6c3226d93d72f39e503841079b/recipe/meta.yaml#L82

lauramurgatroyd commented 2 weeks ago

On another windows machine with:

The following command worked:

conda create --name cil_tigre -c conda-forge -c intel -c ccpi cil=24.0.0 tigre worked! It got me cil v24.0.0 and tigre v2.4

This didn't work (hung forever): conda create --name cil -c conda-forge -c intel -c ccpi cil=24.0.0 astra-toolbox=*=cuda* tigre ccpi-regulariser tomophantom ipywidgets

lauramurgatroyd commented 2 weeks ago

Updated the first windows machine to conda version 24.5.0 and now conda create --name cil_tigre -c conda-forge -c intel -c ccpi cil=24.0.0 tigre worked! It got me cil v24.0.0 and tigre v2.4

so it was possibly a conda v24.4.0 issue???