mila-iqia / milatools

Tools to connect to and interact with the Mila cluster
MIT License
60 stars 11 forks source link

(master) Bug in `mila init`: `'tuple' has no attribute 'pop'` #82

Closed lebrice closed 9 months ago

lebrice commented 9 months ago

NOTE: This issue is present on the master branch at commit ed140e52eb58ba7e4503d726fc6088b4f98a1b4e

What command did you run?

$ mila init
Checking ssh config
Traceback (most recent call last):
  File "/home/fabricenormandin/repos/milatools/milatools/cli/commands.py", line 68, in main
    mila()
  File "/home/fabricenormandin/repos/milatools/milatools/cli/commands.py", line 361, in mila
    return function(**args_dict)
  File "/home/fabricenormandin/repos/milatools/milatools/cli/commands.py", line 397, in init
    ssh_config = setup_ssh_config()
  File "/home/fabricenormandin/repos/milatools/milatools/cli/init_command.py", line 89, in setup_ssh_config
    _add_ssh_entry(
  File "/home/fabricenormandin/repos/milatools/milatools/cli/init_command.py", line 395, in _add_ssh_entry
    ssh_config.cfg.set(host, **existing_entry)
  File "/home/fabricenormandin/miniconda3/envs/milatools/lib/python3.10/site-packages/sshconf.py", line 435, in set
    c.set(host, **kwargs)
  File "/home/fabricenormandin/miniconda3/envs/milatools/lib/python3.10/site-packages/sshconf.py", line 237, in set
    value = values.pop()
AttributeError: 'tuple' object has no attribute 'pop'

An error occurred during the execution of the command `init`. Please try updating milatools by running
  pip install milatools --upgrade
in the terminal. If the issue persists, consider filling a bug report at
  https://github.com/mila-iqia/milatools/issues/new?labels=init%2C0.0.18&template=bug_report.md&title=%5Bv0.0.18%5D+Issue+running+the+command+%60mila+init%60
Please provide the error traceback with the report (the red text above).