[Swift-user] error in capitalise.swift when following tutorial on Mac
Andrew Shewmaker
agshew at gmail.com
Mon Jul 1 16:23:33 CDT 2013
Hi,
I like the look of swift, but I've run into an issue as I'm learning about it.
I'm obviously doing something wrong, but I can't seem to see it. I've
attached my version of capitalise.swift and tc.data and some files generated
by the execution. Any help would be appreciated.
I've been able to run a few of the example swift programs
on my Mac (latest version), but when I try capitilise.swift, I get:
stderr.txt:
/var/tmp/capitalise-20130701-1448-bcjykob9/shared/_swiftwrap: line
507: : command not found
stdout.txt:
Caused by:
Application /usr/bin/tr failed with an exit code of 127
capitalise, capitalise.swift, line 15
I did add tr to the tc.data file, and tr works when run by hand.
With verbosity, I see:
TASK_DEFINITION: Task(type=JOB_SUBMISSION,
identity=urn:0-1-1-1372713225973) is /bin/bash shared/_swiftwrap
tr-btzz0qbl -jobdir b -scratch -e /usr/bin/tr -out capitalise.2.txt
-err stderr.txt -i capitalise.1.txt -d -if capitalise.1.txt -of
capitalise.2.txt -k -cdmfile -status files -a [a-z] [A-Z]
Submit: in: /var/tmp/capitalise-20130701-1513-3sldolzb command:
/bin/bash /var/tmp/capitalise-20130701-1513-3sldolzb/shared/_swiftwrap
tr-btzz0qbl -jobdir b -scratch -e /usr/bin/tr -out capitalise.2.txt
-err stderr.txt -i capitalise.1.txt -d -if capitalise.1.txt -of
capitalise.2.txt -k -cdmfile -status files -a [a-z] [A-Z]
jobs queued: 0
jobs queued: 0
FAILURE jobid=tr-btzz0qbl - Failure file found
jobs queued: 0
jobs queued: 0
jobs queued: 0
jobs queued: 0
NO_STATUS_FILE jobid=tr-btzz0qbl - Error file missing
jobs queued: 0
jobs queued: 0
jobs queued: 0
jobs queued: 0
jobs queued: 0
END_FAILURE thread=0-1 tr=tr
Execution failed:
Exception in tr:
Arguments: [[a-z], [A-Z]]
Host: localhost
Directory: capitalise-20130701-1513-3sldolzb/jobs/b/tr-btzz0qbl
stderr.txt:
/var/tmp/capitalise-20130701-1513-3sldolzb/shared/_swiftwrap: line
507: : command not found
stdout.txt:
Caused by:
Application /usr/bin/tr failed with an exit code of 127
capitalise, capitalise.swift, line 15
Detailed exception:
Exception in tr:
Arguments: [[a-z], [A-Z]]
Host: localhost
Directory: capitalise-20130701-1513-3sldolzb/jobs/b/tr-btzz0qbl
stderr.txt:
/var/tmp/capitalise-20130701-1513-3sldolzb/shared/_swiftwrap: line
507: : command not found
stdout.txt:
Caused by: Application /usr/bin/tr failed with an exit code of 127
Thanks,
Andrew Shewmaker
-------------- next part --------------
A non-text attachment was scrubbed...
Name: capitalise.tgz
Type: application/x-gzip
Size: 7366 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/swift-user/attachments/20130701/efb4ad0a/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tc.data
Type: application/octet-stream
Size: 1144 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/swift-user/attachments/20130701/efb4ad0a/attachment.obj>
More information about the Swift-user
mailing list