treasure-data / digdag

Workload Automation System
https://www.digdag.io/
Apache License 2.0
1.31k stars 222 forks source link

python task fails on local run if you change directory #731

Open shomodj opened 6 years ago

shomodj commented 6 years ago
FileNotFoundError: [Errno 2] No such file or directory: '.digdag/tmp/digdag-py-out-2260198496080041680.tmp'

mac with python3 and I just changed dir in python

if I chdir back at the end then it works

hiroyuki-sato commented 6 years ago

Hello, @shomodj

Digdag store py> result in the .digdag directory in a project root. That's why you got this error after change directory.

https://github.com/treasure-data/digdag/blob/master/digdag-standards/src/main/java/io/digdag/standards/operator/PyOperatorFactory.java#L108

muga commented 6 years ago

@shomodj @hiroyuki-sato once https://github.com/treasure-data/digdag/pull/835 will be merged, the issue could be fixed because an out file path will be retrieved as absolute path.