# Error message notebook\_login

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ferror-message-notebook-login%2F15459%3E%5C
**Category:** 🤗Hub\
**Created:** [March 7, 2022, 5:19pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ferror-message-notebook-login%2F15459 "2022-03-07T17:19:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rappelmann](https://avatars.discourse-cdn.com/v4/letter/r/cc9497/32.png) [@Rappelmann](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FRappelmann)%5C
**Post date:** [March 7, 2022, 5:19pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ferror-message-notebook-login%2F15459%2F1 "2022-03-07T17:19:34Z")

</div>

When I run this cell

from huggingface\_hub import notebook\_login

notebook\_login()

in my jupyter notebook the UI for entering the token. Upon entering the token I get the following error message:

* * *

FileNotFoundError Traceback (most recent call last)  
c:\users\david\pycharmprojects\jaentranslator\venv\lib\site-packages\huggingface\_hub\commands\user.py in login\_token\_event(t)  
380 token\_widget.value = “”  
381 clear\_output()  
 → 382 \_login(HfApi(), token=token)  
383  
384 token\_finish\_button.on\_click(login\_token\_event)

c:\users\david\pycharmprojects\jaentranslator\venv\lib\site-packages\huggingface\_hub\commands\user.py in \_login(hf\_api, username, password, token)  
413 raise ValueError(“Invalid token passed.”)  
414  
 → 415 hf\_api.set\_access\_token(token)  
416 HfFolder.save\_token(token)  
417 print(“Login successful”)

c:\users\david\pycharmprojects\jaentranslator\venv\lib\site-packages\huggingface\_hub\hf\_api.py in set\_access\_token(access\_token)  
487 @staticmethod  
488 def set\_access\_token(access\_token: str):  
 → 489 write\_to\_credential\_store(USERNAME\_PLACEHOLDER, access\_token)  
490  
491 @staticmethod

c:\users\david\pycharmprojects\jaentranslator\venv\lib\site-packages\huggingface\_hub\hf\_api.py in write\_to\_credential\_store(username, password)  
342  
343 def write\_to\_credential\_store(username: str, password: str):  
 → 344 with subprocess.Popen(  
345 “git credential-store store”.split(),  
346 stdin=subprocess.PIPE,

C:\Users\david\AppData\Local\Programs\Python\Python39\lib\subprocess.py in **init** (self, args, bufsize, executable, stdin, stdout, stderr, preexec\_fn, close\_fds, shell, cwd, env, universal\_newlines, startupinfo, creationflags, restore\_signals, start\_new\_session, pass\_fds, user, group, extra\_groups, encoding, errors, text, umask)  
949 encoding=encoding, errors=errors)  
950  
 → 951 self.\_execute\_child(args, executable, preexec\_fn, close\_fds,  
952 pass\_fds, cwd, env,  
953 startupinfo, creationflags, shell,

C:\Users\david\AppData\Local\Programs\Python\Python39\lib\subprocess.py in \_execute\_child(self, args, executable, preexec\_fn, close\_fds, pass\_fds, cwd, env, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, unused\_restore\_signals, unused\_gid, unused\_gids, unused\_uid, unused\_umask, unused\_start\_new\_session)  
1418 # Start the process  
1419 try:  
 → 1420 hp, ht, pid, tid = \_winapi.CreateProcess(executable, args,  
1421 # no special security  
1422 None, None,

FileNotFoundError: [WinError 2] The system cannot find the file specified

I tired the account login as well, but get the same error message. I tried the following cell:

from huggingface\_hub import HfApi, HfFolder

\_AUTH\_TOKEN = “{my token}”  
api = HfApi()  
api.set\_access\_token(\_AUTH\_TOKEN)

- HfFolder.save\_token(\_AUTH\_TOKEN)

and get basically the same error message.

When I run

!huggingface-cli login

it doesn’t terminate.

Is there another way to login or am I doing something wrong? Any help would be appreciated. Thanks.

---

<div class="post-metadata">

**Author:** ![RuudKCL](https://avatars.discourse-cdn.com/v4/letter/r/a9a28c/32.png) [@RuudKCL](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FRuudKCL)%5C
**Post date:** [June 8, 2022, 5:26pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ferror-message-notebook-login%2F15459%2F2 "2022-06-08T17:26:58Z")

</div>

Can you check if you have git installed by running git --version in cmd?

If it doesn’t exist installing that from here: [Git - Downloading Package](https://git-scm.com/download/win) should fix the issue

---

<div class="post-metadata">

**Author:** ![rexoscare](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/rexoscare/32/28400_2.png) [@rexoscare](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Frexoscare)%5C
**Post date:** [August 23, 2022, 11:28am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ferror-message-notebook-login%2F15459%2F3 "2022-08-23T11:28:39Z")

</div>

I have git installed but still I’m getting the same error. Is there any other solution for this?

---

<div class="post-metadata">

**Author:** ![nielsr](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/nielsr/32/39617_2.png) [@nielsr](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fnielsr)%5C
**Post date:** [August 23, 2022, 12:05pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ferror-message-notebook-login%2F15459%2F4 "2022-08-23T12:05:49Z")

</div>

It’s a bug in Colab, which should be fixed now. You can also use

```auto
!huggingface-cli login

```

as an alternative way of logging in

---

<div class="post-metadata">

**Author:** ![rexoscare](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/rexoscare/32/28400_2.png) [@rexoscare](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Frexoscare)%5C
**Post date:** [August 23, 2022, 2:37pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ferror-message-notebook-login%2F15459%2F5 "2022-08-23T14:37:21Z")

</div>

I restarted my conda env and I’m able to login now, thanks !
