question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

notebook_login errors out after passing token in main branch

See original GitHub issue

Describe the bug

I installed main branch of huggingface_hub because I needed to use dataset conversion tool where you can see huggingface_hub main branch in requirements.txt. The notebook_login errors out with logs below. This doesn’t happen when I update last version of the library.

Reproduction

You can try this notebook. I tried only installing github repository itself and calling notebook_login and was able to reproduce it.

Logs

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
/usr/local/lib/python3.7/dist-packages/huggingface_hub/commands/user.py in login_token_event(t)
    308         token_widget.value = ""
    309         clear_output()
--> 310         _login(token=token)
    311 
    312     token_finish_button.on_click(login_token_event)

TypeError: _login() missing 1 required positional argument: 'hf_api'

System Info

(Below is tip of main branch)

huggingface-hub @ git+https://github.com/huggingface/huggingface_hub@3a59bf13f1ef50b2e7e9ac8362f5984ac288eb33

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
naterawcommented, Sep 27, 2022

The issue was fixed with this PR I believe. Thanks all!!

1reaction
Wauplincommented, Sep 27, 2022

@nateraw I haven’t used the datasets converter tool but here is a simple colab where notebook_login works correctly on 0.10.0rc0. Could you check huggingface_hub is correctly installed ?

pip uninstall huggingface_hub
pip install huggingface_hub==0.10.0rc0
Read more comments on GitHub >

github_iconTop Results From Across the Web

Error message notebook_login - Hub - Hugging Face Forums
When I run this cell from huggingface_hub import notebook_login notebook_login() in my jupyter notebook the UI for entering the token.
Read more >
Token cannot be pasted in JupyterNotebook in VScode #752
Hi, I am using jupyternotebook via VScode. But When I run from huggingface_hub import notebook_login notebook_login() I copy the Token, ...
Read more >
Security in the Jupyter notebook server - Read the Docs
When token authentication is enabled, the notebook uses a token to authenticate requests. This token can be provided to login to the notebook...
Read more >
Azure AD authentication & authorization error codes
Learn about the AADSTS error codes that are returned from the Azure AD security token service (STS).
Read more >
Message "Support for password authentication was removed ...
Step 7 - After that, a new token has been generated. Copy that generated token and use this token to access Git with...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found