Giter Club home page Giter Club logo

Comments (14)

yitang avatar yitang commented on August 22, 2024

After I add global configuration via 'kg config -g', =kg= command works fine.

from kaggle-cli.

yitang avatar yitang commented on August 22, 2024

okay, 'kg config' (without -g) hangs.

from kaggle-cli.

knguyen0105 avatar knguyen0105 commented on August 22, 2024

Running into the exact issue

This one hangs.

$ kg config -g -u username  -p password -c talkingdata-mobile-user-demographics
$ kg download -u username -p password -c talkingdata-mobile-user-demographics

This one also hangs

$ kg config -u username -p password -c talkingdata-mobile-user-demographics

I already accepted competition rules and downloaded the data to my laptop. The above commands were issued on my EC2.

from kaggle-cli.

floydwch avatar floydwch commented on August 22, 2024

I find a bug in the path search, f5b56e0 .

The latest version might fix this issue. Please try to reinstall it.

from kaggle-cli.

knguyen0105 avatar knguyen0105 commented on August 22, 2024

It Worked. Thanks much.

from kaggle-cli.

stas-sl avatar stas-sl commented on August 22, 2024

Hi, version 0.4.1 still hangs for me on amazon EC2

  File "/home/ubuntu/.pyenv/versions/anaconda2-4.0.0/bin/kg", line 11, in <module>
    sys.exit(main())
  File "/home/ubuntu/.pyenv/versions/anaconda2-4.0.0/lib/python2.7/site-packages/kaggle_cli/main.py", line 19, in main
    return app.run(argv)
  File "/home/ubuntu/.pyenv/versions/anaconda2-4.0.0/lib/python2.7/site-packages/cliff/app.py", line 226, in run
    result = self.run_subcommand(remainder)
  File "/home/ubuntu/.pyenv/versions/anaconda2-4.0.0/lib/python2.7/site-packages/cliff/app.py", line 346, in run_subcommand
    result = cmd.run(parsed_args)
  File "/home/ubuntu/.pyenv/versions/anaconda2-4.0.0/lib/python2.7/site-packages/cliff/command.py", line 55, in run
    self.take_action(parsed_args)
  File "/home/ubuntu/.pyenv/versions/anaconda2-4.0.0/lib/python2.7/site-packages/kaggle_cli/submit.py", line 28, in take_action
    if os.path.isdir(prefix + '.kaggle-cli'):
  File "/home/ubuntu/.pyenv/versions/anaconda2-4.0.0/lib/python2.7/genericpath.py", line 49, in isdir
    st = os.stat(s)
KeyboardInterrupt

from kaggle-cli.

floydwch avatar floydwch commented on August 22, 2024

@stas-sl What's the current working dir?

I guess you would issue the command outside your home dir?

from kaggle-cli.

stas-sl avatar stas-sl commented on August 22, 2024

I have a symlink that is in home dir but it points to a dir that is outside home:
~/my-project/submissions -> /mnt/submissions
So I'm trying to run the command from ~/my-project/submissions dir. Though it works ok, if I run it from ~/my-project

from kaggle-cli.

floydwch avatar floydwch commented on August 22, 2024

So, do you mean the issue occurred when you were under /mnt/ ?

from kaggle-cli.

stas-sl avatar stas-sl commented on August 22, 2024

No, actual working dir was ~/my-project/submissions. But it seems that it matters that it is not usual dir but a symlink (to folder outside home dir).

from kaggle-cli.

floydwch avatar floydwch commented on August 22, 2024

@stas-sl Hmm.. Thanks for your report!

from kaggle-cli.

floydwch avatar floydwch commented on August 22, 2024

@stas-sl I found something wrong, could you try the latest one?

from kaggle-cli.

stas-sl avatar stas-sl commented on August 22, 2024

Now I get the following error if I have username and password in global config ~/.kaggle-cli/config and run the command from ~/my-project/submissions:

Traceback (most recent call last):
  File "/home/ubuntu/.pyenv/versions/anaconda2-4.0.0/bin/kg", line 11, in <module>
    sys.exit(main())
  File "/home/ubuntu/.pyenv/versions/anaconda2-4.0.0/lib/python2.7/site-packages/kaggle_cli/main.py", line 19, in main
    return app.run(argv)
  File "/home/ubuntu/.pyenv/versions/anaconda2-4.0.0/lib/python2.7/site-packages/cliff/app.py", line 226, in run
    result = self.run_subcommand(remainder)
  File "/home/ubuntu/.pyenv/versions/anaconda2-4.0.0/lib/python2.7/site-packages/cliff/app.py", line 346, in run_subcommand
    result = cmd.run(parsed_args)
  File "/home/ubuntu/.pyenv/versions/anaconda2-4.0.0/lib/python2.7/site-packages/cliff/command.py", line 55, in run
    self.take_action(parsed_args)
  File "/home/ubuntu/.pyenv/versions/anaconda2-4.0.0/lib/python2.7/site-packages/kaggle_cli/download.py", line 89, in take_action
    browser['UserName'] = username
  File "/home/ubuntu/.pyenv/versions/anaconda2-4.0.0/lib/python2.7/site-packages/mechanize/_form.py", line 2782, in __setitem__
    control.value = value
  File "/home/ubuntu/.pyenv/versions/anaconda2-4.0.0/lib/python2.7/site-packages/mechanize/_form.py", line 1217, in __setattr__
    raise TypeError("must assign a string")
TypeError: must assign a string

Though, if I have local config in ~/my-project/submissions/.kaggle-cli/config or if I run command from ~/my-project it works ok.

from kaggle-cli.

floydwch avatar floydwch commented on August 22, 2024

I rewrote the problematic config, see ddc71bb .

And cleaning the issue list, if you still have the problem, please open a new issue.

from kaggle-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.