floydwch / kaggle-cli

(Deprecated, use https://github.com/Kaggle/kaggle-api instead) An unofficial Kaggle command line tool.
MIT License
674 stars 92 forks source link

No module named 'dummy_thread' #46

Closed ankitdhall closed 6 years ago

ankitdhall commented 6 years ago

Hello,

I am trying to make a submission through kg however, whenever I run a command, I seem to get No module nameddummy_thread'error. However if I usekg config` it displays config details.

Thanks.

floydwch commented 6 years ago

What's your Python version?

ankitdhall commented 6 years ago

I am using Python 3.5.3.

floydwch commented 6 years ago

I guess it related with https://github.com/reclosedev/requests-cache/issues/83#issuecomment-310245006 .

floydwch commented 6 years ago

Fixed via https://github.com/floydwch/kaggle-cli/commit/b7456412ee7c1be6a2fb53a23969a093c279c079 .

And you have to remove the browser cache which is stored at ~/.kaggle-cli/browser.pickle .

floydwch commented 6 years ago

Oops, it still exists.

floydwch commented 6 years ago

In the meanwhile, there is a workaround: rm ~/kaggle-cli/browser.pickle when you changed your Python from 2 to 3.

floydwch commented 6 years ago

Just use another approach to handle the pickle exception. Fixed via https://github.com/floydwch/kaggle-cli/commit/ddb82e52f61b704c7e318237dfd7bfbead83b180 .