[Swift-user] Questions and ERRORs

Zhao Zhang zhaozhang at uchicago.edu
Mon Jun 15 11:56:41 CDT 2009


Hi, Melinda

Run t.swift, with the following command
"swift -tc.file ./tc.data t.swift".
If "./tc.data" in not in the same dir as t.swift, then modify ./tc.data 
to the path of tc.data.

zhao

Melinda Chin wrote:
> On Mon, Jun 15, 2009 at 11:41 AM, Melinda Chin <me.melly at gmail.com 
> <mailto:me.melly at gmail.com>> wrote:
>
>     I was trying to do the t.swift tutorial again and I keep getting
>     stuck on this error.  What does it mean to not be able to find a
>     valid host?  How do I remedy this?  And another question on the
>     side what's the difference between swift-user at ci.uchicago.edu
>     <mailto:swift-user at ci.uchicago.edu> and
>     swift-user-owner at ci.uchicago.edu
>     <mailto:swift-user-owner at ci.uchicago.edu>.  For help we can send
>     to both? or usually just swift-user?
>
>     *THIS IS WHAT t.swift LOOKS LIKE:*
>     ===============================================================
>     [mchin at tp-login2 swift]$ cat t.swift
>     type messagefile;
>     (messagefile t) greeting (string s) {
>             app{
>                     echo s stdout = @filename(t);
>             }
>     }
>
>     (messagefile t) capitalise (messagefile f) {
>             app {
>                     translate "[a-z]" "[A-Z]" stdin = @filename(f)
>     stdout = @filename(t);
>             }
>     }
>
>     messagefile outfile <"greeting.txt">;
>     messagefile cfile <"capitalised.txt">;
>
>     outfile = greeting("hello from Swift");
>     cfile = capitalise(outfile);
>     ===============================================================
>
>     *THIS IS WHAT tc.data LOOKS LIKE:*
>     ===============================================================
>     [mchin at tp-login2 swift]$ cat tc.data
>     #This is the transformation catalog.
>     #
>     #It comes pre-configured with a number of simple transformations with
>     #paths that are likely to work on a linux box. However, on some
>     systems,
>     #the paths to these executables will be different (for example,
>     sometimes
>     #some of these programs are found in /usr/bin rather than in /bin)
>     #
>     #NOTE WELL: fields in this file must be separated by tabs, not
>     spaces; and
>     #there must be no trailing whitespace at the end of each line.
>     #
>     # sitename  transformation  path   INSTALLED  platform  profiles
>     localhost       echo            /bin/echo       INSTALLED      
>     INTEL32::LINUX  null
>     localhost       cat             /bin/cat        INSTALLED      
>     INTEL32::LINUX  null
>     localhost       ls              /bin/ls         INSTALLED      
>     INTEL32::LINUX  null
>     localhost       grep            /bin/grep       INSTALLED      
>     INTEL32::LINUX  null
>     localhost       sort            /bin/sort       INSTALLED      
>     INTEL32::LINUX  null
>     localhost       paste           /bin/paste      INSTALLED      
>     INTEL32::LINUX  null
>     localhost       translate       /usr/bin/tr     INSTALLED      
>     INTEL32::LINUX  null
>     ===============================================================
>
>     *THIS IS THE ERROR MESSAGE:*
>     ===============================================================
>     [mchin at tp-login2 swift]$ swift t.swift
>     Swift svn swift-r2950 cog-r2406
>
>     RunID: 20090615-1125-6z1ehvf8
>     Progress:
>     Progress:  Initializing site shared directory:1
>     Execution failed:
>             Could not find any valid host for task "Task(type=UNKNOWN,
>     identity=urn:cog-1245083114852)" with constraints
>     {filenames=[Ljava.lang.String;@1f0a76e, trfqn=translate,
>     filecache=org.griphyn.vdl.karajan.lib.cache.CacheMapAdapter at 1f0a797,
>     tr=translate}
>     ===============================================================
>
>     Thank you for your help,
>     Melinda Chin
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Swift-user mailing list
> Swift-user at ci.uchicago.edu
> http://mail.ci.uchicago.edu/mailman/listinfo/swift-user
>   



More information about the Swift-user mailing list