Kaggle / Kaggle/kaggle-cli

kernels output fails if the kernel is creating output subfolders

Open
#173 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
7.5k
Forks
1.4k
Avg merge
3d 15h
Merged PRs (30d)
11

Description

To reproduce the issue:
- execute a kernel creating a directory and a file inside this directory
- execute kaggle kernel output my_kernel
It arises an "FileNotFoundError: [Errno 2] No such file or directory: "

To solve it, just add "os.makedirs(os.path.split(outfile)[0], exist_ok=True)" to "if force or self.download_needed(item, outfile, quiet):"

I'm creating a fork with the patch

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.