Skip to content
This repository has been archived by the owner on Jan 27, 2024. It is now read-only.

'NoneType' object has no attribute 'find' #50

Open
aliasneo1 opened this issue Oct 6, 2017 · 11 comments
Open

'NoneType' object has no attribute 'find' #50

aliasneo1 opened this issue Oct 6, 2017 · 11 comments

Comments

@aliasneo1
Copy link

When submission is made using
kg submit -u -p -c -m ""

'NoneType' object has no attribute 'find'

is thrown.

@floydwch
Copy link
Owner

floydwch commented Oct 6, 2017

What's your kaggle-cli version?

@floydwch
Copy link
Owner

floydwch commented Oct 6, 2017

I guess you used an obsolete kaggle-cli, try to pip install -U kaggle-cli to upgrade to the latest.

@bsatts
Copy link

bsatts commented Oct 10, 2017

I've had the same problem with the latest version of the cli as well.

@yuerlong
Copy link

I had the same problem last week. After run "pip isntall -U kaggle-cli" to upgrade to the latest one, it worked well yesterday. but today I have the same problem again.

@floydwch
Copy link
Owner

@bsatts @yuerlong Did you use inline config to login and submit? i.e. kg submit -u <username> -p <password> -c <competition> -m <message> filename

Try to kg config -u <username> -p <password> and then kg submit -m <message> filename.

The 'NoneType' object has no attribute 'find' exception might come from the login process.

Use config to save the login session might help.

@yuerlong
Copy link

@floydwch Thanks for reply. I did use " kg config -u user -p pass -c comptition" before run "kg submit filename". The "NoneType" error still exists.

@floydwch
Copy link
Owner

@yuerlong So the kg config -u user -p pass -c comptition part is OK? And you got NoneType error when you ran kg submit filename?

@yuerlong
Copy link

@floydwch yes, kg config -u user -pass -c contest is OK. It is very weird that kg submit filename worked in the morning but at night NoneType error appears . kg download works fine.

@floydwch
Copy link
Owner

@yuerlong can you check your kaggle-cli version? By kg --version. It should be kg 0.12.8.

I found there is a fixed issue #35 . This issue should be fixed in version 0.11.4 .

@ogrisel
Copy link

ogrisel commented Feb 8, 2018

I got a similar problem when trying to use kg download. I had to login in the web interface to do the same operation manually and accept the new legal terms and conditions. Once done, the kaggle-cli commands would work again.

@bsatts
Copy link

bsatts commented Feb 8, 2018

I figured out what the problem was. It's caused any password having $ in it. This causes a problem when used in the config file. If you escape the password with double quotes when passing the password as a parameter it works

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants