deepmedic
deepmedic copied to clipboard
Decoding error while installing.
Hello I was getting the following error while installing:
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 3558: ordinal not in range(128)
I went in setup.py
and passed encoding='utf-8'
as a parameter to open(x)
statement in the read
function. I don't know if you should add it as default. Just sharing some information in case anyone else faces such an issue.
This setup worked for me:
# clone
git clone [email protected]:deepmedic/deepmedic.git
cd deepmedic
#checkout stable commit - Jan 29 2021
git checkout 7a646c912920fa09c447613b3d4416f2bb8feca6
# create conda environment
conda create --name deepmedic2 python, tensorflow==2.0.0, tensorflow-gpu -y
conda activate deepmedic2
# dependencies
conda install nibabel pandas matplotlib -c conda-forge -c anaconda
conda install -c conda-forge matplotlib
# downgrade numpy to 1.19 (1.20 does not work) # source: https://github.com/deepmedic/deepmedic/issues/205
conda install numpy=1.19
# test if binaries run
./deepMedicRun -h
# run tiny model (CPU)
./deepMedicRun -model ./examples/configFiles/tinyCnn/model/modelConfig.cfg \
-train examples/configFiles/tinyCnn/train/trainConfigWithValidation.cfg
Thanks both! Yes, seems in certain systems the encoding of setup py goes weird. I agree that explicitly specifying the encoding will likely solve this.
Lets leave this issue open, so that I address this in my next pass.
Thank you both