huggingface / huggingface/mcp-course

Update Code Imports

Open
#199 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
MDX
Stars
918
Forks
255
PR merge metrics
No merged PRs in 30d

Description

When running the code in the course, I always run into the error File "/Users/honeylemon/Documents/MCP/.venv/lib/python3.9/site-packages/gradio/oauth.py", line 13, in
from huggingface_hub import HfFolder, whoami
ImportError: cannot import name 'HfFolder' from 'huggingface_hub' (/Users/honeylemon/Documents/MCP/.venv/lib/python3.9/site-packages/huggingface_hub/__init__.py)

Seems to be that the packages used there are outdated.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the course code error and inspect the traceback at gradio/oauth.py, where the outdated HfFolder import is reported. Check how the course specifies its packages and update the affected imports or versions so the course runs without this ImportError.

Written by the indexing model from the issue text.

Assessment

Tech stack
huggingface, python
Domain
ai, content
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.