nipy / mindboggle

Automated anatomical brain label/shape analysis software (+ website)
http://mindboggle.info
Other
144 stars 54 forks source link

Docker executable works on macOS but generates traits error on ubuntu. #112

Closed binarybottle closed 7 years ago

binarybottle commented 7 years ago

The following command works on macOS:

docker run --rm -ti -v $HOST:/home/jovyan/work nipy/mindboggle $IMAGE --id $ID

but generates an error on ubuntu:

Traceback (most recent call last): File "/opt/conda/bin/mindboggle123", line 117, in reconall.inputs.T1_files = IMAGE File "/opt/conda/lib/python3.5/site-packages/nipype/interfaces/base.py", line 1976, in validate value = super(MultiPath, self).validate(object, name, newvalue) File "/opt/conda/lib/python3.5/site-packages/traits/trait_types.py", line 2337, in validate return TraitListObject( self, object, name, value ) File "/opt/conda/lib/python3.5/site-packages/traits/trait_handlers.py", line 2314, in init raise excp File "/opt/conda/lib/python3.5/site-packages/traits/trait_handlers.py", line 2306, in init value = [ validate( object, name, val ) for val in value ] File "/opt/conda/lib/python3.5/site-packages/traits/trait_handlers.py", line 2306, in value = [ validate( object, name, val ) for val in value ] File "/opt/conda/lib/python3.5/site-packages/nipype/interfaces/traits_extension.py", line 80, in validate self.error(object, name, value) File "/opt/conda/lib/python3.5/site-packages/traits/trait_handlers.py", line 173, in error value ) traits.trait_errors.TraitError: Each element of the 'T1_files' trait of a ReconAllInputSpec instance must be an existing file name, but a value of '/home/arnoklein/Data/example_mri_data/T1.nii.gz' <class 'str'> was specified.

satra commented 7 years ago

sounds like an incorrect file was specified: '/home/arnoklein/Data/example_mri_data/T1.nii.gz'

whatever path is specified has to involve /home/jovyan/work as that is the only thing that's being mounted to from outside.

binarybottle commented 7 years ago

You are absolutely correct. I followed the example on mindboggle's updated website, which I need to correct right now -- Thanks, @satra!