Repository navigation
Closed
Description
Dear Oscar,
I am trying to contribute the SUIT (cerebellar only) template to templateflow, following the submission instructions:
https://www.templateflow.org/contributing/submission/
The file upload does work - however, there seems to be a conflict with something uploaded earlier.
I'm not sure how to resolve this....
best,
Joern
tfmgr add tpl-SUIT --osf-user *******
OSF password:
Has a RRID (research resource ID) already been assigned? []: No
Preparing Pull-Request (wd=/var/folders/vh/tsrrmndj3kj8fm3m4p51k3nc0000gn/T/tmpzezi_c74).
Cloning into 'templateflow'...
remote: Enumerating objects: 15, done.
remote: Counting objects: 100% (2/2), done.
remote: Total 15 (delta 0), reused 2 (delta 0), pack-reused 13
Receiving objects: 100% (15/15), 44.62 MiB | 20.54 MiB/s, done.
Resolving deltas: 100% (1/1), done.
create(error): /private/var/folders/vh/tsrrmndj3kj8fm3m4p51k3nc0000gn/T/tmpzezi_c74/templateflow/tpl-SUIT (dataset) [collision with content in parent dataset at /private/var/folders/vh/tsrrmndj3kj8fm3m4p51k3nc0000gn/T/tmpzezi_c74/templateflow: ['/private/var/folders/vh/tsrrmndj3kj8fm3m4p51k3nc0000gn/T/tmpzezi_c74/templateflow/tpl-SUIT/LICENSE', '/private/var/folders/vh/tsrrmndj3kj8fm3m4p51k3nc0000gn/T/tmpzezi_c74/templateflow/tpl-SUIT/README.md', '/private/var/folders/vh/tsrrmndj3kj8fm3m4p51k3nc0000gn/T/tmpzezi_c74/templateflow/tpl-SUIT/template_description.json', '/private/var/folders/vh/tsrrmndj3kj8fm3m4p51k3nc0000gn/T/tmpzezi_c74/templateflow/tpl-SUIT/tpl-SUIT.spec', '/private/var/folders/vh/tsrrmndj3kj8fm3m4p51k3nc0000gn/T/tmpzezi_c74/templateflow/tpl-SUIT/tpl-SUIT_flat.surf.gii', '/private/var/folders/vh/tsrrmndj3kj8fm3m4p51k3nc0000gn/T/tmpzezi_c74/templateflow/tpl-SUIT/tpl-SUIT_from-MNI152NLin2009cSymC_mode-image_xfm.nii', '/private/var/folders/vh/tsrrmndj3kj8fm3m4p51k3nc0000gn/T/tmpzezi_c74/templateflow/tpl-SUIT/tpl-SUIT_from-MNI152NLin2009cSymC_mode-point_xfm.nii', '/private/var/folders/vh/tsrrmndj3kj8fm3m4p51k3nc0000gn/T/tmpzezi_c74/templateflow/tpl-SUIT/tpl-SUIT_from-MNI152NLin6AsymC_mode-image_xfm.nii', '/private/var/folders/vh/tsrrmndj3kj8fm3m4p51k3nc0000gn/T/tmpzezi_c74/templateflow/tpl-SUIT/tpl-SUIT_from-MNI152NLin6AsymC_mode-point_xfm.nii', '/private/var/folders/vh/tsrrmndj3kj8fm3m4p51k3nc0000gn/T/tmpzezi_c74/templateflow/tpl-SUIT/tpl-SUIT_res-1_T1w.nii', '/private/var/folders/vh/tsrrmndj3kj8fm3m4p51k3nc0000gn/T/tmpzezi_c74/templateflow/tpl-SUIT/tpl-SUIT_sulc.shape.gii']]
Traceback (most recent call last):
File "/opt/miniconda3/bin/tfmgr", line 8, in <module>
sys.exit(cli())
File "/opt/miniconda3/lib/python3.9/site-packages/click/core.py", line 1128, in __call__
return self.main(*args, **kwargs)
File "/opt/miniconda3/lib/python3.9/site-packages/click/core.py", line 1053, in main
rv = self.invoke(ctx)
File "/opt/miniconda3/lib/python3.9/site-packages/click/core.py", line 1659, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/opt/miniconda3/lib/python3.9/site-packages/click/core.py", line 1395, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/opt/miniconda3/lib/python3.9/site-packages/click/core.py", line 754, in invoke
return __callback(*args, **kwargs)
File "/opt/miniconda3/lib/python3.9/site-packages/tfmanager/cli.py", line 221, in add
dl.create(
File "/opt/miniconda3/lib/python3.9/site-packages/datalad/interface/base.py", line 773, in eval_func
return return_func(*args, **kwargs)
File "/opt/miniconda3/lib/python3.9/site-packages/datalad/interface/base.py", line 763, in return_func
results = list(results)
File "/opt/miniconda3/lib/python3.9/site-packages/datalad_next/patches/interface_utils.py", line 287, in _execute_command_
raise IncompleteResultsError(
datalad.support.exceptions.IncompleteResultsError: Command did not complete successfully. 1 failed:
[{'action': 'create',
'message': ('collision with content in parent dataset at %s: %s',
'/private/var/folders/vh/tsrrmndj3kj8fm3m4p51k3nc0000gn/T/tmpzezi_c74/templateflow',
['/private/var/folders/vh/tsrrmndj3kj8fm3m4p51k3nc0000gn/T/tmpzezi_c74/templateflow/tpl-SUIT/LICENSE',
'/private/var/folders/vh/tsrrmndj3kj8fm3m4p51k3nc0000gn/T/tmpzezi_c74/templateflow/tpl-SUIT/README.md',
'/private/var/folders/vh/tsrrmndj3kj8fm3m4p51k3nc0000gn/T/tmpzezi_c74/templateflow/tpl-SUIT/template_description.json',
'/private/var/folders/vh/tsrrmndj3kj8fm3m4p51k3nc0000gn/T/tmpzezi_c74/templateflow/tpl-SUIT/tpl-SUIT.spec',
'/private/var/folders/vh/tsrrmndj3kj8fm3m4p51k3nc0000gn/T/tmpzezi_c74/templateflow/tpl-SUIT/tpl-SUIT_flat.surf.gii',
'/private/var/folders/vh/tsrrmndj3kj8fm3m4p51k3nc0000gn/T/tmpzezi_c74/templateflow/tpl-SUIT/tpl-SUIT_from-MNI152NLin2009cSymC_mode-image_xfm.nii',
'/private/var/folders/vh/tsrrmndj3kj8fm3m4p51k3nc0000gn/T/tmpzezi_c74/templateflow/tpl-SUIT/tpl-SUIT_from-MNI152NLin2009cSymC_mode-point_xfm.nii',
'/private/var/folders/vh/tsrrmndj3kj8fm3m4p51k3nc0000gn/T/tmpzezi_c74/templateflow/tpl-SUIT/tpl-SUIT_from-MNI152NLin6AsymC_mode-image_xfm.nii',
'/private/var/folders/vh/tsrrmndj3kj8fm3m4p51k3nc0000gn/T/tmpzezi_c74/templateflow/tpl-SUIT/tpl-SUIT_from-MNI152NLin6AsymC_mode-point_xfm.nii',
'/private/var/folders/vh/tsrrmndj3kj8fm3m4p51k3nc0000gn/T/tmpzezi_c74/templateflow/tpl-SUIT/tpl-SUIT_res-1_T1w.nii',
'/private/var/folders/vh/tsrrmndj3kj8fm3m4p51k3nc0000gn/T/tmpzezi_c74/templateflow/tpl-SUIT/tpl-SUIT_sulc.shape.gii']),
'path': '/private/var/folders/vh/tsrrmndj3kj8fm3m4p51k3nc0000gn/T/tmpzezi_c74/templateflow/tpl-SUIT',
'refds': None,
'status': 'error',
'type': 'dataset'}]
Metadata
Metadata
Assignees
Labels
No labels
Activity
oesteban commentedon Mar 15, 2024
Sorry, sorry, sorry -- I've been up to my eyeballs and totally forgot about this :(
First, I'm going to move this comment to the template manager. It looks like an error on your computer's side.
However, I don't want to keep you stuck with this, so if you zip up the template and send it to me, I'll make sure to publish it before Tuesday.
Again, thanks a lot for your incredible patience (since September, when you first contacted me).
oesteban commentedon Mar 15, 2024
Okay, so the installation is failing at
python-manager/tfmanager/cli.py
Lines 221 to 226 in f4c596a
meaning, it is trying to create a new datalad dataset but failing. It seems that your templateflow super-dataset at
/private/var/folders/vh/tsrrmndj3kj8fm3m4p51k3nc0000gn/T/tmpzezi_c74/templateflowhas already atpl-SUITinstallation. I'm not sure why this may be happening, except if you are not using the "official" templateflow super-dataset.Something's off, since your error back in September was slightly different:
oesteban commentedon Mar 15, 2024
By reading the prompt, it looks like you are executing
tfmgrunder an existingtemplateflowrepo. If that repo is a fork (I know you did a fork because you invited me to it a while ago), it is possible that git is getting confused.jdiedrichsen commentedon Mar 15, 2024
Maybe I am just doing something wrong.
Here is what I did:
I also tried to call tfmgr without having a dedicated repro, but that did not work either.
Let me know what the correct approach is - and I give it another try from here.
Joern
jdiedrichsen commentedon Apr 11, 2024
I tried a couple of more variations, but couldn't make it work - did I have to fork from templateflow?
A zipped version of the template (46MB) is a bit big to upload here - so here is a dropbox link:
https://www.dropbox.com/scl/fi/aqqysabl0esns730mzlap/tpl-SUIT.zip?rlkey=rnke2wosbmr0g74g2dthp7lyv&dl=0
if you could submit from your side, that would be great!
Joern
oesteban commentedon Apr 13, 2024
Hi @jdiedrichsen, I have confirmed that the templateflow manager is quite broken.
I think your errors come from two assumptions:
However, even if you had been more lucky and got past the point where it broke for you, then you would've hit several authentication issues. Datalad has changed substantially since I last updated the manager and now things are not working.
In the end, I had to manually push the submission process. I have taken a few liberties:
Diedrichsen2009andBuckner2011. I hope that is okay with you :)My plan is to add the other two or three you have in your repo.
I just tested and things seem to work:
I'm going to close this issue and open new ones about the submission process. For questions/problems/future topics relating SUIT (e.g., adding the remainder of atlases, or fixing things I didn't get correctly), let's use the template repository at https://github.com/templateflow/tpl-SUIT (I've enabled the issues tab to keep track of these)
Thanks a lot for your patience :)