dandi / dandi-cli

DANDI command line client to facilitate common operations
https://dandi.readthedocs.io/
Apache License 2.0
21 stars 25 forks source link

Error: TODO client name derivation for keyring #970

Open luiztauffer opened 2 years ago

luiztauffer commented 2 years ago

I’ve been experiencing different errors with dandi-cli since yesterday when trying to upload a dataset:

dandi upload --sync

Today’s log:

2022-04-21T09:52:05+0200 [INFO    ] dandi 13540:140637125685632 dandi v0.39.2, hdmf v3.2.1, pynwb v2.0.0, h5py v3.6.0
2022-04-21T09:52:05+0200 [INFO    ] dandi 13540:140637125685632 sys.argv = ['/home/luiz/anaconda3/envs/env_oconnor/bin/dandi', 'upload', '--sync']
2022-04-21T09:52:05+0200 [INFO    ] dandi 13540:140637125685632 os.getcwd() = /media/luiz/storage/taufferconsulting/client_ben/project_oconnor/CrossModal/converted/000232
2022-04-21T09:52:05+0200 [DEBUG   ] urllib3.connectionpool 13540:140637125685632 Starting new HTTPS connection (1): rig.mit.edu:443
2022-04-21T09:52:06+0200 [DEBUG   ] urllib3.connectionpool 13540:140637125685632 https://rig.mit.edu:443 "GET /et/projects/dandi/dandi-cli HTTP/1.1" 200 579
2022-04-21T09:52:06+0200 [DEBUG   ] dandi 13540:140637125685632 No newer (than 0.39.2) version of dandi/dandi-cli found available
2022-04-21T09:52:06+0200 [DEBUG   ] h5py._conv 13540:140637125685632 Creating converter from 7 to 5
2022-04-21T09:52:06+0200 [DEBUG   ] h5py._conv 13540:140637125685632 Creating converter from 5 to 7
2022-04-21T09:52:06+0200 [DEBUG   ] h5py._conv 13540:140637125685632 Creating converter from 7 to 5
2022-04-21T09:52:06+0200 [DEBUG   ] h5py._conv 13540:140637125685632 Creating converter from 5 to 7
2022-04-21T09:52:07+0200 [DEBUG   ] urllib3.connectionpool 13540:140637125685632 Starting new HTTPS connection (1): dandiarchive.org:443
2022-04-21T09:52:09+0200 [DEBUG   ] urllib3.connectionpool 13540:140637125685632 https://dandiarchive.org:443 "GET /server-info HTTP/1.1" 200 358
2022-04-21T09:52:09+0200 [DEBUG   ] dandi 13540:140637125685632 GET https://api.dandiarchive.org/api/info/
2022-04-21T09:52:09+0200 [DEBUG   ] urllib3.connectionpool 13540:140637125685632 Starting new HTTPS connection (1): api.dandiarchive.org:443
2022-04-21T09:52:10+0200 [DEBUG   ] urllib3.connectionpool 13540:140637125685632 https://api.dandiarchive.org:443 "GET /api/info/ HTTP/1.1" 200 358
2022-04-21T09:52:10+0200 [DEBUG   ] dandi 13540:140637125685632 Response: 200
2022-04-21T09:52:10+0200 [DEBUG   ] dandi 13540:140637125685632 Caught exception TODO client name derivation for keyring
2022-04-21T09:52:10+0200 [INFO    ] dandi 13540:140637125685632 Logs saved in /home/luiz/.cache/dandi-cli/log/20220421075205Z-13540.log

Yesterday’s log:

2022-04-20T17:37:41+0200 [INFO    ] dandi 8184:140714969313664 dandi v0.39.2, hdmf v3.2.1, pynwb v2.0.0, h5py v3.6.0
2022-04-20T17:37:41+0200 [INFO    ] dandi 8184:140714969313664 sys.argv = ['/home/luiz/anaconda3/envs/env_oconnor/bin/dandi', 'upload', '--sync']
2022-04-20T17:37:41+0200 [INFO    ] dandi 8184:140714969313664 os.getcwd() = /media/luiz/storage/taufferconsulting/client_ben/project_oconnor/CrossModal/converted/000232
2022-04-20T17:37:41+0200 [DEBUG   ] urllib3.connectionpool 8184:140714969313664 Starting new HTTPS connection (1): rig.mit.edu:443
2022-04-20T17:37:42+0200 [DEBUG   ] urllib3.connectionpool 8184:140714969313664 https://rig.mit.edu:443 "GET /et/projects/dandi/dandi-cli HTTP/1.1" 200 579
2022-04-20T17:37:42+0200 [DEBUG   ] dandi 8184:140714969313664 No newer (than 0.39.2) version of dandi/dandi-cli found available
2022-04-20T17:37:42+0200 [DEBUG   ] h5py._conv 8184:140714969313664 Creating converter from 7 to 5
2022-04-20T17:37:42+0200 [DEBUG   ] h5py._conv 8184:140714969313664 Creating converter from 5 to 7
2022-04-20T17:37:42+0200 [DEBUG   ] h5py._conv 8184:140714969313664 Creating converter from 7 to 5
2022-04-20T17:37:42+0200 [DEBUG   ] h5py._conv 8184:140714969313664 Creating converter from 5 to 7
2022-04-20T17:37:43+0200 [DEBUG   ] urllib3.connectionpool 8184:140714969313664 Starting new HTTPS connection (1): dandiarchive.org:443
2022-04-20T17:37:44+0200 [DEBUG   ] urllib3.connectionpool 8184:140714969313664 https://dandiarchive.org:443 "GET /server-info HTTP/1.1" 200 353
2022-04-20T17:37:44+0200 [DEBUG   ] dandi 8184:140714969313664 Caught exception 'cli-minimal-version'
2022-04-20T17:37:44+0200 [INFO    ] dandi 8184:140714969313664 Logs saved in /home/luiz/.cache/dandi-cli/log/20220420153741Z-8184.log
jwodder commented 2 years ago

We are aware of the problem and are working on a fix. For now, you can run dandi upload by setting the DANDI_API_KEY environment variable to your API key.

luiztauffer commented 2 years ago

thanks @jwodder , setting the env var to my api key seems to have solved the issue for now!