Barski-lab / cwl-airflow

Python package to extend Airflow functionality with CWL1.1 support
https://barski-lab.github.io/cwl-airflow
Apache License 2.0
185 stars 32 forks source link

Getting 500 w/ "name 'os' is not defined" while trying to submit a job #66

Closed superbsky closed 3 years ago

superbsky commented 3 years ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce

  1. Use https://github.com/tonys-code-base/cwl-airflow-stack project to run cwl-airflow
  2. Open Swagger endpoint /api/experimental/ui
  3. Submit POST to the /wes/runs with "Try it out!"
  4. Alternatively use dockstore-cli or any other way to submit the job

Expected behavior Job successfully submitted w/ job id profided

Screenshots and logs Response Body { "detail": "name 'os' is not defined", "status": 500, "title": "Failed to run workflow", "type": "about:blank" }

Desktop (please complete the following information): Ubuntu 18

Additional context Installed using https://github.com/tonys-code-base/cwl-airflow-stack since the official package does not work

michael-kotliar commented 3 years ago

Hello, @superbsky

Could you please provide a link to the docker image you are using. It looks like the project you referenced https://github.com/tonys-code-base/cwl-airflow-stack may have some problems when building the image.

Thanks, Michael

michael-kotliar commented 3 years ago

Also, could you please provide more details regarding

Installed using https://github.com/tonys-code-base/cwl-airflow-stack since the official package does not work

superbsky commented 3 years ago

Sorry for the confusion. I decided to use https://github.com/tonys-code-base/cwl-airflow-stack since I was unable to set up cwl-airflow by myself. I have had another issue opened recently and would prefer to use an official build if it is possible. Especially in a docker-compose suite.

Answering your question, I didn't use any specific docker image but just followed instructions. The original article is here: https://morioh.com/p/3531d754cab7

michael-kotliar commented 3 years ago

Hi @superbsky,

Please see my answer on #67

Michael

michael-kotliar commented 3 years ago

Feel free to reopen this issue if the problem still exists.