Token passes, but still receiving error
When inputting the token command after installation ("huggingface-cli login"), I am receiving the following error:
Traceback (most recent call last):
File "C:\Users\tate\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\tate\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in run_code
exec(code, run_globals)
File "C:\Users\tate\AppData\Local\Programs\Python\Python310\Scripts\huggingface-cli.exe_main.py", line 7, in
File "C:\Users\tate\AppData\Local\Programs\Python\Python310\lib\site-packages\huggingface_hub\commands\huggingface_cli.py", line 41, in main
service.run()
File "C:\Users\tate\AppData\Local\Programs\Python\Python310\lib\site-packages\huggingface_hub\commands\user.py", line 176, in run
_login(self._api, token=token)
File "C:\Users\tate\AppData\Local\Programs\Python\Python310\lib\site-packages\huggingface_hub\commands\user.py", line 344, in _login
hf_api.set_access_token(token)
File "C:\Users\tate\AppData\Local\Programs\Python\Python310\lib\site-packages\huggingface_hub\hf_api.py", line 705, in set_access_token
write_to_credential_store(USERNAME_PLACEHOLDER, access_token)
File "C:\Users\tate\AppData\Local\Programs\Python\Python310\lib\site-packages\huggingface_hub\hf_api.py", line 528, in write_to_credential_store
with subprocess.Popen(
File "C:\Users\tate\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 966, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Users\tate\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
Does anybody know what's happening here?
Hey @over-loadcode ,
If the login doesn't work you can also directly pass the token that you find under your account -> settings -> token (you can pass this token as a string)