Skip to content

Instantly share code, notes, and snippets.

@manu-chroma
Last active June 19, 2017 19:36
Show Gist options
  • Save manu-chroma/ef3ef8975ed471dd9e8d8536c4ebbd60 to your computer and use it in GitHub Desktop.
Save manu-chroma/ef3ef8975ed471dd9e8d8536c4ebbd60 to your computer and use it in GitHub Desktop.
tests/test_ext.py::TestListing::test_listing_deep
/home/manu/github/cwltool/venv3/bin/python3.5 /home/manu/Downloads/pycharm-2016.3.2/helpers/pydev/pydevd.py --multiproc --qt-support --client 127.0.0.1 --port 36690 --file /home/manu/github/cwltool/setup.py test
pydev debugger: process 19584 is connecting

Connected to pydev debugger (build 171.4163.6)
running pytest
Searching for mock>=2.0.0
Best match: mock 2.0.0
Processing mock-2.0.0-py3.5.egg

Using /home/manu/github/cwltool/.eggs/mock-2.0.0-py3.5.egg
Searching for pytest
Best match: pytest 3.1.1
Processing pytest-3.1.1-py3.5.egg

Using /home/manu/github/cwltool/.eggs/pytest-3.1.1-py3.5.egg
Searching for pbr>=0.11
Best match: pbr 3.0.1
Processing pbr-3.0.1-py3.5.egg

Using /home/manu/github/cwltool/.eggs/pbr-3.0.1-py3.5.egg
Searching for py>=1.4.29
Best match: py 1.4.33
Processing py-1.4.33-py3.5.egg

Using /home/manu/github/cwltool/.eggs/py-1.4.33-py3.5.egg
running egg_info
writing cwltool.egg-info/PKG-INFO
writing entry points to cwltool.egg-info/entry_points.txt
writing dependency_links to cwltool.egg-info/dependency_links.txt
writing top-level names to cwltool.egg-info/top_level.txt
writing requirements to cwltool.egg-info/requires.txt
reading manifest file 'cwltool.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'cwltool.egg-info/SOURCES.txt'
running build_ext
warning: no previously-included files matching '*~' found anywhere in distribution
F
=================================== FAILURES ===================================
________________________ TestListing.test_listing_deep _________________________

self = <tests.test_ext.TestListing testMethod=test_listing_deep>

    def test_listing_deep(self):
        # Should succeed.
>       self.assertEquals(main(['--debug',"--enable-ext", get_data('tests/wf/listing_deep.cwl'), get_data('tests/listing-job.yml')]), 0)
E       AssertionError: 1 != 0

tests/test_ext.py:26: AssertionError
----------------------------- Captured stderr call -----------------------------
/home/manu/github/cwltool/setup.py 1.0.20170619172244
Resolved '/home/manu/github/cwltool/tests/wf/listing_deep.cwl' to 'file:///home/manu/github/cwltool/tests/wf/listing_deep.cwl'
I'm sorry, I couldn't load this CWL file.  The error was:
Traceback (most recent call last):
  File "/home/manu/github/cwltool/cwltool/main.py", line 710, in main
    fetcher_constructor=fetcher_constructor)
  File "/home/manu/github/cwltool/cwltool/load_tool.py", line 183, in validate_document
    raise avsc_names
  File "/home/manu/github/schema_salad/schema_salad/schema.py", line 557, in make_avro_schema
    AvroSchemaFromJSONData(j3, names)
  File "/home/manu/github/cwltool/venv3/lib/python3.5/site-packages/avro/schema.py", line 1258, in SchemaFromJSONData
    return parser(json_data, names=names)
  File "/home/manu/github/cwltool/venv3/lib/python3.5/site-packages/avro/schema.py", line 1143, in _SchemaFromJSONArray
    return UnionSchema(map(MakeSchema, json_array))
  File "/home/manu/github/cwltool/venv3/lib/python3.5/site-packages/avro/schema.py", line 867, in __init__
    self._schemas = tuple(schemas)
  File "/home/manu/github/cwltool/venv3/lib/python3.5/site-packages/avro/schema.py", line 1142, in MakeSchema
    return SchemaFromJSONData(json_data=desc, names=names)
  File "/home/manu/github/cwltool/venv3/lib/python3.5/site-packages/avro/schema.py", line 1258, in SchemaFromJSONData
    return parser(json_data, names=names)
  File "/home/manu/github/cwltool/venv3/lib/python3.5/site-packages/avro/schema.py", line 1183, in _SchemaFromJSONObject
    other_props=other_props,
  File "/home/manu/github/cwltool/venv3/lib/python3.5/site-packages/avro/schema.py", line 1062, in __init__
    fields = make_fields(names=nested_names)
  File "/home/manu/github/cwltool/venv3/lib/python3.5/site-packages/avro/schema.py", line 1174, in MakeFields
    return tuple(RecordSchema._MakeFieldList(field_desc_list, names))
  File "/home/manu/github/cwltool/venv3/lib/python3.5/site-packages/avro/schema.py", line 987, in _MakeFieldList
    yield RecordSchema._MakeField(index, field_desc, names)
  File "/home/manu/github/cwltool/venv3/lib/python3.5/site-packages/avro/schema.py", line 958, in _MakeField
    names=names,
  File "/home/manu/github/cwltool/venv3/lib/python3.5/site-packages/avro/schema.py", line 1258, in SchemaFromJSONData
    return parser(json_data, names=names)
  File "/home/manu/github/cwltool/venv3/lib/python3.5/site-packages/avro/schema.py", line 1143, in _SchemaFromJSONArray
    return UnionSchema(map(MakeSchema, json_array))
  File "/home/manu/github/cwltool/venv3/lib/python3.5/site-packages/avro/schema.py", line 867, in __init__
    self._schemas = tuple(schemas)
  File "/home/manu/github/cwltool/venv3/lib/python3.5/site-packages/avro/schema.py", line 1142, in MakeSchema
    return SchemaFromJSONData(json_data=desc, names=names)
  File "/home/manu/github/cwltool/venv3/lib/python3.5/site-packages/avro/schema.py", line 1258, in SchemaFromJSONData
    return parser(json_data, names=names)
  File "/home/manu/github/cwltool/venv3/lib/python3.5/site-packages/avro/schema.py", line 1198, in _SchemaFromJSONObject
    items=SchemaFromJSONData(items_desc, names),
  File "/home/manu/github/cwltool/venv3/lib/python3.5/site-packages/avro/schema.py", line 1258, in SchemaFromJSONData
    return parser(json_data, names=names)
  File "/home/manu/github/cwltool/venv3/lib/python3.5/site-packages/avro/schema.py", line 1143, in _SchemaFromJSONArray
    return UnionSchema(map(MakeSchema, json_array))
  File "/home/manu/github/cwltool/venv3/lib/python3.5/site-packages/avro/schema.py", line 867, in __init__
    self._schemas = tuple(schemas)
  File "/home/manu/github/cwltool/venv3/lib/python3.5/site-packages/avro/schema.py", line 1142, in MakeSchema
    return SchemaFromJSONData(json_data=desc, names=names)
  File "/home/manu/github/cwltool/venv3/lib/python3.5/site-packages/avro/schema.py", line 1258, in SchemaFromJSONData
    return parser(json_data, names=names)
  File "/home/manu/github/cwltool/venv3/lib/python3.5/site-packages/avro/schema.py", line 1183, in _SchemaFromJSONObject
    other_props=other_props,
  File "/home/manu/github/cwltool/venv3/lib/python3.5/site-packages/avro/schema.py", line 1048, in __init__
    other_props=other_props,
  File "/home/manu/github/cwltool/venv3/lib/python3.5/site-packages/avro/schema.py", line 482, in __init__
    self._avro_name = names.GetName(name=name, namespace=namespace)
  File "/home/manu/github/cwltool/venv3/lib/python3.5/site-packages/avro/schema.py", line 398, in GetName
    return Name(name=name, namespace=namespace)
  File "/home/manu/github/cwltool/venv3/lib/python3.5/site-packages/avro/schema.py", line 312, in __init__
    'Invalid absolute schema name: %r.' % self._fullname)
avro.schema.SchemaParseException: Invalid absolute schema name: 'http://commonwl.org/cwltool#LoadListingRequirement'.
1 failed in 7.87 seconds

Process finished with exit code 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment