Closed jiayangshi closed 2 years ago
Can you try to install in a clean environment? I.e. creating a new empty conda environment and run conda install -c conda-forge foam_ct_phantom
inside it? Looking at the error messages, it could be that some existing package in your current environment is expected a specific h5py package which might be causing problems...
Yes, you are right. When I installed a clean environment, the problem doesn't exist. And the h5py
comes with foam_ct_phantom
is indeed version=3.6.0
. It must be other packages in my environment that downgraded the h5py
.
# Name Version Build Channel
h5py 3.6.0 nompi_py39h7e08c79_100 conda-forge
Sorry for false alarm.
foam_ct_phantom
is installed with given instructionconda install -c conda-forge foam_ct_phantom
. Andimport foam_ct_phantom
would give the error out.The
h5py
installed withfoam_ct_phantom
isIf I install the
h5py
withconda install -c anaconda h5py
, then the import error will be fixed.