FedML-AI/FedML

[MLOps] [cli] windows compatibility issue when "fedml login"

Aperta

#244 aperta il 5 giu 2022

 (3 commenti) (0 reazioni) (1 assegnatario)Python (743 fork)batch import
bughelp wanted

Metriche repository

Star
 (3930 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

PS C:\Users\chaoy\sourcecode\FedML\python> fedml login 201 -v local
login...True, None
c:\users\chaoy\sourcecode\fedml\python\fedml\cli\edge_deployment\client_login.py
PS C:\Users\chaoy\sourcecode\FedML\python>
PS C:\Users\chaoy\sourcecode\FedML\python> Namespace(type='login', user='201', version='local')
Traceback (most recent call last):
  File "c:\users\chaoy\sourcecode\fedml\python\fedml\cli\edge_deployment\client_login.py", line 673, in <module>
    login(args)
  File "c:\users\chaoy\sourcecode\fedml\python\fedml\cli\edge_deployment\client_login.py", line 656, in login
    __login(args, args.user, args.version)
  File "c:\users\chaoy\sourcecode\fedml\python\fedml\cli\edge_deployment\client_login.py", line 587, in __login
    setattr(args, "device_id", FedMLClientRunner.get_device_id())
  File "c:\users\chaoy\sourcecode\fedml\python\fedml\cli\edge_deployment\client_login.py", line 478, in get_device_id
    device_id = subprocess.Popen("dmidecode.exe -s system-uuid".split())
  File "C:\Users\chaoy\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 966, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "C:\Users\chaoy\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 1435, in _execute_child
    hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified

Guida contributor