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

Re: [HTCondor-users] (no subject)



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/