You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
Make sure you can reproduce the issue with the latest version available
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):
Additional context
The text was updated successfully, but these errors were encountered: