Skip to content

Bug during kernel-metadata.json generation ("competition_sources") #377

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
S1M0N38 opened this issue Sep 2, 2021 · 2 comments
Closed

Bug during kernel-metadata.json generation ("competition_sources") #377

S1M0N38 opened this issue Sep 2, 2021 · 2 comments

Comments

@S1M0N38
Copy link

S1M0N38 commented Sep 2, 2021

Bug description

I pull a Kaggle kernel to my local machine. The -m flag generate kernel metadata

kaggle kernels pull -p working -m s1m0n38/simone-bertolotto-857533

The generated kernel-metadata.json is:

{
  "id": "s1m0n38/simone-bertolotto-857533",
  "id_no": 19985783,
  "title": "Simone Bertolotto 857533",
  "code_file": "simone-bertolotto-857533.ipynb",
  "language": "python",
  "kernel_type": "notebook",
  "is_private": true,
  "enable_gpu": false,
  "enable_internet": true,
  "keywords": [],
  "dataset_sources": [],
  "kernel_sources": [
    "s1m0n38/simone-bertolotto-857533"
  ],
  "competition_sources": [
    "c/datamining2021"
  ]
}

After modify the notebook locally I try to upload it to Kaggle with

kaggle kernels push -p working

but this error message appears:
The following are not valid competition sources and could not be added to the kernel: ['c/datamining2021']

Fix

So I changed the competition_sources from "c/datamining2021" to "datamining2021" and then the upload was successful. I think that there is a bug in the kernel metadata generation process: there shouldn't be the extra "c/".

@jplotts
Copy link
Contributor

jplotts commented Sep 7, 2021

Hi @S1M0N38 - thanks for reporting this issue and associated work around. We should have a fix soon.

@jplotts
Copy link
Contributor

jplotts commented Sep 8, 2021

This should be resolved now.

@jplotts jplotts closed this as completed Sep 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants