I am trying to use the Kaggle API to extract data from the kaggle website. I am using Ubuntu 18.04. When I enter the following command:
kaggle competitions download -c home-credit-default-risk
I get the following error:
Traceback (most recent call last):
File "/home/hduser/anaconda3/bin/kaggle", line 5, in <module>
from kaggle.cli import main
File "/home/hduser/anaconda3/lib/python3.7/site-packages/kaggle/__init__.py", line 23, in <module>
api.authenticate()
File "/home/hduser/anaconda3/lib/python3.7/site-packages/kaggle/api/kaggle_api_extended.py", line 149, in authenticate
self.config_file, self.config_dir))
OSError: Could not find kaggle.json. Make sure it's located in /home/hduser/.kaggle/kaggle.json. Or use the environment method.
This is strange because I have the kaggle.json file saved in the correct directory and I have all permissions granted for it.
ls ~/.kaggle
returns:
kaggle.json
Am I missing something here?