Dos token login broken

Hello. There is some error when attempting to log in with the dos prompt.

Here is the text from the dos prompt…

C:\Python\Scripts>huggingface-cli login

    _|    _|  _|    _|    _|_|_|    _|_|_|  _|_|_|  _|      _|    _|_|_|      _|_|_|_|    _|_|      _|_|_|  _|_|_|_|
    _|    _|  _|    _|  _|        _|          _|    _|_|    _|  _|            _|        _|    _|  _|        _|
    _|_|_|_|  _|    _|  _|  _|_|  _|  _|_|    _|    _|  _|  _|  _|  _|_|      _|_|_|    _|_|_|_|  _|        _|_|_|
    _|    _|  _|    _|  _|    _|  _|    _|    _|    _|    _|_|  _|    _|      _|        _|    _|  _|        _|
    _|    _|    _|_|      _|_|_|    _|_|_|  _|_|_|  _|      _|    _|_|_|      _|        _|    _|    _|_|_|  _|_|_|_|

    To login, `huggingface_hub` now requires a token generated from https://huggingface.co/settings/tokens .

Token:
Traceback (most recent call last):
File “C:\Python\lib\runpy.py”, line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File “C:\Python\lib\runpy.py”, line 86, in run_code
exec(code, run_globals)
File "C:\Python\Scripts\huggingface-cli.exe_main
.py", line 7, in
File “C:\Python\lib\site-packages\huggingface_hub\commands\huggingface_cli.py”, line 45, in main
service.run()
File “C:\Python\lib\site-packages\huggingface_hub\commands\user.py”, line 149, in run
_login(self._api, token=token)
File “C:\Python\lib\site-packages\huggingface_hub\commands\user.py”, line 320, in _login
hf_api.set_access_token(token)
File “C:\Python\lib\site-packages\huggingface_hub\hf_api.py”, line 719, in set_access_token
write_to_credential_store(USERNAME_PLACEHOLDER, access_token)
File “C:\Python\lib\site-packages\huggingface_hub\hf_api.py”, line 588, in write_to_credential_store
with subprocess.Popen(
File “C:\Python\lib\subprocess.py”, line 969, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File “C:\Python\lib\subprocess.py”, line 1438, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified

1 Like