Bug #7960
closedSomething wrong with arv-run?
100%
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.
Updated by Brett Smith about 9 years ago
- Status changed from New to Resolved
- % Done changed from 0 to 100
Applied in changeset arvados|commit:809a3785297f5460602888c2ddacec6fe0976589.