I was running the April docker push as a singularity container on a HPC and it was working well. I just pulled the new docker container and it’s throwing this internal miniconda error. The singularity call is below in case I’m doing something wrong (and let me know if you want a tree structure or anything). It doesn’t seem to throw the unicode error if I run with the --anat-only flag on the cluster or if I run the same image as a docker container locally. Any idea what’s amiss?
Traceback (most recent call last):
File "/usr/local/miniconda/bin/fmriprep", line 11, in <module>
load_entry_point('fmriprep==0.5.3', 'console_scripts', 'fmriprep')()
File "/usr/local/miniconda/lib/python3.6/site-packages/fmriprep/cli/run.py", line 157, in main
create_workflow(opts)
File "/usr/local/miniconda/lib/python3.6/site-packages/fmriprep/cli/run.py", line 264, in create_workflow
ignore_aroma_err=opts.ignore_aroma_denoising_errors)
File "/usr/local/miniconda/lib/python3.6/site-packages/fmriprep/workflows/base.py", line 67, in init_fmriprep_wf
ignore_aroma_err=ignore_aroma_err)
File "/usr/local/miniconda/lib/python3.6/site-packages/fmriprep/workflows/base.py", line 158, in init_single_subject_wf
ignore_aroma_err=ignore_aroma_err)
File "/usr/local/miniconda/lib/python3.6/site-packages/fmriprep/workflows/epi.py", line 71, in init_func_preproc_wf
metadata = layout.get_metadata(bold_file)
File "/usr/local/miniconda/lib/python3.6/site-packages/bids/grabbids/bids_layout.py", line 44, in get_metadata
param_dict = json.load(open(json_file_path, "r"))
File "/usr/local/miniconda/lib/python3.6/json/__init__.py", line 296, in load
return loads(fp.read(),
File "/usr/local/miniconda/lib/python3.6/codecs.py", line 321, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb0 in position 37: invalid start byte
srun: error: node027: task 0: Exited with exit code 1
PYTHONPATH="" \
singularity run /software/poldracklab_fmriprep_latest-2017-07-18-ce203ed0021e.img \
--participant_label ${participant} \
--nthreads 16 \
--omp-nthreads 16 \
--mem_mb 200000 \
--ignore slicetiming \
--bold2t1w-dof 9 \
--output-space template \
--template MNI152NLin2009cAsym \
--skull-strip-ants \
--write-graph \
-w ${exp_path}${workdir} \
${exp_path}${sourcedir} \
${exp_path}${outdir} \
participant
No obvious encoding issues based on the snippet of code below.
shopt -s globstar
for f in **/*.json; do
echo "${f}"
tr -d \\000-\\177 < "${f}" | wc -c # test if only ASCII characters
iconv -f utf-8 -t ucs-4 < "${f}" >/dev/null # test for unexpected characters
done
I reset the local docker and pulled the container again. Now I’m getting a different conda error, this one about loading the conda libraries. Still doesn’t seem to be an issue with the local docker container. I’ll try building the singularity container a different way and see if that changes anything.
170719-03:02:48,430 workflow INFO:
Executing: mask_reportlet ID: 25
170719-03:02:48,437 workflow INFO:
Executing node mask_reportlet in dir: ~/work/fmriprep_wf/single_subject_008_wf/func_preproc_task_rest_run_001_wf/epi_hmc_wf/enhance_and_skullstrip_epi_wf/mask_reportlet
Intel MKL FATAL ERROR: Cannot load libmkl_avx2.so or libmkl_def.so.so or libmkl_def.so.