Closed binarybottle closed 7 years ago
@binarybottle - can you point me to where you define the node?
and the function itself that it calls.
Here is the line in convert2nii() that calls scipy.ndimage.affine_transform(): https://github.com/nipy/mindboggle/blob/master/mindboggle/mio/convert_volumes.py#L104
But the error seems to occur in a different place:
> Executing node Vertex_table.a1 in dir: /home/jovyan/work/mindboggle123_output/mindboggled/mindboggling/arno/Mindboggle/_hemi_rh/Vertex_table
refers to the following node: https://github.com/nipy/mindboggle/blob/master/mindboggle/mindboggle#L1260
which calls the function write_vertex_measures(): https://github.com/nipy/mindboggle/blob/master/mindboggle/mio/tables.py#L407
which calls apply_affine_transforms(): https://github.com/nipy/mindboggle/blob/master/mindboggle/mio/vtks.py#L1371
ah - i forgot about your vtk requirement. so in that case you need to have xvfbwrapper and xvfb as part of the container.
can you check if those exist in the container already? if so, then the Node definition (or anything that uses vtk functions may need: node_variable.interface._redirect_x = True
also the nipype you are installing is still the older version. we are hoping to get conda-forge release fixed in the next day or two.
mindboggle-base installs xvfb but not xvfbwrapper -- That's probably why mindboggle runs successfully when you're inside the Docker container but not when you're outside the container! I will update this now, but why do you think all of the other vtk-related functions were able to run successfully?
Even after rebuilding the container with xvfb and xvfbwrapper I got the same error.
Should I put Transform_surface_points.interface._redirect_x = True
here?:
https://github.com/nipy/mindboggle/blob/master/mindboggle/mindboggle#L1331
(or would it be TransformPoints
?)
it should be the node variable not node name. you can try this first to see if it helps.
I will try this now. Just confirmed that mindboggle123 runs fine within the docker container, just not from the outside...
what do you mean by "just not from outside"?
It fails when I run the Docker container as an executable:
sudo docker run --rm -ti -v $HOST:$DOCK nipy/mindboggle $IMAGE --id $ID
but not when I run mindboggle within the container:
sudo docker run --rm -ti -v $HOST:$DOCK --entrypoint /bin/bash nipy/mindboggle
@binarybottle - that's very weird. don't know why that would happen.
Fixed by pull request #115.
I get an error when running the docker container as an executable (and
scipy.ndimage.affine_transform()
generates a warning) in the new version of mindboggle: