Bug #16434

Updated by Ward Vandewege over 1 year ago

This is version 2.0.2 on a clean buster install:

21:27:37 + cwl-runner hasher-workflow.cwl hasher-workflow-job.yml
21:27:38 Traceback (most recent call last):
21:27:38 File "/usr/bin/cwl-runner", line 8, in <module>
21:27:38 from arvados_cwl import main
21:27:38 File "/usr/share/python3/dist/python3-arvados-cwl-runner/lib/python3.7/site-packages/arvados_cwl/__init__.py", line 58, in <module>
21:27:38 import cwltool.main
21:27:38 File "/usr/share/python3/dist/python3-arvados-cwl-runner/lib/python3.7/site-packages/cwltool/main.py", line 35, in <module>
21:27:38 from . import command_line_tool, workflow
21:27:38 File "/usr/share/python3/dist/python3-arvados-cwl-runner/lib/python3.7/site-packages/cwltool/command_line_tool.py", line 38, in <module>
21:27:38 from .docker import DockerCommandLineJob
21:27:38 File "/usr/share/python3/dist/python3-arvados-cwl-runner/lib/python3.7/site-packages/cwltool/docker.py", line 4, in <module>
21:27:38 from distutils import spawn
21:27:38 File "/usr/share/python3/dist/python3-arvados-cwl-runner/lib/python3.7/distutils/__init__.py", line 44, in <module>
21:27:38 from distutils import dist, sysconfig # isort:skip
21:27:38 ImportError: cannot import name 'dist' from 'distutils' (/usr/share/python3/dist/python3-arvados-cwl-runner/lib/python3.7/distutils/__init__.py)
21:27:38 Build step 'Execute shell' marked build as failure

The python2 version works. Our other distro packages may also be affected. We need to add a test for this in the packaging tests (just add a simple execution of cwl-runner with a fake API host and token).