Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File not found error on windows after paste huggingface login token #17

Closed
orangpelupa opened this issue Sep 17, 2022 · 3 comments
Closed

Comments

@orangpelupa
Copy link

I've checked this guide #12 but the error is different

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

Token:
Traceback (most recent call last):
  File "B:\tools\anaconda3\envs\sd-inf\Scripts\huggingface-cli-script.py", line 9, in <module>
    sys.exit(main())
  File "B:\tools\anaconda3\envs\sd-inf\lib\site-packages\huggingface_hub\commands\huggingface_cli.py", line 41, in main
    service.run()
  File "B:\tools\anaconda3\envs\sd-inf\lib\site-packages\huggingface_hub\commands\user.py", line 176, in run
    _login(self._api, token=token)
  File "B:\tools\anaconda3\envs\sd-inf\lib\site-packages\huggingface_hub\commands\user.py", line 344, in _login
    hf_api.set_access_token(token)
  File "B:\tools\anaconda3\envs\sd-inf\lib\site-packages\huggingface_hub\hf_api.py", line 705, in set_access_token
    write_to_credential_store(USERNAME_PLACEHOLDER, access_token)
  File "B:\tools\anaconda3\envs\sd-inf\lib\site-packages\huggingface_hub\hf_api.py", line 528, in write_to_credential_store
    with subprocess.Popen(
  File "B:\tools\anaconda3\envs\sd-inf\lib\subprocess.py", line 966, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "B:\tools\anaconda3\envs\sd-inf\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
@Kim2091
Copy link

Kim2091 commented Sep 17, 2022

Interesting. You may still need to install the huggingface cli package with pip install huggingface_hub if you haven't. I didn't realize this could be an issue.

@mhartung
Copy link

mhartung commented Oct 2, 2022

Interesting. You may still need to install the huggingface cli package with pip install huggingface_hub if you haven't. I didn't realize this could be an issue.

I am in with this error and the huggingface_hub is already installed.

@lkwq007
Copy link
Owner

lkwq007 commented Oct 4, 2022

The updated UI no longer needs huggingface_hub login, I'll close this issue.

@lkwq007 lkwq007 closed this as completed Oct 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants