# Dos token login broken

**URL:** <https://discuss.huggingface.co/t/dos-token-login-broken/24274>\
**Category:** Beginners\
**Created:** [October 11, 2022, 1:08pm UTC](https://discuss.huggingface.co/t/dos-token-login-broken/24274 "2022-10-11T13:08:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gigibok813](https://avatars.discourse-cdn.com/v4/letter/g/a9adbd/32.png) [@gigibok813](https://discuss.huggingface.co/u/gigibok813)\
**Post date:** [October 11, 2022, 1:08pm UTC](https://discuss.huggingface.co/t/dos-token-login-broken/24274/1 "2022-10-11T13:08:18Z")

</div>

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
