Bug #7960

Something wrong with arv-run?

Added by Chen Chen over 6 years ago. Updated over 6 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
-
Category:
SDKs
Target version:
-
Start date:
12/08/2015
Due date:
% Done:

100%

Estimated time:
Story points:
-

Description

I was following the User Guide:
http://doc.arvados.org/user/topics/arv-run.html#Running a shell script

chenchen@shell:~$ pip list | grep arvados
arvados-fuse (0.1.20151125180607)
arvados-python-client (0.1.20151201214603)
chenchen@shell:~$ echo 'echo hello world' > hello.sh
chenchen@shell:~$ arv-run /bin/sh hello.sh
Traceback (most recent call last):
File "/usr/local/bin/arv-run", line 4, in <module>
main()
File "/usr/local/lib/python2.7/dist-packages/arvados/commands/run.py", line 241, in main
uploadfiles(files, api, dry_run=args.dry_run, num_retries=args.num_retries, project=project)
AttributeError: 'Namespace' object has no attribute 'num_retries'

my walkaround is to use huge amount of quotes:
chenchen@shell:~$ arv-run /bin/sh "\"hello.sh\""
2015-12-08 17:30:15 arvados.arv-run62768 INFO: Running pipeline avtst-d1hrv-o6hhkharu80vxht
...

But there is no uploading process. It surely failed.

Then I'm trying to bypass the /bin/sh:
chenchen@shell:~$ chmod +x hello.sh && arv-run "\"hello.sh\""
and it failed too because no file hello.sh exists.

Associated revisions

Revision 809a3785 (diff)
Added by Brett Smith over 6 years ago

7960: Fix typo in arv-run option reference.

Closes #7960.

History

#1 Updated by Brett Smith over 6 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Applied in changeset arvados|commit:809a3785297f5460602888c2ddacec6fe0976589.

Also available in: Atom PDF