Skip to content
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

[v0.0.16] Issue running the command mila init: KeyError: 'user' #40

Open
AlvaroC-ML opened this issue May 31, 2023 · 0 comments
Open

[v0.0.16] Issue running the command mila init: KeyError: 'user' #40

AlvaroC-ML opened this issue May 31, 2023 · 0 comments

Comments

@AlvaroC-ML
Copy link

Make sure you can reproduce the issue with the latest version available

pip install milatools --upgrade
[milatools command e.g. mila code ...]

What command did you run?

mila init

Describe the bug

I get prompted:

Checking ssh config
? There is no '*.server.mila.quebec' entry in ~/.ssh/config. Create one?

I answer yes, and it runs into a KeyError:

Traceback (most recent call last):
File "/home/vbalvaro/anaconda3/lib/python3.10/site-packages/milatools/cli/commands.py", line 42, in main
auto_cli(milatools)
File "/home/vbalvaro/anaconda3/lib/python3.10/site-packages/coleo/cli.py", line 656, in auto_cli
result = run_cli(entry, args, **kwargs)
File "/home/vbalvaro/anaconda3/lib/python3.10/site-packages/coleo/cli.py", line 628, in run_cli
return call(opts=opts, args=args)
File "/home/vbalvaro/anaconda3/lib/python3.10/site-packages/coleo/cli.py", line 587, in thunk
result = fn(*args)
File "/home/vbalvaro/anaconda3/lib/python3.10/site-packages/milatools/cli/commands.py", line 173, in init
username = c.host("mila")["user"]
KeyError: 'user'

Screenshots

If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Ubuntu 22.04

Additional context

@lebrice lebrice changed the title [v0.0.16] Issue running the command mila init [v0.0.16] Issue running the command mila init: KeyError: 'user' Nov 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant