m3dev / gokart

Gokart solves reproducibility, task dependencies, constraints of good code, and ease of use for Machine Learning Pipeline.
https://gokart.readthedocs.io/en/latest/
MIT License
305 stars 57 forks source link

`FileNotFoundError` is raised when task running with `gokart.build()` failed #229

Closed mski-iksm closed 3 years ago

mski-iksm commented 3 years ago

The following code with error in run() will exit with FileNotFoundError instead of NotImplementedError.

class Example(gokart.TaskOnKart):        
    def run(self):
        raise NotImplementedError("not implemented")

task = Example(rerun=True)
gokart.build(task)

>>> FileNotFoundError: [Errno 2] No such file or directory: './resources/__main__/Example_8441c59b5ce0113396d53509f19371fb.pkl'
vaaaaanquish commented 3 years ago

similer: https://github.com/m3dev/gokart/issues/224, https://github.com/m3dev/gokart/issues/209

Hi-king commented 3 years ago

237 must have solved this issue :) @mski-iksm