zenodopy icon indicating copy to clipboard operation
zenodopy copied to clipboard

Project not created, something went wrong

Open bw4sz opened this issue 2 years ago • 3 comments

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: ############################

bw4sz avatar Aug 16 '23 17:08 bw4sz

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.

lgloege avatar Sep 08 '23 15:09 lgloege

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

Happy to debug, but my use case is good, depends on how much dev time you want to throw at it.

On Fri, Sep 8, 2023 at 8:23 AM Luke Gloege @.***> wrote:

Hi @bw4sz https://github.com/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.

— Reply to this email directly, view it on GitHub https://github.com/lgloege/zenodopy/issues/13#issuecomment-1711842205, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJHBLFCD7QXKBVJT5WSAFLXZMZ5VANCNFSM6AAAAAA3S3RAY4 . You are receiving this because you were mentioned.Message ID: @.***>

-- Ben Weinstein, Ph.D. Research Scientist University of Florida http://benweinstein.weebly.com/

bw4sz avatar Sep 08 '23 16:09 bw4sz

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

abubelinha avatar Nov 07 '24 08:11 abubelinha