Skip to content

cwltool fails in git bash #344

Closed
Closed
@hmenager

Description

@hmenager

reporting this for @am-cornelis
trying to run cwltool in git bash (on Windows) fails when trying to create a symlink.

I'm pasting below the extensive bug report she sent me:

At the ELIXIR All Hands - CWL workshop, I came across the following
error message, which you wanted to hear about.

I was running the cwl-runner on windows using git bash:

$ cwl-runner helloworld.cwl input.yaml
C:\Apps\Python27\Scripts\cwl-runner 1.0.20170309164828
Resolved 'helloworld.cwl' to
'file:///C:/src/play/cwl-workshop/helloworld.cwl'
Got workflow error
Traceback (most recent call last):
  File "c:\apps\python27\lib\site-packages\cwltool\main.py", line 230,
in single_job_executor
    r.run(**kwargs)
  File "c:\apps\python27\lib\site-packages\cwltool\job.py", line 213, in run
    stageFiles(self.pathmapper, os.symlink, ignoreWritable=True)
AttributeError: 'module' object has no attribute 'symlink'
Workflow error, try again with --debug for more information:
'module' object has no attribute 'symlink'

This is my setup:

Windows 10 Pro, with Git Bash (2.7.0)

$ python --version
Python 2.7.11

$ pip --version
pip 7.1.2 from c:\apps\python27\lib\site-packages (python 2.7)

$ cwl-runner --version
C:\Apps\Python27\Scripts\cwl-runner 1.0.20170309164828

Cheers,
Amélie

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions