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
placing json file in .kaggle/kaggle.json #15
Comments
Are you using Windows or Linux? Generally you should get this file first from our homepage www.kaggle.com -> Your Account -> Create New API token. This will download a ready-to-go JSON file to place in you |
@KaushalendraKumarSingh |
I'm using kaggle-api on an Amazon linux instance. I downloaded the kaggle.json from the website (using my personal computer) and then copied it to the ~/.kaggle/ directory that I created on the Amazon linux, but every time I try and run kaggle it tells me
My personal computer was running MacOS. Does it have to be downloaded on the same machine that you are trying to run it on? If so, I have no way of downloading the kaggle.json from the command line. |
@sfkiwi you need to copy the file itself, not the content, if you copy the content the file will lose the formatting. Try copying with (I'll give you the mac example for windows there is something similar) mac |
I created a folder .kaggle in my local drive (~), moved the json file kaggle.json into it.
Not sure why is it not reading the file. Has anyone else faced this issue?
|
@BhavtoshRath How you solved the problem? |
Hi, I am using mac, and in my home directory, the system is not allowing me to add dot before the folder name "kaggle", where I can place the json file. Please help. Thanks! |
@sagar-m, open a terminal and run @qifengzhou, @BhavtoshRath, my best guess is that you're either running the kaggle commands as root or you put the API token in your root user's home. Any chance either of those two things is what's happening? |
@rysteboe How should I check this? I tried 'pip uninstall kaggle', it showed me the path where kaggle was installed I tried again, its the same error message: It seems kaggle called in the terminal is not the same as it was installed. I dont have a folder in the directory '/home/qifeng' |
Run |
@rysteboe Thank you:) |
I have installed kaggle by using |
cd %HOMEPATH% |
I am using a mac. I followed kaggle's instruction until I faced the same problem here that i cannot find the folder ".kaggle". So I created a folder(.kaggle) under my home dir("/Users/xin") and drag the kaggle.json file into that folder. Then, I type the following command: "~/.kaggle/kaggle.json" and I got "-bash: /Users/xin/.kaggle/kaggle.json: Permission denied". I am not sure if i need to type this command at all after putting kaggle.json into .kaggle folder. Then, I tried to download data sets through kaggle API using "kaggle competitions download -c imaterialist-challenge-fashion-2018" and I got "command not found" My goal is to download a data set from kaggle that require me to use kaggle API. |
I had the same the issue. Download the token to /Users//.kaggle directory and then make sure the token file name is kaggle.json inside the folder. |
As far as I can tell, these installation instructions are covered in the readme. If you have suggestions for improving it, please submit a PR or suggest specific changes. Thanks! |
remove the directory and create it again then move the file to it |
For users of the Winpython distribution: your |
I faced the same problem. I found the solution. Go to your terminal and put the code " cd ~/.kaggle ", then the terminal will take you in the directory .kaggle. So, you need to move the kaggle.json to this directory, to do this use the mv command, ex. sudo mv directory1 directory2. then, run the " chmod 600 /home/[user-name]/.kaggle/kaggle.json " command. |
if you are using LInux. |
It worked thanks |
If you are using Windows and installed kaggle via anaconda, here are the steps
|
I got Could not find kaggle.json error, running a notebook on a remote linux, The file was there with the right permissions. |
i am using windows andi used the jsonwell recently it displayed to update api token so i deleted the old one and created new token but it is saving as kaggle(2).json and i am getting error ass unauthorzed 401 what should i do ? |
hi, using a colab notebook. I did all the above today and worked fine. Now, trying to go back to my work and I get the following error: Why is colab running python 2.7!? I believe it is not even compatible and it is specifies in the runtime to be python3. |
Ya I got the same error please any one solve @ruimmpires |
the file is present under my user\kaggle\kaggle.json but when I run kaggle commands, it says Anyhelp? |
|
this worked for me on windows. Thank you |
OSError: Could not find kaggle.json. Make sure it's located in C:\Users\User.kaggle. Or use the environment method In PyCharm, Windows 10, Python 3.8 (not works for 3.9): pip install kaggle You're wonderful! |
cannot find the .kaggle in the specified folder.
The text was updated successfully, but these errors were encountered: