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

no matches found for example download command #155

Open
kabilar opened this issue Aug 8, 2024 · 5 comments
Open

no matches found for example download command #155

kabilar opened this issue Aug 8, 2024 · 5 comments

Comments

@kabilar
Copy link
Member

kabilar commented Aug 8, 2024

Hi @jwodder @yarikoptic, when running the example command below that is from our Handbook, I receive an error even though the directory exists. I am having a tough time understanding what the URL pattern should be based on the Resource Identifiers docs.

Command

dandi download https://api.dandiarchive.org/api/dandisets/000023/versions/_draft_/assets/?path=sub-811677083

Error

no matches found: https://api.dandiarchive.org/api/dandisets/000023/versions/_draft_/assets/?path=sub-811677083

Thank you.

@jwodder
Copy link
Member

jwodder commented Aug 9, 2024

@kabilar You need to remove the underscores around "_draft_" in order to get a valid DANDI URL.

@kabilar
Copy link
Member Author

kabilar commented Aug 9, 2024

Hi @jwodder, the same error occurs with this change.

Command

dandi download https://api.dandiarchive.org/api/dandisets/000023/versions/draft/assets/?path=sub-811677083

@jwodder
Copy link
Member

jwodder commented Aug 9, 2024

@kabilar Cannot reproduce. Are you using a shell that is configured to error when an argument contains a wildcard (here ?) that doesn't match anything? If so, enclose the URL in quotes.

@kabilar
Copy link
Member Author

kabilar commented Aug 9, 2024

Thank you, @jwodder. That fix solved my error. I don't recall specially configuring anything. I am using the default zsh on MacOS. Should we update our docs (i.e. Handbook and Resource Identifiers) to say that quotes are needed for some systems?

Command that worked:

dandi download "https://api.dandiarchive.org/api/dandisets/000023/versions/draft/assets/?path=sub-811677083"

@yarikoptic
Copy link
Member

For the first one I filed

For the 2nd, I was "not sure" since AFAIK it is quite atypical for a shell to interpret ? within an argument and in my zsh it is all ok

echo 1?2
1?2

But damn that OSX, indeed it brings this "super power" dang it:

yoh@datalads-imac2 ~ % echo 1?2
zsh: no matches found: 1?2
yoh@datalads-imac2 ~ % echo "1?2"
1?2
yoh@datalads-imac2 ~ % echo $SHELL
/bin/zsh

So may be we indeed should or since it is not specific to only this case, might be worth adding a note here but creating some generic "Troubleshooting" describing resolution here?

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

3 participants