Open prabhanjan-jadhav opened 1 year ago
What is the API command I can use to reproduce this problem?
I can confirm that the issue still persists, and modifying the function locally with the change in the PR fixes the issue.
Sample script to reproduce the error:
import os
from kaggle.api.kaggle_api_extended import KaggleApi
# set up environment variables (now we don't need kaggle.json)
os.environ["KAGGLE_USERNAME"] = "username" # replace with account username
os.environ["KAGGLE_KEY"] = "key" # replace with generated token
# Initialize and authenticate
api = KaggleApi()
api.authenticate()
"""FETCH"""
competitions = ["llm-detect-ai-generated-text", "blood-vessel-segmentation", "UBC-OCEAN"] # sample competitions
for comp in competitions:
api.competition_leaderboard_download(competition=comp, path=None)
still face this problem when running kaggle competitions leaderboard playground-series-s4e10 -d
This line of code (1829-1830):
remote_date = datetime.strptime(response.headers['Last-Modified'], '%a, %d %b %Y %H:%M:%S %Z')
inkaggle/api/kaggle_api_extended.py
tries to access non-existent key "last-modified" fromresponses.headers
.kaggle version: 1.5.16