You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have had a few issues with trying to create and build neurodocker container with AFNI. I'm new to neurodocker, so I don't know if maybe I'm doing something wrong and what is or isn't relevant, so I will try to be concise.
I was unable to run neurodocker with specifying AFNI version, e.g.:
neurodocker generate docker \
--pkg-manager yum \
--base-image fedora:40 \
--afni method=binaries version=25.1.03 \
> version.Dockerfile
Traceback (most recent call last):
File "/opt/anaconda3/lib/python3.11/site-packages/neurodocker/reproenv/renderers.py", line 76, in _render_string_from_template
source = tmpl.render(template=template)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/anaconda3/lib/python3.11/site-packages/jinja2/environment.py", line 1301, in render
self.environment.handle_exception()
File "/opt/anaconda3/lib/python3.11/site-packages/jinja2/environment.py", line 936, in handle_exception
raise rewrite_traceback_stack(source=source)
File "<template>", line 13, in top-level template code
jinja2.exceptions.UndefinedError: 'dict object' has no attribute '25.1.03'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/opt/anaconda3/bin/neurodocker", line 8, in <module>
sys.exit(cli())
^^^^^
File "/opt/anaconda3/lib/python3.11/site-packages/click/core.py", line 1157, in __call__
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/anaconda3/lib/python3.11/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/opt/anaconda3/lib/python3.11/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/anaconda3/lib/python3.11/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/anaconda3/lib/python3.11/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/anaconda3/lib/python3.11/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/anaconda3/lib/python3.11/site-packages/click/decorators.py", line 33, in new_func
return f(get_current_context(), *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/anaconda3/lib/python3.11/site-packages/neurodocker/cli/generate.py", line 478, in docker
_base_generate(
File "/opt/anaconda3/lib/python3.11/site-packages/neurodocker/cli/generate.py", line 455, in _base_generate
r = renderer.from_dict(renderer_dict)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/anaconda3/lib/python3.11/site-packages/neurodocker/reproenv/renderers.py", line 212, in from_dict
renderer.add_registered_template(method_or_template, **kwds)
File "/opt/anaconda3/lib/python3.11/site-packages/neurodocker/reproenv/renderers.py", line 364, in add_registered_template
self.add_template(template=template, method=method)
File "/opt/anaconda3/lib/python3.11/site-packages/neurodocker/reproenv/renderers.py", line 328, in add_template
command = _render_string_from_template(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/anaconda3/lib/python3.11/site-packages/neurodocker/reproenv/renderers.py", line 78, in _render_string_from_template
raise RendererError(err) from e
neurodocker.reproenv.exceptions.RendererError: A template included in this renderer raised an error. Please check the template definition. A required argument might not be included in the required arguments part of the template. Variables in the template should start with `self.`.
This can be fixed by removing the multiarch-support flag from the build file but when you do that, it fails on yet another thing - curl -fL https://afni.nimh.nih.gov/pub/dist/tgz/linux_openmp_64.tgz which is the reason it might be related to the other issue I mentioned.
Hi,
I have had a few issues with trying to create and build neurodocker container with AFNI. I'm new to neurodocker, so I don't know if maybe I'm doing something wrong and what is or isn't relevant, so I will try to be concise.
but the build failed after about 40 mins of building (I had to cut some of the output for size limitations):
multiarch-support
, so the file generation is fine:but the build failed on:
This can be fixed by removing the multiarch-support flag from the build file but when you do that, it fails on yet another thing -
curl -fL https://afni.nimh.nih.gov/pub/dist/tgz/linux_openmp_64.tgz
which is the reason it might be related to the other issue I mentioned.I didn't manage to get any further than that, and I'd welcome any tips and advice on how to proceed.
Thanks for helping.
The text was updated successfully, but these errors were encountered: