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

Seems to be too dated and cannot talk to our server #1

Open
yarikoptic opened this issue Aug 20, 2019 · 1 comment
Open

Seems to be too dated and cannot talk to our server #1

yarikoptic opened this issue Aug 20, 2019 · 1 comment

Comments

@yarikoptic
Copy link

arc-sync$ ./arc-sync.py -h http://XXX.edu --proj YYY -u ZZZ -p "XXX"
Traceback (most recent call last):                              
  File "./arc-sync.py", line 8, in <module>                     
    map(lambda e: z.ZipFile(sio.StringIO(get('%(URI)s/scans/ALL/files?format=zip' % e)), 'r').extractall(opts['-l']), filter(lamb
ents' % opts))['ResultSet']['Result']))                         
  File "./arc-sync.py", line 8, in <lambda>                     
    map(lambda e: z.ZipFile(sio.StringIO(get('%(URI)s/scans/ALL/files?format=zip' % e)), 'r').extractall(opts['-l']), filter(lamb
ents' % opts))['ResultSet']['Result']))                         
KeyError: '-l'

most likely the script is too dated to talk to any recentish XNAT server.

@karchie
Copy link
Owner

karchie commented Aug 20, 2019

@yarikoptic I don't have an XNAT handy to talk to, and I wouldn't be surprised if this is just too old, but: you need the -l (for location) argument to tell the script to where it should download things

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