Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in preprocessing example 1 - No installed dataset found at /data/ds000114. #187

Open
jankaWIS opened this issue Mar 6, 2024 · 1 comment

Comments

@jankaWIS
Copy link

jankaWIS commented Mar 6, 2024

Hi,

I'm trying to run in docker the first example notebook and when running this piece of code:

%%bash
datalad get -J 4 -d /data/ds000114 \
    /data/ds000114/derivatives/fmriprep/sub-*/anat/*preproc.nii.gz \
    /data/ds000114/sub-*/ses-test/func/*fingerfootlips*

I'm getting

[ERROR] No installed dataset found at /data/ds000114. [dataset.py:require_dataset:580] (ValueError) 

The more detailed error description says:

---------------------------------------------------------------------------
CalledProcessError                        Traceback (most recent call last)
<ipython-input-1-60915a9169a6> in <module>
----> 1 get_ipython().run_cell_magic('bash', '', 'datalad get -J 4 -d /data/ds000114 \\\n    /data/ds000114/derivatives/fmriprep/sub-*/anat/*preproc.nii.gz \\\n    /data/ds000114/sub-*/ses-test/func/*fingerfootlips*\n')

/opt/miniconda-latest/envs/neuro/lib/python3.6/site-packages/IPython/core/interactiveshell.py in run_cell_magic(self, magic_name, line, cell)
   2360             with self.builtin_trap:
   2361                 args = (magic_arg_s, cell)
-> 2362                 result = fn(*args, **kwargs)
   2363             return result
   2364 

/opt/miniconda-latest/envs/neuro/lib/python3.6/site-packages/IPython/core/magics/script.py in named_script_magic(line, cell)
    140             else:
    141                 line = script
--> 142             return self.shebang(line, cell)
    143 
    144         # write a basic docstring:

<decorator-gen-110> in shebang(self, line, cell)

/opt/miniconda-latest/envs/neuro/lib/python3.6/site-packages/IPython/core/magic.py in <lambda>(f, *a, **k)
    185     # but it's overkill for just that one bit of state.
    186     def magic_deco(arg):
--> 187         call = lambda f, *a, **k: f(*a, **k)
    188 
    189         if callable(arg):

/opt/miniconda-latest/envs/neuro/lib/python3.6/site-packages/IPython/core/magics/script.py in shebang(self, line, cell)
    243             sys.stderr.flush()
    244         if args.raise_error and p.returncode!=0:
--> 245             raise CalledProcessError(p.returncode, cell, output=out, stderr=err)
    246 
    247     def _run_script(self, p, cell, to_close):

CalledProcessError: Command 'b'datalad get -J 4 -d /data/ds000114 \\\n    /data/ds000114/derivatives/fmriprep/sub-*/anat/*preproc.nii.gz \\\n    /data/ds000114/sub-*/ses-test/func/*fingerfootlips*\n'' returned non-zero exit status 1.

What is going on and how can I fix it?

I'm sorry if this issue is opened somewhere else. I found only these two (#136, #165), but that's not my problem (yet :)).

Thanks!

@jankaWIS
Copy link
Author

jankaWIS commented Mar 6, 2024

Update:

I get the same error when running the Preprocessing Hands-on notebook:

%%bash

datalad get -J 4 -d /data/ds000114 \

    /data/ds000114/sub-0[234789]/ses-test/anat/sub-0[234789]_ses-test_T1w.nii.gz \

    /data/ds000114/sub-0[234789]/ses-test/func/*fingerfootlips*

[ERROR] No installed dataset found at /data/ds000114. [dataset.py:require_dataset:580] (ValueError) 

---------------------------------------------------------------------------
CalledProcessError                        Traceback (most recent call last)
<ipython-input-1-4ab71bd7152e> in <module>
----> 1 get_ipython().run_cell_magic('bash', '', 'datalad get -J 4 -d /data/ds000114 \\\n    /data/ds000114/sub-0[234789]/ses-test/anat/sub-0[234789]_ses-test_T1w.nii.gz \\\n    /data/ds000114/sub-0[234789]/ses-test/func/*fingerfootlips*\n')

/opt/miniconda-latest/envs/neuro/lib/python3.6/site-packages/IPython/core/interactiveshell.py in run_cell_magic(self, magic_name, line, cell)
   2360             with self.builtin_trap:
   2361                 args = (magic_arg_s, cell)
-> 2362                 result = fn(*args, **kwargs)
   2363             return result
   2364 

/opt/miniconda-latest/envs/neuro/lib/python3.6/site-packages/IPython/core/magics/script.py in named_script_magic(line, cell)
    140             else:
    141                 line = script
--> 142             return self.shebang(line, cell)
    143 
    144         # write a basic docstring:

<decorator-gen-110> in shebang(self, line, cell)

/opt/miniconda-latest/envs/neuro/lib/python3.6/site-packages/IPython/core/magic.py in <lambda>(f, *a, **k)
    185     # but it's overkill for just that one bit of state.
    186     def magic_deco(arg):
--> 187         call = lambda f, *a, **k: f(*a, **k)
    188 
    189         if callable(arg):

/opt/miniconda-latest/envs/neuro/lib/python3.6/site-packages/IPython/core/magics/script.py in shebang(self, line, cell)
    243             sys.stderr.flush()
    244         if args.raise_error and p.returncode!=0:
--> 245             raise CalledProcessError(p.returncode, cell, output=out, stderr=err)
    246 
    247     def _run_script(self, p, cell, to_close):

CalledProcessError: Command 'b'datalad get -J 4 -d /data/ds000114 \\\n    /data/ds000114/sub-0[234789]/ses-test/anat/sub-0[234789]_ses-test_T1w.nii.gz \\\n    /data/ds000114/sub-0[234789]/ses-test/func/*fingerfootlips*\n'' returned non-zero exit status 1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant