File size: 1,962 Bytes
ef63924
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
```CODE: 
# Login into Hugging Face Hub
from huggingface_hub import login
login()
```

ERROR: 
Traceback (most recent call last):
  File "/usr/lib/python3.13/getpass.py", line 68, in unix_getpass
    old = termios.tcgetattr(fd)     # a copy to save
termios.error: (25, 'Inappropriate ioctl for device')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/tmp/google_embeddinggemma-300m_10xIKl8.py", line 16, in <module>
    login()
    ~~~~~^^
  File "/tmp/.cache/uv/environments-v2/e0578e9a33a2b1c2/lib/python3.13/site-packages/huggingface_hub/utils/_deprecation.py", line 101, in inner_f
    return f(*args, **kwargs)
  File "/tmp/.cache/uv/environments-v2/e0578e9a33a2b1c2/lib/python3.13/site-packages/huggingface_hub/utils/_deprecation.py", line 31, in inner_f
    return f(*args, **kwargs)
  File "/tmp/.cache/uv/environments-v2/e0578e9a33a2b1c2/lib/python3.13/site-packages/huggingface_hub/_login.py", line 124, in login
    interpreter_login(new_session=new_session)
    ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/.cache/uv/environments-v2/e0578e9a33a2b1c2/lib/python3.13/site-packages/huggingface_hub/utils/_deprecation.py", line 101, in inner_f
    return f(*args, **kwargs)
  File "/tmp/.cache/uv/environments-v2/e0578e9a33a2b1c2/lib/python3.13/site-packages/huggingface_hub/utils/_deprecation.py", line 31, in inner_f
    return f(*args, **kwargs)
  File "/tmp/.cache/uv/environments-v2/e0578e9a33a2b1c2/lib/python3.13/site-packages/huggingface_hub/_login.py", line 281, in interpreter_login
    token = getpass("Enter your token (input will not be visible): ")
  File "/usr/lib/python3.13/getpass.py", line 90, in unix_getpass
    passwd = fallback_getpass(prompt, stream)
  File "/usr/lib/python3.13/getpass.py", line 126, in fallback_getpass
    return _raw_input(prompt, stream)
  File "/usr/lib/python3.13/getpass.py", line 148, in _raw_input
    raise EOFError
EOFError