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.18] Issue running the command mila code: KeyError: 'node_name' #46

Open
AnnneRose opened this issue Jun 29, 2023 · 1 comment
Open

Comments

@AnnneRose
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?

[e.g. mila code ...]

Describe the bug

A clear and concise description of what the bug is. If there is an error
traceback, please paste it here.
can't open mila code
Traceback (most recent call last):
File "/Users/annabel/miniconda3/lib/python3.10/site-packages/milatools/cli/commands.py", line 43, in main
auto_cli(milatools)
File "/Users/annabel/miniconda3/lib/python3.10/site-packages/coleo/cli.py", line 656, in auto_cli
result = run_cli(entry, args, **kwargs)
File "/Users/annabel/miniconda3/lib/python3.10/site-packages/coleo/cli.py", line 628, in run_cli
return call(opts=opts, args=args)
File "/Users/annabel/miniconda3/lib/python3.10/site-packages/coleo/cli.py", line 587, in thunk
result = fn(*args)
File "/Users/annabel/miniconda3/lib/python3.10/site-packages/milatools/cli/commands.py", line 291, in code
data, proc = cnode.ensure_allocation()
File "/Users/annabel/miniconda3/lib/python3.10/site-packages/milatools/cli/remote.py", line 271, in ensure_allocation
node_name = get_first_node_name(results["node_name"])
KeyError: 'node_name'

Screenshots

If applicable, add screenshots to help explain your problem.
Screenshot 2023-06-29 at 12 55 52 PM

Desktop (please complete the following information):

Mac OS 13.4

Additional context

Add any other context about the problem here.

@breuleux
Copy link
Member

The salloc message states Prolog failure on node cn-b001, which I believe usually indicates there is an issue with that particular node. Try again, possibly adding -x cn-b001 to make sure it picks a different node.

@lebrice lebrice changed the title [v0.0.18] Issue running the command mila code [v0.0.18] Issue running the command mila code: KeyError: 'node_name' 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

2 participants