Skip to content
This repository was archived by the owner on Jun 9, 2020. It is now read-only.
This repository was archived by the owner on Jun 9, 2020. It is now read-only.

Export command in README file does not work #28

@golharam

Description

@golharam

When running the example given in the README, I see this:

$ python make_echotool.py 
#!/usr/bin/env cwl-runner

baseCommand: echo
class: CommandLineTool
cwlVersion: v1.0
id: echo-tool
inputs:
- id: myParamId
  type: string

Traceback (most recent call last):
  File "make_echotool.py", line 21, in <module>
    tool_object.export(f)
  File "/Users/golharr/workspace/CWL/env/lib/python2.7/site-packages/cwlgen/commandlinetool.py", line 256, in export
    out_write = open(outfile, "w")
TypeError: coercing to Unicode: need string or buffer, file found

I had to make these changes to get it to work:

# print to file
#with open("echotool.cwl", "w") as f:
#    tool_object.export(f)
tool_object.export("echotool.cwl")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions