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

datalad.api.get() cannot take relative path (windows) #45

Open
yihe-61wu opened this issue Dec 10, 2021 · 0 comments
Open

datalad.api.get() cannot take relative path (windows) #45

yihe-61wu opened this issue Dec 10, 2021 · 0 comments

Comments

@yihe-61wu
Copy link

yihe-61wu commented Dec 10, 2021

issue

My colleagues and I are trying to go through these fantastic notebooks. And some of us hit this common error whenever we try to get data by

datalad.api.get('some/relative/path')

in Jupyter:

IncompleteResultsError: Command did not complete successfully. 1 failed:
[{'action': 'get',
'message': 'path does not exist',
'path': 'C:\my\secret\path\dartbrains*\data\Localizer\..\data\Localizer\*derivatives\fmriprep\sub-S01\func\sub-S01_task-localizer_desc-confounds_regressors.tsv',
'refds': 'C:\Users\anish\Documents\projects\dartbrains\data\Localizer',
'status': 'impossible'}]

solution

Strangely, in commend line if we

datalad get 'some/relative/path'

the data can be properly downloaded.

However, I kind of want to work within Jupyter without jumping to commend line every time I need some data.

After digging around all kinds of documentation and online forums, the simplest solution I found is to run

datalad.api.get(os.path.abspath('some/relative/path'))

which strikes me as I expected datalad.api.get() should be able to handle relative path.

extra info

We are all using Windows laptops (as provided by our institute). We have tried to set up everything in either an anaconda environment or anaconda root. To make things more weird, some of us seemed to be immune from the above issue.

remarks

I haven't found any issues or solutions similar to mine, regarding datalad.api.get(). So, I'm submitting the issue here, as the problem might take place only in these notebooks and specific for windows users.

I'd appreciate it if somebody could offer a more elegant solution, or explanation.

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