[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [HTCondor-users] (no subject)



Hi Eric,

Sorry, I just realized the issue --

"condor_submit" writes out "old-style" ads.  You want "classad.parseOld", not "classad.parse".

Sorry I didn't recognize this sooner.

Brian

On Feb 14, 2014, at 12:17 PM, Eric Wojtaszek <eric@xxxxxxxxxxxxxx> wrote:

That did not work...  Is there a way to have the classad verified for job submittal?  Is there a basic classad that I can use to submit a job?  Is it even possible to use a classad for job submission instead of condor submit files?


On Thu, Feb 13, 2014 at 4:12 PM, Brian Bockelman <bbockelm@xxxxxxxxxxx> wrote:
Hi Eric,

Unfortunately, "condor_submit file.classad -dump" does not produce a valid classad as far as the parser is concerned.  There's an extra newline character at the end :(

Try removing the blank line and see if it works.

Brian

On Feb 13, 2014, at 8:13 AM, Eric Wojtaszek <wojtase1@xxxxxxxxx> wrote:

This seems like a really simple problem.  For the life of me I can't get the classad.parse() function to work.  I am not confusing classad files with submit files.  I run the condor_submit file.classad -dump to get a classad file.  However when I call:

ad2=classad.parse(open("test_ad", "r"));

like the example says python throw an error...

SyntaxError: Unable to parse string into a ClassAd.

What am I missing?  This seems like it should work out of the box.
_______________________________________________
HTCondor-users mailing list
To unsubscribe, send a message to htcondor-users-request@xxxxxxxxxxx with a
subject: Unsubscribe
You can also unsubscribe by visiting
https://lists.cs.wisc.edu/mailman/listinfo/htcondor-users

The archives can be found at:
https://lists.cs.wisc.edu/archive/htcondor-users/