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

Project not created, something went wrong #13

Open
bw4sz opened this issue Aug 16, 2023 · 3 comments
Open

Project not created, something went wrong #13

bw4sz opened this issue Aug 16, 2023 · 3 comments

Comments

@bw4sz
Copy link

bw4sz commented Aug 16, 2023

Hi all,

Thanks for this nice tool. I went to set this up, but couldn't debug the error.

import zenodopy

# always start by creating a Client object
zeno = zenodopy.Client()

# list project id's associated to zenodo account
zeno.list_projects

# create a project
zeno.create_project(title="test_project", upload_type="other")

yields

>>> zeno.list_projects
Project Name ---- ID
------------------------
 ----- 7921375
Capturing long-tailed individual tree diversity using an airborne multi-temporal hierarchical model ----- 7301868
weecology/DeepTreeAttention: Submission ----- 7308745
Data for the NeonTreeEvaluation Benchmark ----- 5914554
A global model of bird detection in high resolution airborne images using computer vision ----- 5033174
weecology/NeonTreeEvaluation: New naming format ----- 4770593
One year of hourly temperature readings along a elevation gradient for a tropical forest in Maquipucuna Ecuador (1300-2400m) ----- 4560522
NEON Tree Crowns Dataset ----- 3765872
DeepForest - Street Trees Dataset ----- 4047083
bw4sz/DeepMeerkat: v0.0.7 ----- 1217119
>>> 
>>> # create a project
>>> zeno.create_project(title="test_project", upload_type="other")
** Project not created, something went wrong. Check that your ACCESS_TOKEN is in ~/.zenodo_token 

The token has to be correct, since list_projects correctly finds my account. To prove this, if you edit the token in anyway, it doesn't what account I'm pointing at. This is a new zenodo key, maybe it takes some time? It has all scopes.

image

token file has no quotes or other characters.

(DeepTreeAttention) [b.weinstein@c1107a-s35 DeepTreeAttention]$ cat ~/.zenodo_token 
ACCESS_TOKEN: ############################
@lgloege
Copy link
Owner

lgloege commented Sep 8, 2023

Hi @bw4sz, I haven't touched this project in a while. Let me take a look over the weekend and see if I can get it sorted.

@bw4sz
Copy link
Author

bw4sz commented Sep 8, 2023 via email

@abubelinha
Copy link

abubelinha commented Nov 7, 2024

I solved it by going to curl, I really couldn't get any python client to work. This helped. https://gist.github.com/maxogden/b758cf0fe6d353846ef9ce7d03fdca0c

Hi @bw4sz
I wanted to try your link but it doesn't work anymore.
Did you clone that gist, so you an provide an alternate link?

Thanks
@abubelinha

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