Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't submit a job with dependencies #368

Open
donalm opened this issue Jul 5, 2019 · 0 comments
Open

Can't submit a job with dependencies #368

donalm opened this issue Jul 5, 2019 · 0 comments
Assignees
Labels
bug Something isn't working triaged Issue has been screened and prioritized by a project lead

Comments

@donalm
Copy link
Contributor

donalm commented Jul 5, 2019

When I try to submit a job with two layers, with either a frame or layer dependency I get this error:

Failed to parse job spec XML, org.jdom.input.JDOMParseException: Error on line 1: Attribute value "b'False'" of type NMTOKEN must be a name token.

A bit of digging reveals that the XML fragment received by Cuebot has a problem:

<depends>
  <depend anyframe="b'False'" type="LAYER_ON_LAYER">
    <depjob>b858be71-6467-4e00-997a-824b32fb0e0c</depjob
    <deplayer>MyTaskNameTwoB</deplayer>
    <onjob>b858be71-6467-4e00-997a-824b32fb0e0c</onjob>
    <onlayer>MyTaskNameOneA</onlayer>
  </depend>
</depends>

The 'anyframe' value is added in the build_dependencies method in outline/backend/cue.py:

        depend = Et.SubElement(all_depends, "depend",                           
                               type=dep.get_type(),                             
                               anyframe=str(dep.is_any_frame()))

Looks innocuous, but str is imported from builtins, so it's of type future.types.newstr.newstr.

I guess xml.etree.ElementTree.SubElement is not happy with an newstr instance.

@donalm donalm added the bug Something isn't working label Jul 5, 2019
donalm pushed a commit to donalm/OpenCue that referenced this issue Jul 5, 2019
@bcipriano bcipriano added the triaged Issue has been screened and prioritized by a project lead label Jan 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triaged Issue has been screened and prioritized by a project lead
Projects
None yet
Development

No branches or pull requests

2 participants