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

Download dataset fail via SDK #53

Closed
lixjohn opened this issue Oct 31, 2024 · 5 comments
Closed

Download dataset fail via SDK #53

lixjohn opened this issue Oct 31, 2024 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@lixjohn
Copy link

lixjohn commented Oct 31, 2024

step -

  1. Open dataset 美国法律案例摘要 download page https://opencsg.com/datasets/MagicAI/BVA_Cases
  2. Click downlaod button and copy SDK code
  3. Update 'token' and 'cache_dir' field. (Token is from my 'Settings/User Access Token')
  4. Excute code, the error reported, please see attachment error.txt
    error.txt
    Seems like txt files downloaded successfully but fail when downloading py file https://hub.opencsg.com/hf/datasets/MagicAI/BVA_Cases/resolve/main/attribution/__init__.py, please see snapshot.
image

Please notice Use git download command 'git clone https://opencsg.com/datasets/MagicAI/BVA_Cases.git', everything goes well.

BTW - I tried dataset Dataset 历代中医文献数据库 via SDK but failed as well with different error, the error attached here
error_cmbook.txt

@lixjohn
Copy link
Author

lixjohn commented Nov 1, 2024

just wondering when will be avaliable on production env? Thanks!

@SeanHH86
Copy link
Collaborator

SeanHH86 commented Nov 1, 2024

It has been fixed. Thanks!

@SeanHH86 SeanHH86 closed this as completed Nov 1, 2024
@lixjohn
Copy link
Author

lixjohn commented Nov 1, 2024

Thanks, it works now. Just quick question - SDK download will create folder like this /MagicAI/BVA_Cases, however, https download just create BVA_Cases folder, is it design?

@SeanHH86
Copy link
Collaborator

SeanHH86 commented Nov 4, 2024

Which function do you use in your code? file_download for http_get ?
From what I saw file_download will create fold <repo_id> under cache_dir, and http_get downloads file under cache_dir.

Please log a new issue if you have any trouble in using our SDK.

@lixjohn
Copy link
Author

lixjohn commented Nov 4, 2024

Thanks, file a new issue for this. #56

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants