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

get_repo and list_repos dont work #25

Open
ingvildeb opened this issue Sep 4, 2023 · 1 comment
Open

get_repo and list_repos dont work #25

ingvildeb opened this issue Sep 4, 2023 · 1 comment

Comments

@ingvildeb
Copy link

Hi! when trying to run the following code
image
I get the error
image
When running list_repos i get the error
image
I know there was some update to the kg auth endpoint today, is this possibly related?

Thank you for your help.

@xgui3783
Copy link
Contributor

xgui3783 commented Nov 27, 2023

the uuid appears that it is from data proxy, and not of drive.

If that is the case, I would imagine you will need to use bucket api. e.g.:

# n.b. bucket api does not support username/password
TOKEN = "ey..."

from ebrains_drive import BucketApiClient

client = BucketApiClient(token=TOKEN)

bucket = client.buckets.get_bucket("d-ff75c536-5258-4e2d-8da1-8b3625bd07ae")

tally = 0
for f in bucket.ls():
    print(f.name)
    tally += 1
    if tally > 10:
        break
    

and I get:

CustomRegions_Allen2017_DOPAMAP.xlsx
CustomRegions_Allen2017_Newmaster.xlsx
D1R/D1R_cell_pixels.xlsx
D1R/D1R_densities.xlsx
D1R/D1R_total_numbers.xlsx
D1R/P17/D1R_P17_F_C200/00_nonlin_registration_files/1362_5634_7956_D1R_P17_F_C200_s001.png
D1R/P17/D1R_P17_F_C200/00_nonlin_registration_files/1362_5634_7956_D1R_P17_F_C200_s002.png
D1R/P17/D1R_P17_F_C200/00_nonlin_registration_files/1362_5634_7956_D1R_P17_F_C200_s003.png
D1R/P17/D1R_P17_F_C200/00_nonlin_registration_files/1362_5634_7956_D1R_P17_F_C200_s004.png
D1R/P17/D1R_P17_F_C200/00_nonlin_registration_files/1362_5634_7956_D1R_P17_F_C200_s005.png
D1R/P17/D1R_P17_F_C200/00_nonlin_registration_files/1362_5634_7956_D1R_P17_F_C200_s006.png

for output

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

2 participants